[router][grpc] Support v1/responses API (#11926)
This commit is contained in:
1 parent
704160017d
commit
70f6309cd4
17 files changed
+3611
-29
No files matched your search
@@ -778,7 +778,9 @@ class OpenAIServingResponses(OpenAIServingChat):
|
||||
# Update the status to "cancelled"
|
||||
response.status = "cancelled"
|
||||
|
||||
# Abort the request
|
||||
# The response_id is the same as the rid used when submitting the request
|
||||
self.tokenizer_manager.abort_request(rid=response_id)
|
||||
|
||||
if task := self.background_tasks.get(response_id):
|
||||
task.cancel()
|
||||
try:
|
||||
|
||||
Reference in new issue
Block a user