Abort disconnected requests (#457)
This commit is contained in:
1 parent
3e684be7a3
commit
8dbdc018a3
8 files changed
+202
-132
No files matched your search
@@ -580,8 +580,8 @@ class StreamExecutor:
|
||||
def _execute_role_end(self, expr: SglRoleEnd):
|
||||
if (
|
||||
self.cur_role == "assistant"
|
||||
and self.backend.is_chat_model
|
||||
and self.api_num_spec_tokens is not None
|
||||
and self.backend.is_chat_model
|
||||
):
|
||||
# Execute the stored lazy generation calls
|
||||
self.backend.role_end_generate(self)
|
||||
|
||||
Reference in new issue
Block a user