bstraehle commited on
Commit
22146fa
1 Parent(s): 47a1d64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -290,8 +290,8 @@ def chat(message, history, openai_api_key):
290
  message = execute_tool_calls(steps)
291
  print("\n\n\n[" + message + "]\n\n\n")
292
 
293
- if message != "":
294
- create_message(client, thread, message)
295
 
296
  messages = list_messages(client, thread)
297
 
 
290
  message = execute_tool_calls(steps)
291
  print("\n\n\n[" + message + "]\n\n\n")
292
 
293
+ if len(message) > 0 :
294
+ create_message(client, thread, message[0])
295
 
296
  messages = list_messages(client, thread)
297