Skip to content

Commit 4c05a70

Browse files
committed
Fix massive bug!
1 parent 1769661 commit 4c05a70

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/transformers/tokenization_utils_base.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1707,11 +1707,11 @@ def apply_chat_template(
17071707
# Pick the last text block in the message (the first one we hit while iterating in reverse)
17081708
final_message = content_block["text"]
17091709
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-
)
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+
)
17151715
if final_message.strip() not in rendered_chat:
17161716
raise ValueError(
17171717
"continue_final_message is set but the final message does not appear in the chat after "

0 commit comments

Comments
 (0)