bstraehle commited on
Commit
d79f9cd
1 Parent(s): 9aa5953

Update assistants.py

Browse files
Files changed (1) hide show
  1. assistants.py +1 -2
assistants.py CHANGED
@@ -163,14 +163,13 @@ def execute_tool_calls(run_steps):
163
  step_details = step.step_details
164
  #run_step_details.append(step_details)
165
  print(get_json("step_details", step_details))
166
- gr.Info(step_details.type)
167
 
168
  if hasattr(step_details, "tool_calls"):
169
  for tool_call in step_details.tool_calls:
170
  print(get_json("tool_call", tool_call))
171
 
172
  if hasattr(tool_call, "function"):
173
- gr.Info(tool_call.function.name)
174
  tool_call_ids.append(tool_call.id)
175
  tool_call_results.append(execute_tool_call(tool_call))
176
 
 
163
  step_details = step.step_details
164
  #run_step_details.append(step_details)
165
  print(get_json("step_details", step_details))
166
+ gr.Info(get_json("step_details", step_details))
167
 
168
  if hasattr(step_details, "tool_calls"):
169
  for tool_call in step_details.tool_calls:
170
  print(get_json("tool_call", tool_call))
171
 
172
  if hasattr(tool_call, "function"):
 
173
  tool_call_ids.append(tool_call.id)
174
  tool_call_results.append(execute_tool_call(tool_call))
175