We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1769661 commit 4c05a70Copy full SHA for 4c05a70
src/transformers/tokenization_utils_base.py
@@ -1707,11 +1707,11 @@ def apply_chat_template(
1707
# Pick the last text block in the message (the first one we hit while iterating in reverse)
1708
final_message = content_block["text"]
1709
break
1710
- else:
1711
- raise ValueError(
1712
- "continue_final_message is set but we could not find any text to continue"
1713
- "in the final message!"
1714
- )
+ else:
+ raise ValueError(
+ "continue_final_message is set but we could not find any text to continue"
+ "in the final message!"
+ )
1715
if final_message.strip() not in rendered_chat:
1716
raise ValueError(
1717
"continue_final_message is set but the final message does not appear in the chat after "
0 commit comments