diff --git a/examples/server/server.cpp b/examples/server/server.cpp index b4e1e58ab..b90a0b8f3 100644 --- a/examples/server/server.cpp +++ b/examples/server/server.cpp @@ -821,12 +821,12 @@ struct server_context { if (!slot.available()) { continue; } - + // skip the slot if it does not contains prompt if (!slot.prompt.is_string()) { continue; } - + // current slot's prompt std::string slot_prompt = slot.prompt.get(); @@ -1586,7 +1586,7 @@ struct server_context { std::string prompt = json_value(task.data, "prompt", std::string()); server_slot * slot; - + if (id_slot != -1) { slot = get_slot_by_id(id_slot); } else {