server
: support cancellation of prompt processing
This commit is contained in:
parent
42f546500f
commit
03efb92fde
1 changed files with 7 additions and 0 deletions
|
@ -1877,6 +1877,13 @@ struct server_context {
|
||||||
system_prompt_update();
|
system_prompt_update();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (auto & slot : slots) {
|
||||||
|
if (slot.is_processing() && slot.is_alive && !slot.is_alive()) {
|
||||||
|
SLT_WRN(slot, "%s", "slot connection died\n");
|
||||||
|
slot.release();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// check if all slots are idle
|
// check if all slots are idle
|
||||||
{
|
{
|
||||||
bool all_idle = true;
|
bool all_idle = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue