[Bugfix] Stop leaking the internal field name in the max_tokens validation error (#58336)

Signed-off-by: shallow10 <495593563@qq.com>
This commit is contained in:
shallow10
2026-09-24 21:55:16 -07:00
committed by GitHub
parent 5a2ed2e7ee
commit 3a58aeb1a1
+1 -1
View File
@@ -234,7 +234,7 @@ class TokenizeParams:
raise VLLMValidationError(
f"{self.max_output_tokens_param}={max_output_tokens} "
f"cannot be greater than "
f"{self.max_total_tokens_param}={max_total_tokens=}. "
f"{self.max_total_tokens_param}={max_total_tokens}. "
f"Please request fewer output tokens.",
parameter=self.max_output_tokens_param,
value=max_output_tokens,