Skip to content

Commit 8f8a65c

Browse files
committed
[Frontend] OpenAI Responses API supports Tool/Function calling
Signed-off-by: chaunceyjiang <chaunceyjiang@gmail.com>
1 parent 78d7d33 commit 8f8a65c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vllm/entrypoints/openai/protocol.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ def get_logits_processors(
297297

298298

299299
def get_json_schema_from_tool(
300-
tool_choice: str | ToolChoice | ChatCompletionNamedToolChoiceParam,
300+
tool_choice: str | ToolChoiceFunction | ChatCompletionNamedToolChoiceParam,
301301
tools: list[FunctionTool | ChatCompletionToolsParam] | None,
302302
) -> str | dict | None:
303303
if tool_choice in ("none", None) or tools is None:

0 commit comments

Comments
 (0)