]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
server: fix data race in to_json_anthropic (#18283)
authorXuan-Son Nguyen <redacted>
Mon, 22 Dec 2025 12:21:43 +0000 (13:21 +0100)
committerGitHub <redacted>
Mon, 22 Dec 2025 12:21:43 +0000 (13:21 +0100)
tools/server/server-task.cpp

index 360826062b1f8908c34ca2909bd2272326cab6fd..487e70b34eec69321e2e6d7693d6e3d4bd010392 100644 (file)
@@ -1153,7 +1153,7 @@ json server_task_result_rerank::to_json() {
 json server_task_result_cmpl_partial::to_json_anthropic() {
     json events = json::array();
     bool first = (n_decoded == 1);
-    static bool text_block_started = false;
+    bool text_block_started = false;
 
     if (first) {
         text_block_started = false;