Spaces:
Running
Running
Update assistants.py
Browse files- assistants.py +1 -3
assistants.py
CHANGED
@@ -153,7 +153,6 @@ def execute_tool_call(tool_call):
|
|
153 |
except json.JSONDecodeError as e:
|
154 |
print(f"Error parsing function name '{name}' function args '{args_json}': {e}")
|
155 |
|
156 |
-
#if tool_call.function.output == None:
|
157 |
gr.Info(f"Function: {name}, args: {args}", duration=30)
|
158 |
|
159 |
return tools[name](**args)
|
@@ -166,8 +165,7 @@ def execute_tool_calls(run_steps):
|
|
166 |
step_details = step.step_details
|
167 |
print(get_json("step_details", step_details))
|
168 |
|
169 |
-
|
170 |
-
gr.Info(f"Step: {step_details.type}, {get_json('usage', step.usage)}", duration=30)
|
171 |
|
172 |
if hasattr(step_details, "tool_calls"):
|
173 |
for tool_call in step_details.tool_calls:
|
|
|
153 |
except json.JSONDecodeError as e:
|
154 |
print(f"Error parsing function name '{name}' function args '{args_json}': {e}")
|
155 |
|
|
|
156 |
gr.Info(f"Function: {name}, args: {args}", duration=30)
|
157 |
|
158 |
return tools[name](**args)
|
|
|
165 |
step_details = step.step_details
|
166 |
print(get_json("step_details", step_details))
|
167 |
|
168 |
+
gr.Info(f"Step: {step_details.type}, {get_json('usage', step.usage)}", duration=30)
|
|
|
169 |
|
170 |
if hasattr(step_details, "tool_calls"):
|
171 |
for tool_call in step_details.tool_calls:
|