Unverified Commit ea3de5ef authored by Prashant Gupta's avatar Prashant Gupta Committed by GitHub
Browse files

[misc] fix typo in value error (#24995)


Signed-off-by: default avatarPrashant Gupta <prashantgupta@us.ibm.com>
parent 67532a1a
...@@ -383,7 +383,7 @@ class CompletionRenderer(BaseRenderer): ...@@ -383,7 +383,7 @@ class CompletionRenderer(BaseRenderer):
"""Create validated EngineTokensPrompt.""" """Create validated EngineTokensPrompt."""
if max_length is not None and len(token_ids) > max_length: if max_length is not None and len(token_ids) > max_length:
raise ValueError( raise ValueError(
f"This maximum context length is {max_length} tokens. " f"This model's maximum context length is {max_length} tokens. "
f"However, your request has {len(token_ids)} input tokens. " f"However, your request has {len(token_ids)} input tokens. "
"Please reduce the length of the input messages.") "Please reduce the length of the input messages.")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment