From c30f5b7d5e5c457ffd1cd458913a4ee4eaaa095d Mon Sep 17 00:00:00 2001 From: Nicholas Tindle Date: Sat, 20 May 2023 18:04:57 -0500 Subject: [PATCH] fix: completion was being called with wrong data types (#4324) --- autogpt/agent/agent.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/autogpt/agent/agent.py b/autogpt/agent/agent.py index e68bf989..ed9fea60 100644 --- a/autogpt/agent/agent.py +++ b/autogpt/agent/agent.py @@ -343,7 +343,7 @@ class Agent: thought = thoughts.get("thoughts", "") feedback_thoughts = thought + reasoning + plan - messages = {"role": "user", "content": feedback_prompt + feedback_thoughts} + messages = [{"role": "user", "content": feedback_prompt + feedback_thoughts}] self.log_cycle_handler.log_cycle( self.config.ai_name, @@ -353,7 +353,7 @@ class Agent: PROMPT_SUPERVISOR_FEEDBACK_FILE_NAME, ) - feedback = create_chat_completion(messages) + feedback = create_chat_completion(messages, model=llm_model) self.log_cycle_handler.log_cycle( self.config.ai_name,