Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -238,7 +238,11 @@ def chat(message, history):
|
|
238 |
run = client.beta.threads.runs.submit_tool_outputs(
|
239 |
thread_id=thread.id,
|
240 |
run_id=run.id,
|
241 |
-
tool_outputs=generate_tool_outputs(tool_call_ids, tool_call_results)
|
|
|
|
|
|
|
|
|
242 |
)
|
243 |
|
244 |
run = wait_on_run(client, thread, run)
|
@@ -251,7 +255,11 @@ def chat(message, history):
|
|
251 |
run = client.beta.threads.runs.submit_tool_outputs(
|
252 |
thread_id=thread.id,
|
253 |
run_id=run.id,
|
254 |
-
tool_outputs=generate_tool_outputs(tool_call_ids, tool_call_results)
|
|
|
|
|
|
|
|
|
255 |
)
|
256 |
|
257 |
run = wait_on_run(client, thread, run)
|
|
|
238 |
run = client.beta.threads.runs.submit_tool_outputs(
|
239 |
thread_id=thread.id,
|
240 |
run_id=run.id,
|
241 |
+
#tool_outputs=generate_tool_outputs(tool_call_ids, tool_call_results)
|
242 |
+
tool_outputs={
|
243 |
+
"tool_call_id": tool_call_id,
|
244 |
+
"output": tool_call_result.to_json()
|
245 |
+
}
|
246 |
)
|
247 |
|
248 |
run = wait_on_run(client, thread, run)
|
|
|
255 |
run = client.beta.threads.runs.submit_tool_outputs(
|
256 |
thread_id=thread.id,
|
257 |
run_id=run.id,
|
258 |
+
#tool_outputs=generate_tool_outputs(tool_call_ids, tool_call_results)
|
259 |
+
tool_outputs={
|
260 |
+
"tool_call_id": tool_call_id,
|
261 |
+
"output": tool_call_result.to_json()
|
262 |
+
}
|
263 |
)
|
264 |
|
265 |
run = wait_on_run(client, thread, run)
|