bstraehle commited on
Commit
27f2ee0
1 Parent(s): cc7d532

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -246,10 +246,12 @@ def chat(message, history):
246
  thread_id=thread.id,
247
  run_id=run.id,
248
  #tool_outputs=generate_tool_outputs(tool_call_ids, tool_call_results)
249
- tool_outputs={
250
- "tool_call_id": tool_call_ids[0],
251
- "output": tool_call_results
252
- }
 
 
253
  )
254
 
255
  run = wait_on_run(client, thread, run)
@@ -263,10 +265,12 @@ def chat(message, history):
263
  thread_id=thread.id,
264
  run_id=run.id,
265
  #tool_outputs=generate_tool_outputs(tool_call_ids, tool_call_results)
266
- tool_outputs={
267
- "tool_call_id": tool_call_ids[0],
268
- "output": tool_call_results[0].to_json()
269
- }
 
 
270
  )
271
 
272
  run = wait_on_run(client, thread, run)
 
246
  thread_id=thread.id,
247
  run_id=run.id,
248
  #tool_outputs=generate_tool_outputs(tool_call_ids, tool_call_results)
249
+ tool_outputs=[
250
+ {
251
+ "tool_call_id": tool_call_ids[0],
252
+ "output": tool_call_results
253
+ }
254
+ ]
255
  )
256
 
257
  run = wait_on_run(client, thread, run)
 
265
  thread_id=thread.id,
266
  run_id=run.id,
267
  #tool_outputs=generate_tool_outputs(tool_call_ids, tool_call_results)
268
+ tool_outputs=[
269
+ {
270
+ "tool_call_id": tool_call_ids[0],
271
+ "output": tool_call_results[0].to_json()
272
+ }
273
+ ]
274
  )
275
 
276
  run = wait_on_run(client, thread, run)