Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: fix o1 duplicate messages (#2216)
Kevin Lin2dc47c6f2282
diff --git a/letta/o1_agent.py b/letta/o1_agent.pyindex cef2769d4..837005cfd 100644--- a/letta/o1_agent.py+++ b/letta/o1_agent.py@@ -67,9 +67,8 @@ class O1Agent(Agent):total_usage = UsageStatistics()step_count = 0while step_count < self.max_thinking_steps:- # This is hacky but we need to do this for now- for m in next_input_message:- m.id = m._generate_id()+ if counter > 0:+ next_input_message = []kwargs["ms"] = mskwargs["first_message"] = False