bstraehle commited on
Commit
7bc6da3
·
verified ·
1 Parent(s): 56e4078

Update assistants.py

Browse files
Files changed (1) hide show
  1. assistants.py +2 -2
assistants.py CHANGED
@@ -169,11 +169,11 @@ def execute_tool_calls(run_steps):
169
  show_json("tool_call", tool_call)
170
 
171
  if hasattr(tool_call, "function"):
172
- gr.Info(f"Custom tool call: {type(tool_call)}: {tool_call.function.name}")
173
  tool_call_ids.append(tool_call.id)
174
  tool_call_results.append(execute_tool_call(tool_call))
175
  else:
176
- gr.Info(f"Built-in tool call: {type(tool_call)}")
177
 
178
  return tool_call_ids, tool_call_results
179
 
 
169
  show_json("tool_call", tool_call)
170
 
171
  if hasattr(tool_call, "function"):
172
+ gr.Info(f"Custom tool call: {tool_call}")
173
  tool_call_ids.append(tool_call.id)
174
  tool_call_results.append(execute_tool_call(tool_call))
175
  else:
176
+ gr.Info(f"Built-in tool call: {tool_call}")
177
 
178
  return tool_call_ids, tool_call_results
179