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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -249,7 +249,7 @@ def chat(message, history):
249
  tool_outputs=[
250
  {
251
  "tool_call_id": tool_call_ids[0],
252
- "output": tool_call_results
253
  }
254
  ]
255
  )
@@ -259,6 +259,13 @@ def chat(message, history):
259
  ###
260
  tool_call_ids, tool_call_results = execute_tool_calls(run_steps)
261
 
 
 
 
 
 
 
 
262
  if tool_call_ids[0]:
263
  # https://platform.openai.com/docs/api-reference/runs/submitToolOutputs
264
  run = client.beta.threads.runs.submit_tool_outputs(
 
249
  tool_outputs=[
250
  {
251
  "tool_call_id": tool_call_ids[0],
252
+ "output": tool_call_results[0]
253
  }
254
  ]
255
  )
 
259
  ###
260
  tool_call_ids, tool_call_results = execute_tool_calls(run_steps)
261
 
262
+ print("###")
263
+ print(tool_call_ids)
264
+ print(tool_call_ids[0])
265
+ print(tool_call_results)
266
+ print(tool_call_results[0])
267
+ print("###")
268
+
269
  if tool_call_ids[0]:
270
  # https://platform.openai.com/docs/api-reference/runs/submitToolOutputs
271
  run = client.beta.threads.runs.submit_tool_outputs(