Spaces:
Running
Running
Update assistants.py
Browse files- assistants.py +3 -3
assistants.py
CHANGED
@@ -167,13 +167,13 @@ def execute_tool_calls(run_steps):
|
|
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 |
tool_call_ids.append(tool_call.id)
|
173 |
tool_call_results.append(execute_tool_call(tool_call))
|
174 |
|
175 |
-
gr.Info(f"Tool call: {tool_call}")
|
176 |
-
|
177 |
return tool_call_ids, tool_call_results
|
178 |
|
179 |
def recurse_execute_tool_calls(thread, run, run_steps, iteration):
|
|
|
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 |
+
gr.Info(f"Tool call: {tool_call}")
|
172 |
+
|
173 |
if hasattr(tool_call, "function"):
|
174 |
tool_call_ids.append(tool_call.id)
|
175 |
tool_call_results.append(execute_tool_call(tool_call))
|
176 |
|
|
|
|
|
177 |
return tool_call_ids, tool_call_results
|
178 |
|
179 |
def recurse_execute_tool_calls(thread, run, run_steps, iteration):
|