From 40c1cbdce4feec26de15a35c15b588ca3dc10539 Mon Sep 17 00:00:00 2001 From: Dillon Laird Date: Thu, 29 Aug 2024 20:19:22 -0700 Subject: [PATCH] handle artifact return --- examples/chat/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/chat/app.py b/examples/chat/app.py index 68dede8d..9291f65a 100644 --- a/examples/chat/app.py +++ b/examples/chat/app.py @@ -53,7 +53,7 @@ def update_messages(messages, lock): if Path("artifacts.pkl").exists(): artifacts.load("artifacts.pkl") - new_chat = agent.chat_with_code(messages, artifacts=artifacts) + new_chat, _ = agent.chat_with_code(messages, artifacts=artifacts) with lock: for new_message in new_chat: if new_message not in messages: