bstraehle commited on
Commit
789cdee
1 Parent(s): 261ec6b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -240,8 +240,8 @@ def chat(message, history):
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
 
@@ -257,8 +257,8 @@ def chat(message, history):
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
 
 
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_ids[0],
244
+ "output": tool_call_results[0].to_json()
245
  }
246
  )
247
 
 
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_ids[0],
261
+ "output": tool_call_results[0].to_json()
262
  }
263
  )
264