Fix incorrect format strings and uninitialized variables. (#4133)
* Fix incorrect format strings and uninitialized variables. * Address comments * Add the missing include statement
This commit is contained in:
parent
6b0a7420d0
commit
55978ce09b
2 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue