Skip to content

Commit a3dcb04

Browse files
committed
Fix is_user_confirmed()
1 parent 7840435 commit a3dcb04

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

coagent/agents/aswarm/core.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ async def get_chat_completion(
8585
p.pop("function_call", None)
8686
p.pop("refusal", None)
8787

88+
p.pop("reasoning_content", None) # Remove possible reasoning content.
89+
8890
try:
8991
response = await self.client.acompletion(**create_params)
9092
async for chunk in response:

coagent/agents/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ async def is_user_confirmed(
7272
""",
7373
)
7474
],
75-
client,
75+
client=client,
7676
)
7777
answer = reply.content
7878
return answer.strip().lower() == "true"

0 commit comments

Comments
 (0)