diff options
author | sasha0552 <admin@sasha0552.org> | 2024-06-19 23:57:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-20 09:57:10 +1000 |
commit | ba5899315283eb1df3902363daf79bdc5eefe426 (patch) | |
tree | 0aae7aa2173ea114d16f9c30435e5e52a2183e53 | |
parent | a7854743c5e6216a6178824a603aa9479728ddd5 (diff) |
server : fix smart slot selection (#8020)
-rw-r--r-- | examples/server/server.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/server/server.cpp b/examples/server/server.cpp index ec59307b..f9a86961 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -1594,7 +1594,7 @@ struct server_context { } else { std::string prompt; if (task.data.contains("prompt") && task.data.at("prompt").is_string()) { - json_value(task.data, "prompt", std::string()); + prompt = json_value(task.data, "prompt", std::string()); } slot = get_available_slot(prompt); |