server: only parse empty msg if continuing an assistant msg (#23506)

This commit is contained in:
Aldehir Rojas
2026-05-22 11:58:15 -04:00
committed by GitHub
parent ef570f6308
commit 1acee6bf89
2 changed files with 6 additions and 1 deletions
+1
View File
@@ -219,6 +219,7 @@ struct common_chat_parser_params {
bool reasoning_in_content = false;
std::string generation_prompt;
bool parse_tool_calls = true;
bool is_continuation = false;
bool echo = false; // Include assistant prefilled msg in output
bool debug = false; // Enable debug output for PEG parser
common_peg_arena parser = {};