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

This commit is contained in:
Nicholas Tindle
2023-05-20 18:04:57 -05:00
committed by GitHub
parent 023a50d26b
commit c30f5b7d5e

View File

@@ -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,