bstraehle commited on
Commit
378fa94
·
verified ·
1 Parent(s): 3086fa6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -6
app.py CHANGED
@@ -195,12 +195,18 @@ def chat(message, history):
195
 
196
  ###
197
  if result:
198
- print("## result")
199
- print(result)
200
- run = create_run(client, assistant, thread)
201
- run = wait_on_run(client, thread, run)
202
- run_steps = get_run_steps(client, thread, run)
203
- results = get_run_step_details(run_steps)
 
 
 
 
 
 
204
  ###
205
 
206
  messages = get_messages(client, thread)
 
195
 
196
  ###
197
  if result:
198
+ print("### result" + result)
199
+ run = client.beta.threads.runs.submit_tool_outputs(
200
+ thread_id=thread.id,
201
+ run_id=run.id,
202
+ tool_outputs=[
203
+ {
204
+ "tool_call_id": "call_001",
205
+ "output": result
206
+ }
207
+ ]
208
+ )
209
+ print(run)
210
  ###
211
 
212
  messages = get_messages(client, thread)