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.

fix: add "max" to AnthropicModelSettings effort type (#9754)

jnjpnga5bac2655644
diff --git a/fern/openapi.json b/fern/openapi.json
index cef851d4d..936b8c592 100644
--- a/fern/openapi.json
+++ b/fern/openapi.json
@@ -28104,14 +28104,14 @@
"anyOf": [
{
"type": "string",
- "enum": ["low", "medium", "high"]
+ "enum": ["low", "medium", "high", "max"]
},
{
"type": "null"
}
],
"title": "Effort",
- "description": "Effort level for Opus 4.5 model (controls token conservation). Not setting this gives similar performance to 'high'."
+ "description": "Effort level for supported Anthropic models (controls token spending). 'max' is only available on Opus 4.6. Not setting this gives similar performance to 'high'."
},
"strict": {
"type": "boolean",
diff --git a/letta/schemas/model.py b/letta/schemas/model.py
index fa1c14cb9..621bd4f09 100644
--- a/letta/schemas/model.py
+++ b/letta/schemas/model.py
@@ -282,10 +282,10 @@ class AnthropicModelSettings(ModelSettings):
description="Soft control for how verbose model output should be, used for GPT-5 models.",
)
- # Opus 4.5 effort parameter
- effort: Optional[Literal["low", "medium", "high"]] = Field(
+ # Effort parameter for Opus 4.5, Opus 4.6, and Sonnet 4.6
+ effort: Optional[Literal["low", "medium", "high", "max"]] = Field(
None,
- description="Effort level for Opus 4.5 model (controls token conservation). Not setting this gives similar performance to 'high'.",
+ description="Effort level for supported Anthropic models (controls token spending). 'max' is only available on Opus 4.6. Not setting this gives similar performance to 'high'.",
)
# Anthropic supports strict mode for tool calling - defaults to False