Spaces:
Running
Running
Update assistants.py
Browse files- assistants.py +2 -4
assistants.py
CHANGED
@@ -152,8 +152,6 @@ 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 |
-
gr.Info(f"{name} {args}")
|
156 |
-
|
157 |
return tools[name](**args)
|
158 |
|
159 |
def execute_tool_calls(run_steps):
|
@@ -173,8 +171,8 @@ def execute_tool_calls(run_steps):
|
|
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 |
-
|
178 |
|
179 |
return tool_call_ids, tool_call_results
|
180 |
|
|
|
152 |
except json.JSONDecodeError as e:
|
153 |
print(f"Error parsing function name '{name}' function args '{args_json}': {e}")
|
154 |
|
|
|
|
|
155 |
return tools[name](**args)
|
156 |
|
157 |
def execute_tool_calls(run_steps):
|
|
|
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 |
|