server: fix data race in to_json_anthropic (#18283)
This commit is contained in:
parent
ee74642982
commit
3997c78e33
|
|
@ -1153,7 +1153,7 @@ json server_task_result_rerank::to_json() {
|
||||||
json server_task_result_cmpl_partial::to_json_anthropic() {
|
json server_task_result_cmpl_partial::to_json_anthropic() {
|
||||||
json events = json::array();
|
json events = json::array();
|
||||||
bool first = (n_decoded == 1);
|
bool first = (n_decoded == 1);
|
||||||
static bool text_block_started = false;
|
bool text_block_started = false;
|
||||||
|
|
||||||
if (first) {
|
if (first) {
|
||||||
text_block_started = false;
|
text_block_started = false;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue