Skip to content

Commit 616d9c9

Browse files
committed
Update examples
1 parent 558ce8a commit 616d9c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/deepseek-r1/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ async def main():
3737
reasoning_started = True
3838
print(msg.reasoning_content, end="", flush=True)
3939
if msg.content:
40-
if not reasoning_stopped:
40+
if reasoning_started and not reasoning_stopped:
4141
print("</think>", flush=True)
4242
reasoning_stopped = True
4343
print(msg.content, end="", flush=True)

0 commit comments

Comments
 (0)