mirror of
https://github.com/ggml-org/llama.cpp.git
synced 2026-06-09 07:16:44 +02:00
server : do not parse when flushing http headers (#24281)
This commit is contained in:
@@ -1393,6 +1393,9 @@ json server_task_result_cmpl_final::to_json_anthropic_stream() {
|
|||||||
//
|
//
|
||||||
void server_task_result_cmpl_partial::update(task_result_state & state) {
|
void server_task_result_cmpl_partial::update(task_result_state & state) {
|
||||||
is_updated = true;
|
is_updated = true;
|
||||||
|
if (is_begin) {
|
||||||
|
return; // begin marker only flushes headers, skip parsing
|
||||||
|
}
|
||||||
state.update_chat_msg(content, true, oaicompat_msg_diffs);
|
state.update_chat_msg(content, true, oaicompat_msg_diffs);
|
||||||
|
|
||||||
// Copy current state for use in to_json_*() (reflects state BEFORE this chunk)
|
// Copy current state for use in to_json_*() (reflects state BEFORE this chunk)
|
||||||
|
|||||||
Reference in New Issue
Block a user