bstraehle commited on
Commit
841a8a3
·
verified ·
1 Parent(s): db5c6e9

Update assistants.py

Browse files
Files changed (1) hide show
  1. assistants.py +1 -1
assistants.py CHANGED
@@ -174,7 +174,7 @@ def execute_tool_calls(run_steps):
174
  tool_call_ids.append(tool_call.id)
175
  tool_call_results.append(execute_tool_call(step, tool_call))
176
 
177
- if step.usage:
178
  gr.Info(f"Function: {tool_call.function.name}, args: {tool_call.function.arguments}", duration=30)
179
  else:
180
  gr.Info(f"Tool: {tool_call.type}", duration=30)
 
174
  tool_call_ids.append(tool_call.id)
175
  tool_call_results.append(execute_tool_call(step, tool_call))
176
 
177
+ if tool_call.function.output != None:
178
  gr.Info(f"Function: {tool_call.function.name}, args: {tool_call.function.arguments}", duration=30)
179
  else:
180
  gr.Info(f"Tool: {tool_call.type}", duration=30)