Spaces:
Running
Running
Update assistants.py
Browse files- assistants.py +2 -2
assistants.py
CHANGED
@@ -142,7 +142,8 @@ def get_run_steps(thread, run):
|
|
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 = ""
|
148 |
|
@@ -171,7 +172,6 @@ def execute_tool_calls(run_steps):
|
|
171 |
if hasattr(tool_call, "function"):
|
172 |
tool_call_ids.append(tool_call.id)
|
173 |
tool_call_results.append(execute_tool_call(tool_call))
|
174 |
-
raise gr.Info("tool call")
|
175 |
|
176 |
return tool_call_ids, tool_call_results
|
177 |
|
|
|
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 = ""
|
149 |
|
|
|
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 |
|
176 |
return tool_call_ids, tool_call_results
|
177 |
|