[Frontend][Core] Standardize request error handling with VLLMError hierarchy (#49665)

Signed-off-by: Zach Zhu <zzqshu@126.com>
This commit is contained in:
Zach Zhu
2026-07-29 04:20:40 +00:00
committed by GitHub
parent f37f03db4a
commit 58f9659397
46 changed files with 370 additions and 248 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ from dataclasses import dataclass
import pytest
from vllm import SamplingParams
from vllm.exceptions import VLLMValidationError
@dataclass
@@ -32,7 +33,7 @@ class MockModelConfig:
)
def test_diffusion_rejects_unsupported_params(kwargs: dict):
params = SamplingParams(**kwargs)
with pytest.raises(ValueError, match="not yet supported with diffusion"):
with pytest.raises(VLLMValidationError, match="not yet supported with diffusion"):
params.verify(MockModelConfig(is_diffusion=True), None, None, None)