Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix(chat+core): reasoning for gpt 5.4 (#9844)
Christina Tongca919531c0f9
diff --git a/letta/llm_api/openai_client.py b/letta/llm_api/openai_client.pyindex 22896b457..05e176396 100644--- a/letta/llm_api/openai_client.py+++ b/letta/llm_api/openai_client.py@@ -86,9 +86,9 @@ def does_not_support_minimal_reasoning(model: str) -> bool:def supports_none_reasoning_effort(model: str) -> bool:"""Check if the model supports 'none' reasoning effort.- Currently, GPT-5.1 and GPT-5.2 models support the 'none' reasoning effort level.+ Currently, GPT-5.1, GPT-5.2, GPT-5.3, and GPT-5.4 models support the 'none' reasoning effort level."""- return model.startswith("gpt-5.1") or model.startswith("gpt-5.2") or model.startswith("gpt-5.3")+ return model.startswith("gpt-5.1") or model.startswith("gpt-5.2") or model.startswith("gpt-5.3") or model.startswith("gpt-5.4")def is_openai_5_model(model: str) -> bool: