server : fix smart slot selection (#8020)
This commit is contained in:
parent
a7854743c5
commit
ba58993152
1 changed files with 1 additions and 1 deletions
|
@ -1594,7 +1594,7 @@ struct server_context {
|
||||||
} else {
|
} else {
|
||||||
std::string prompt;
|
std::string prompt;
|
||||||
if (task.data.contains("prompt") && task.data.at("prompt").is_string()) {
|
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);
|
slot = get_available_slot(prompt);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue