[Bugfix] Stop leaking the internal field name in the max_tokens validation error (#58336)
Signed-off-by: shallow10 <495593563@qq.com>
shallow10 committed
Sep 25, 2026 at 12:55 UTC
3a58aeb1a13e7447da3037608d6489da7e7f22a2
1 file changed
+1
-1
vllm/renderers/params.py
+1
-1
@@ -234,7 +234,7 @@ class TokenizeParams:
234
raise VLLMValidationError(
235
f"{self.max_output_tokens_param}={max_output_tokens} "
236
f"cannot be greater than "
237
- f"{self.max_total_tokens_param}={max_total_tokens=}. "
237
+ f"{self.max_total_tokens_param}={max_total_tokens}. "
238
f"Please request fewer output tokens.",
239
parameter=self.max_output_tokens_param,
240
value=max_output_tokens,