diff options
author | Haohui Mai <ricetons@gmail.com> | 2023-11-23 13:56:53 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-23 22:56:53 +0100 |
commit | 55978ce09b69d3987d17d08d92d8cc27193e0773 (patch) | |
tree | 8541f81145ed4cfdeed3ef7bbb4226ebe1995ac8 /examples/server/server.cpp | |
parent | 6b0a7420d03b9d13cb0e9439a01ce8476d8bf093 (diff) |
Fix incorrect format strings and uninitialized variables. (#4133)
* Fix incorrect format strings and uninitialized variables.
* Address comments
* Add the missing include statement
Diffstat (limited to 'examples/server/server.cpp')
-rw-r--r-- | examples/server/server.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/server/server.cpp b/examples/server/server.cpp index 1f2c55f2..be23ad16 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -1095,6 +1095,7 @@ struct llama_server_context std::lock_guard<std::mutex> lock(mutex_results); task_result res; res.id = id; + res.stop = false; res.error = true; res.result_json = { { "content", error } }; queue_results.push_back(res); @@ -1255,6 +1256,7 @@ struct llama_server_context std::lock_guard<std::mutex> lock(mutex_tasks); task_server task; task.id = id_gen++; + task.target_id = 0; task.data = data; task.infill_mode = infill; task.embedding_mode = embedding; |