From 264f550984eb166194e6bbda282147b794ced168 Mon Sep 17 00:00:00 2001 From: zhangqianze Date: Tue, 24 Dec 2024 22:37:59 +0800 Subject: [PATCH] fix: fix callback exception --- .../ten_packages/extension/openai_chatgpt_python/extension.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/agents/ten_packages/extension/openai_chatgpt_python/extension.py b/agents/ten_packages/extension/openai_chatgpt_python/extension.py index 74b3cce6..7449e2ce 100644 --- a/agents/ten_packages/extension/openai_chatgpt_python/extension.py +++ b/agents/ten_packages/extension/openai_chatgpt_python/extension.py @@ -268,7 +268,7 @@ async def handle_content_update(content: str): for s in sentences: self.send_text_output(async_ten_env, s, False) - async def handle_content_finished(): + async def handle_content_finished(_: str): # Wait for the single tool task to complete (if any) if self.tool_task_future: await self.tool_task_future