bstraehle commited on
Commit
c462357
1 Parent(s): 016eaa7

Update assistants.py

Browse files
Files changed (1) hide show
  1. assistants.py +1 -1
assistants.py CHANGED
@@ -142,7 +142,6 @@ def get_run_steps(thread, run):
142
  def execute_tool_call(tool_call):
143
  name = tool_call.function.name
144
  args = {}
145
- raise gr.Info("tool call: " + name)
146
 
147
  if len(tool_call.function.arguments) > 10:
148
  args_json = ""
@@ -177,6 +176,7 @@ def execute_tool_calls(run_steps):
177
 
178
  def recurse_execute_tool_calls(thread, run, run_steps, iteration):
179
  tool_call_ids, tool_call_results = execute_tool_calls(run_steps)
 
180
 
181
  if len(tool_call_ids) > iteration:
182
  tool_output = {}
 
142
  def execute_tool_call(tool_call):
143
  name = tool_call.function.name
144
  args = {}
 
145
 
146
  if len(tool_call.function.arguments) > 10:
147
  args_json = ""
 
176
 
177
  def recurse_execute_tool_calls(thread, run, run_steps, iteration):
178
  tool_call_ids, tool_call_results = execute_tool_calls(run_steps)
179
+ raise gr.Info(f"tool call: {iteration}")
180
 
181
  if len(tool_call_ids) > iteration:
182
  tool_output = {}