From be9cda9003fd0b03736b728510ac1c95a9936a2f Mon Sep 17 00:00:00 2001 From: glide-the <2533736852@qq.com> Date: Wed, 26 Jun 2024 13:06:45 +0800 Subject: [PATCH] update tools demo --- tests/assistant/server/server.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/tests/assistant/server/server.py b/tests/assistant/server/server.py index 8826188..be9ac29 100644 --- a/tests/assistant/server/server.py +++ b/tests/assistant/server/server.py @@ -66,7 +66,14 @@ async def chat( model_name="glm-4-alltools", history=history, intermediate_steps=intermediate_steps, - tools=[{"type": "code_interpreter"}, calculate], + tools=[ + + {"type": "code_interpreter", "code_interpreter": {"sandbox": "none"}}, + {"type": "web_browser"}, + {"type": "drawing_tool"}, + + calculate + ], ) chat_iterator = agent_executor.invoke(chat_input=query)