Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix: completion was being called with wrong data types (#4324)

Nicholas Tindlec30f5b7d5e5c
diff --git a/autogpt/agent/agent.py b/autogpt/agent/agent.py
index e68bf98954..ed9fea6051 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,