[Frontend] Migrate Responses API validation errors to VLLMValidationError (#50257)

Signed-off-by: shaolila <shaolila@buaa.edu.cn>
Co-authored-by: shaolila <shaolila@buaa.edu.cn>
This commit is contained in:
Adababy
2026-09-07 17:33:51 +08:00
committed by GitHub
co-authored by shaolila
parent e476556189
commit 7dbe386833
4 changed files with 27 additions and 10 deletions
@@ -20,6 +20,7 @@ from vllm.entrypoints.openai.responses.harmony import (
response_input_to_harmony,
response_previous_input_to_harmony,
)
from vllm.exceptions import VLLMValidationError
_TOOL_PARAMETERS = {
"type": "object",
@@ -975,10 +976,11 @@ class TestGetSystemMessage:
def test_unsupported_reasoning_effort_raises_clear_error(self) -> None:
with pytest.raises(
ValueError,
VLLMValidationError,
match="reasoning_effort='max' is not supported by Harmony",
):
) as exc_info:
get_system_message(reasoning_effort="max")
assert exc_info.value.parameter == "reasoning_effort"
class TestResponseInputToHarmonyReasoningItem: