bstraehle commited on
Commit
7dcba6f
1 Parent(s): d697e33

Update assistants.py

Browse files
Files changed (1) hide show
  1. 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
- else:
177
- gr.Info(tool_call)
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