Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: add exceptions to `accept_developer_role` (#2848)
Kevin Lin6ea0a7e74ead
diff --git a/letta/llm_api/openai_client.py b/letta/llm_api/openai_client.pyindex 1c36faa47..7d8e2678c 100644--- a/letta/llm_api/openai_client.py+++ b/letta/llm_api/openai_client.py@@ -53,7 +53,7 @@ def accepts_developer_role(model: str) -> bool:See: https://community.openai.com/t/developer-role-not-accepted-for-o1-o1-mini-o3-mini/1110750/7"""- if is_openai_reasoning_model(model):+ if is_openai_reasoning_model(model) and not "o1-mini" in model or "o1-preview" in model:return Trueelse:return False