Spaces:
Running
Running
Update assistants.py
Browse files- assistants.py +2 -5
assistants.py
CHANGED
@@ -166,14 +166,11 @@ def execute_tool_calls(run_steps):
|
|
166 |
|
167 |
if hasattr(step_details, "tool_calls"):
|
168 |
for tool_call in step_details.tool_calls:
|
169 |
-
show_json("tool_call", tool_call)
|
170 |
-
|
171 |
if hasattr(tool_call, "function"):
|
172 |
-
gr.Info(f"Custom tool call: {tool_call}")
|
173 |
tool_call_ids.append(tool_call.id)
|
174 |
tool_call_results.append(execute_tool_call(tool_call))
|
175 |
-
else:
|
176 |
-
gr.Info(f"Built-in tool call: {tool_call}")
|
177 |
|
178 |
return tool_call_ids, tool_call_results
|
179 |
|
|
|
166 |
|
167 |
if hasattr(step_details, "tool_calls"):
|
168 |
for tool_call in step_details.tool_calls:
|
169 |
+
gr.Info(f"Tool call: {show_json("tool_call", tool_call)}")
|
170 |
+
|
171 |
if hasattr(tool_call, "function"):
|
|
|
172 |
tool_call_ids.append(tool_call.id)
|
173 |
tool_call_results.append(execute_tool_call(tool_call))
|
|
|
|
|
174 |
|
175 |
return tool_call_ids, tool_call_results
|
176 |
|