Update examples/server/server.cpp

Co-authored-by: Jared Van Bortel <cebtenzzre@gmail.com>
This commit is contained in:
Ziad Ben Hadj-Alouane 2023-11-29 22:04:00 -05:00 committed by GitHub
parent 0e1a5aa5fa
commit 14785e1148
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1346,8 +1346,7 @@ struct llama_server_context
if (task.data.at("prompt").size() > 1) if (task.data.at("prompt").size() > 1)
{ {
lock.unlock(); // entering new func scope lock.unlock(); // entering new func scope
auto id = split_multiprompt_task(task); return split_multiprompt_task(task);
return id;
} }
// otherwise, it's a single-prompt task, we actually queue it // otherwise, it's a single-prompt task, we actually queue it