Spaces:
Running
Running
Update assistants.py
Browse files- assistants.py +2 -2
assistants.py
CHANGED
@@ -152,7 +152,7 @@ def execute_tool_call(tool_call):
|
|
152 |
except json.JSONDecodeError as e:
|
153 |
print(f"Error parsing function name '{name}' function args '{args_json}': {e}")
|
154 |
|
155 |
-
|
156 |
|
157 |
return tools[name](**args)
|
158 |
|
@@ -169,7 +169,7 @@ def execute_tool_calls(run_steps):
|
|
169 |
if hasattr(step_details, "tool_calls"):
|
170 |
for tool_call in step_details.tool_calls:
|
171 |
show_json("tool_call", tool_call)
|
172 |
-
gr.Info(f"Calling tool {tool_call}")
|
173 |
|
174 |
if hasattr(tool_call, "function"):
|
175 |
tool_call_ids.append(tool_call.id)
|
|
|
152 |
except json.JSONDecodeError as e:
|
153 |
print(f"Error parsing function name '{name}' function args '{args_json}': {e}")
|
154 |
|
155 |
+
gr.Info(f"Calling function {name} with args {args}")
|
156 |
|
157 |
return tools[name](**args)
|
158 |
|
|
|
169 |
if hasattr(step_details, "tool_calls"):
|
170 |
for tool_call in step_details.tool_calls:
|
171 |
show_json("tool_call", tool_call)
|
172 |
+
#gr.Info(f"Calling tool {tool_call}")
|
173 |
|
174 |
if hasattr(tool_call, "function"):
|
175 |
tool_call_ids.append(tool_call.id)
|