[router][grpc] Support v1/responses API (#11926)

This commit is contained in:
Chang Su
2025-10-21 17:41:48 -07:00
committed by GitHub
parent 704160017d
commit 70f6309cd4
17 changed files with 3611 additions and 29 deletions

View File

@@ -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: