[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user