feat: add support for reasoning for Claude Haiku 4.5 [LET-5735] (#5585)
frontend and backend changes Co-authored-by: Ari Webb <ari@letta.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user