bstraehle commited on
Commit
fa73ef4
1 Parent(s): 0bf9a70

Update assistants.py

Browse files
Files changed (1) hide show
  1. assistants.py +3 -4
assistants.py CHANGED
@@ -155,15 +155,14 @@ def execute_tool_call(tool_call):
155
  return tools[name](**args)
156
 
157
  def execute_tool_calls(run_steps):
158
- #run_step_details = []
159
  tool_call_ids = []
160
  tool_call_results = []
161
 
162
  for step in run_steps.data:
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:
 
155
  return tools[name](**args)
156
 
157
  def execute_tool_calls(run_steps):
 
158
  tool_call_ids = []
159
  tool_call_results = []
160
 
161
  for step in run_steps.data:
162
  step_details = step.step_details
163
+ str = get_json("step_details", step_details)
164
+ print(str)
165
+ gr.Info(str)
166
 
167
  if hasattr(step_details, "tool_calls"):
168
  for tool_call in step_details.tool_calls: