[Frontend] Support OpenAI Responses API namespace tools (#47024)

Signed-off-by: zhongjing123 <jimzhong5193@gmail.com>
Co-authored-by: zhongjing123 <jimzhong5193@gmail.com>
This commit is contained in:
Zhong
2026-07-06 06:21:27 +00:00
committed by GitHub
co-authored by zhongjing123
parent 990c2a0187
commit 98ba9b9583
8 changed files with 383 additions and 22 deletions
+2 -1
View File
@@ -1073,6 +1073,7 @@ class OpenAIServingResponses(GenerateBaseServing):
content=content,
tool_calls=tool_calls,
logprobs=logprobs,
tools=request.tools,
)
# Fallback when no parser is configured
@@ -1339,7 +1340,7 @@ class OpenAIServingResponses(GenerateBaseServing):
[StreamingResponsesResponse], StreamingResponsesResponse
],
) -> AsyncGenerator[StreamingResponsesResponse, None]:
processor = SimpleStreamingEventProcessor()
processor = SimpleStreamingEventProcessor(tools=request.tools)
def _get_logprobs(
output: CompletionOutput,