We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bbf586 commit d77e5f4Copy full SHA for d77e5f4
llm_toolkit/models.py
@@ -271,8 +271,8 @@ def truncate_prompt(self,
271
# Add marker and return the truncated string with another recursive check
272
truncated_prompt = raw_prompt_text[-remaining:] + marker
273
logger.info('Truncated %d tokens from %d to %d chars.',
274
- len(raw_prompt_text) - remaining,
275
- len(raw_prompt_text), len(truncated_prompt))
+ len(raw_prompt_text) - remaining, len(raw_prompt_text),
+ len(truncated_prompt))
276
277
return self.truncate_prompt(truncated_prompt, extra_text)
278
0 commit comments