Spaces:
Running
Running
Update app.py
Browse files
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 |
|