We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6961c4b commit 34b2a5eCopy full SHA for 34b2a5e
examples/server/server.cpp
@@ -1502,7 +1502,7 @@ struct llama_server_context
1502
{
1503
for (auto & slot : slots)
1504
1505
- const bool has_prompt = slot.prompt.is_array() || (slot.prompt.is_string() && !slot.prompt.get<std::string>().empty());
+ const bool has_prompt = slot.prompt.is_array() || (slot.prompt.is_string() && !slot.prompt.get<std::string>().empty()) || !slot.images.empty();
1506
1507
// empty prompt passed -> release the slot and send empty response
1508
if (slot.state == IDLE && slot.command == LOAD_PROMPT && !has_prompt)
0 commit comments