Skip to content

Commit ba58993

Browse files
authored
server : fix smart slot selection (#8020)
1 parent a785474 commit ba58993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/server/server.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1594,7 +1594,7 @@ struct server_context {
15941594
} else {
15951595
std::string prompt;
15961596
if (task.data.contains("prompt") && task.data.at("prompt").is_string()) {
1597-
json_value(task.data, "prompt", std::string());
1597+
prompt = json_value(task.data, "prompt", std::string());
15981598
}
15991599

16001600
slot = get_available_slot(prompt);

0 commit comments

Comments
 (0)