bstraehle commited on
Commit
2e4d9f7
1 Parent(s): d39bcdd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -203,7 +203,7 @@ def chat(message, history):
203
  ### TODO
204
  if tool_call_id:
205
  print("### tool_call_id=" + tool_call_id)
206
- print(tool_call_result)
207
 
208
  # https://platform.openai.com/docs/api-reference/runs/submitToolOutputs
209
  run = client.beta.threads.runs.submit_tool_outputs(
@@ -212,7 +212,7 @@ def chat(message, history):
212
  tool_outputs=[
213
  {
214
  "tool_call_id": tool_call_id,
215
- "output": tool_call_result
216
  }
217
  ]
218
  )
 
203
  ### TODO
204
  if tool_call_id:
205
  print("### tool_call_id=" + tool_call_id)
206
+ print(tool_call_result.to_json())
207
 
208
  # https://platform.openai.com/docs/api-reference/runs/submitToolOutputs
209
  run = client.beta.threads.runs.submit_tool_outputs(
 
212
  tool_outputs=[
213
  {
214
  "tool_call_id": tool_call_id,
215
+ "output": tool_call_result.to_json()
216
  }
217
  ]
218
  )