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 558ce8a commit 616d9c9Copy full SHA for 616d9c9
examples/deepseek-r1/agent.py
@@ -37,7 +37,7 @@ async def main():
37
reasoning_started = True
38
print(msg.reasoning_content, end="", flush=True)
39
if msg.content:
40
- if not reasoning_stopped:
+ if reasoning_started and not reasoning_stopped:
41
print("</think>", flush=True)
42
reasoning_stopped = True
43
print(msg.content, end="", flush=True)
0 commit comments