[Frontend][Core] Standardize request error handling with VLLMError hierarchy (#49665)
Signed-off-by: Zach Zhu <zzqshu@126.com>
This commit is contained in:
@@ -62,7 +62,9 @@ class LogitsProcessor(ABC):
|
||||
def validate_params(cls, sampling_params: SamplingParams):
|
||||
"""Validate sampling params for this logits processor.
|
||||
|
||||
Raise ValueError for invalid ones.
|
||||
Raise ``VLLMValidationError`` (preferred) / ``ValueError`` (backward compatible)
|
||||
for invalid params. Bare ``ValueError`` is converted to ``VLLMValidationError``
|
||||
at the engine boundary so online serving returns HTTP 400.
|
||||
"""
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user