Skip to content

Commit 5d97706

Browse files
authored
feat(backend/blocks): Add claude opus 4.5 (#11446)
This PR adds the latest [claude opus 4.5](https://www.anthropic.com/news/claude-opus-4-5) model to the platform ### Checklist 📋 #### For code changes: - [x] I have clearly listed my changes in the PR description - [x] I have made a test plan - [x] I have tested my changes according to the test plan: - [x] Test and use the llm to make sure it works
1 parent 244f3c7 commit 5d97706

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

autogpt_platform/backend/backend/blocks/llm.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ class LlmModel(str, Enum, metaclass=LlmModelMeta):
106106
CLAUDE_4_1_OPUS = "claude-opus-4-1-20250805"
107107
CLAUDE_4_OPUS = "claude-opus-4-20250514"
108108
CLAUDE_4_SONNET = "claude-sonnet-4-20250514"
109+
CLAUDE_4_5_OPUS = "claude-opus-4-5-20251101"
109110
CLAUDE_4_5_SONNET = "claude-sonnet-4-5-20250929"
110111
CLAUDE_4_5_HAIKU = "claude-haiku-4-5-20251001"
111112
CLAUDE_3_7_SONNET = "claude-3-7-sonnet-20250219"
@@ -216,6 +217,9 @@ def max_output_tokens(self) -> int | None:
216217
LlmModel.CLAUDE_4_SONNET: ModelMetadata(
217218
"anthropic", 200000, 64000
218219
), # claude-4-sonnet-20250514
220+
LlmModel.CLAUDE_4_5_OPUS: ModelMetadata(
221+
"anthropic", 200000, 64000
222+
), # claude-opus-4-5-20251101
219223
LlmModel.CLAUDE_4_5_SONNET: ModelMetadata(
220224
"anthropic", 200000, 64000
221225
), # claude-sonnet-4-5-20250929

autogpt_platform/backend/backend/data/block_cost_config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@
7676
LlmModel.CLAUDE_4_OPUS: 21,
7777
LlmModel.CLAUDE_4_SONNET: 5,
7878
LlmModel.CLAUDE_4_5_HAIKU: 4,
79+
LlmModel.CLAUDE_4_5_OPUS: 14,
7980
LlmModel.CLAUDE_4_5_SONNET: 9,
8081
LlmModel.CLAUDE_3_7_SONNET: 5,
8182
LlmModel.CLAUDE_3_HAIKU: 1,

0 commit comments

Comments
 (0)