chat: replace output string with parts (#30389)
* chat: replace output string with parts * reserve first
This commit is contained in:
1 parent
1b70350c92
commit
ff026f8c0a
31 files changed
+241
-133
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user