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,