mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-01-10 15:47:59 -05:00
fix: completion was being called with wrong data types (#4324)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user