Skip to content

Commit

Permalink
🐛 fix validation error formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Runde <[email protected]>
  • Loading branch information
joerunde committed Mar 27, 2024
1 parent c9d76f8 commit f477ba3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Empty file added tests/tgis/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion vllm/entrypoints/grpc/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class TGISValidationError(str, Enum):

def error(self, *args, **kwargs):
"""Raises a ValueError with a nicely formatted string"""
raise ValueError(self.format(*args, **kwargs))
raise ValueError(self.value.format(*args, **kwargs))


def validate_input(sampling_params: SamplingParams, token_num: int, max_model_len: int):
Expand Down

0 comments on commit f477ba3

Please sign in to comment.