Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions vllm/entrypoints/openai/responses/serving.py
Original file line number Diff line number Diff line change
Expand Up @@ -792,9 +792,10 @@ def _make_request_with_harmony(
):
has_unsupported_tool_choice = request.tool_choice not in ("auto", "none")
if has_unsupported_tool_choice and not is_required_function_call:
raise NotImplementedError(
raise VLLMValidationError(
"Only 'auto', 'none', or 'required' (with function tools) "
"tool_choice is supported in response API with Harmony"
"tool_choice is supported in response API with Harmony",
parameter="tool_choice",
)

arrival_time = time.time()
Expand Down