remove trailing whitespaces
This commit is contained in:
parent
2df61bf59e
commit
f1164112de
1 changed files with 3 additions and 3 deletions
|
@ -821,12 +821,12 @@ struct server_context {
|
||||||
if (!slot.available()) {
|
if (!slot.available()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// skip the slot if it does not contains prompt
|
// skip the slot if it does not contains prompt
|
||||||
if (!slot.prompt.is_string()) {
|
if (!slot.prompt.is_string()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// current slot's prompt
|
// current slot's prompt
|
||||||
std::string slot_prompt = slot.prompt.get<std::string>();
|
std::string slot_prompt = slot.prompt.get<std::string>();
|
||||||
|
|
||||||
|
@ -1586,7 +1586,7 @@ struct server_context {
|
||||||
std::string prompt = json_value(task.data, "prompt", std::string());
|
std::string prompt = json_value(task.data, "prompt", std::string());
|
||||||
|
|
||||||
server_slot * slot;
|
server_slot * slot;
|
||||||
|
|
||||||
if (id_slot != -1) {
|
if (id_slot != -1) {
|
||||||
slot = get_slot_by_id(id_slot);
|
slot = get_slot_by_id(id_slot);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue