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
@@ -96,7 +96,7 @@ static std::string format_input_text(const std::string & prompt, const std::stri
auto result = common_chat_templates_apply(chat_templates.get(), inputs);
return result.prompt;
return result.prompt.str();
}
int main(int argc, char ** argv) {