From 1bd867894d648325e5e976382c95f2af2bad7688 Mon Sep 17 00:00:00 2001 From: ngxson Date: Mon, 22 Jan 2024 22:42:59 +0100 Subject: [PATCH] server: correct multitask response --- examples/server/server.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/examples/server/server.cpp b/examples/server/server.cpp index e927b9c0d..7916147be 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -1089,12 +1089,6 @@ struct llama_server_context } queue_results.send(res); - - // parent multitask, if any, needs to be updated - if (slot.multitask_id != -1) - { - queue_tasks.update_multitask(slot.multitask_id, slot.task_id, res); - } } void send_embedding(llama_client_slot &slot) @@ -1319,7 +1313,7 @@ struct llama_server_context result_jsons.push_back(subres.result_json); result.error = result.error && subres.error; } - result.result_json = json{ "results", result_jsons }; + result.result_json = json{ { "results", result_jsons } }; queue_results.send(result); }