Browse Source

server: fix data race in to_json_anthropic (#18283)

Xuan-Son Nguyen 1 month ago
parent
commit
3997c78e33
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tools/server/server-task.cpp

+ 1 - 1
tools/server/server-task.cpp

@@ -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;