server : fix smart slot selection (#8020)

This commit is contained in:
sasha0552 2024-06-19 23:57:10 +00:00 committed by GitHub
parent a7854743c5
commit ba58993152
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);