Skip to content

Commit

Permalink
server : fix smart slot selection (#8020)
Browse files Browse the repository at this point in the history
  • Loading branch information
sasha0552 authored Jun 19, 2024
1 parent a785474 commit ba58993
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/server/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit ba58993

Please sign in to comment.