This commit is contained in:
Jonas Templestein 2024-01-09 11:13:32 +02:00 committed by GitHub
commit 45a3a9dd20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1724,7 +1724,7 @@ struct llama_server_context
const bool has_prompt = slot.prompt.is_array() || (slot.prompt.is_string() && !slot.prompt.get<std::string>().empty()) || !slot.images.empty();
// empty prompt passed -> release the slot and send empty response
if (slot.state == IDLE && slot.command == LOAD_PROMPT && !has_prompt)
if (slot.state == IDLE && slot.command == LOAD_PROMPT && !has_prompt && !slot.infill)
{
slot.release();
slot.print_timings();