chat: replace output string with parts (#30389)

* chat: replace output string with parts

* reserve first
This commit is contained in:
Xuan-Son Nguyen authored and GitHub committed 2026-10-14 01:03:56 +02:00
1 parent 1b70350c92
commit ff026f8c0a
31 files changed
+241 -133

No files matched your search

+1 -1
View File
@@ -267,7 +267,7 @@ int llama_completion(int argc, char ** argv) {
inputs.add_generation_prompt = !params.prompt.empty();
inputs.force_pure_content = params.force_pure_content_parser;
prompt = common_chat_templates_apply(chat_templates.get(), inputs).prompt;
prompt = common_chat_templates_apply(chat_templates.get(), inputs).prompt.str();
}
} else {
// otherwise use the prompt as is