Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

feat: add support for reasoning for Claude Haiku 4.5 [LET-5735] (#5585)

Ari Webb7057dce156bb
diff --git a/letta/llm_api/anthropic_client.py b/letta/llm_api/anthropic_client.py
index 6d920b5d4..322c6a5ad 100644
--- a/letta/llm_api/anthropic_client.py
+++ b/letta/llm_api/anthropic_client.py
@@ -439,6 +439,7 @@ class AnthropicClient(LLMClientBase):
llm_config.model.startswith("claude-3-7-sonnet")
or llm_config.model.startswith("claude-sonnet-4")
or llm_config.model.startswith("claude-opus-4")
+ or llm_config.model.startswith("claude-haiku-4-5")
)
@trace_method
diff --git a/letta/schemas/llm_config.py b/letta/schemas/llm_config.py
index bebfb950f..2c2f45033 100644
--- a/letta/schemas/llm_config.py
+++ b/letta/schemas/llm_config.py
@@ -154,7 +154,10 @@ class LLMConfig(BaseModel):
values["put_inner_thoughts_in_kwargs"] = False
if values.get("model_endpoint_type") == "anthropic" and (
- model.startswith("claude-3-7-sonnet") or model.startswith("claude-sonnet-4") or model.startswith("claude-opus-4")
+ model.startswith("claude-3-7-sonnet")
+ or model.startswith("claude-sonnet-4")
+ or model.startswith("claude-opus-4")
+ or model.startswith("claude-haiku-4-5")
):
values["put_inner_thoughts_in_kwargs"] = False
@@ -242,7 +245,7 @@ class LLMConfig(BaseModel):
config.model.startswith("claude-opus-4")
or config.model.startswith("claude-sonnet-4")
or config.model.startswith("claude-3-7-sonnet")
- or config.model.startswith("claude-4-5-haiku")
+ or config.model.startswith("claude-haiku-4-5")
)
@classmethod