Skip to content

Commit 7d7a69d

Browse files
committed
fix: add missing think tag
1 parent 56db50e commit 7d7a69d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/api/models/bedrock.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,6 +899,7 @@ def _create_response_stream(
899899
# Port of "signature_delta"
900900
if self.think_emitted:
901901
message = ChatResponseMessage(content="\n </think> \n\n")
902+
self.think_emitted = False # Reset flag after closing </think>
902903
else:
903904
return None # Ignore signature if no <think> started
904905
else:

0 commit comments

Comments
 (0)