Skip to content

Commit

Permalink
update tools demo
Browse files Browse the repository at this point in the history
  • Loading branch information
glide-the committed Jun 26, 2024
1 parent bb48078 commit be9cda9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tests/assistant/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit be9cda9

Please sign in to comment.