Spaces:
Running
Running
Update assistants.py
Browse files- assistants.py +1 -2
assistants.py
CHANGED
@@ -163,14 +163,13 @@ def execute_tool_calls(run_steps):
|
|
163 |
step_details = step.step_details
|
164 |
#run_step_details.append(step_details)
|
165 |
print(get_json("step_details", step_details))
|
166 |
-
gr.Info(step_details
|
167 |
|
168 |
if hasattr(step_details, "tool_calls"):
|
169 |
for tool_call in step_details.tool_calls:
|
170 |
print(get_json("tool_call", tool_call))
|
171 |
|
172 |
if hasattr(tool_call, "function"):
|
173 |
-
gr.Info(tool_call.function.name)
|
174 |
tool_call_ids.append(tool_call.id)
|
175 |
tool_call_results.append(execute_tool_call(tool_call))
|
176 |
|
|
|
163 |
step_details = step.step_details
|
164 |
#run_step_details.append(step_details)
|
165 |
print(get_json("step_details", step_details))
|
166 |
+
gr.Info(get_json("step_details", step_details))
|
167 |
|
168 |
if hasattr(step_details, "tool_calls"):
|
169 |
for tool_call in step_details.tool_calls:
|
170 |
print(get_json("tool_call", tool_call))
|
171 |
|
172 |
if hasattr(tool_call, "function"):
|
|
|
173 |
tool_call_ids.append(tool_call.id)
|
174 |
tool_call_results.append(execute_tool_call(tool_call))
|
175 |
|