Skip to content

Commit f8c0345

Browse files
ericdalloeca-agent
andcommitted
Add Claude Opus 5 support
Uses the anthropic-v2 variant set (adaptive summarized thinking) like the other gen-5 models, matched via the opus-5 regex in variantsByModel. 🤖 Generated with [ECA](https://eca.dev) (nubank-anthropic/fable-5 - max) Co-Authored-By: eca-agent <git@eca.dev>
1 parent e077660 commit f8c0345

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Unreleased
44

5+
- Add Claude Opus 5 support.
6+
57
## 0.150.0
68

79
- Abort in-flight LLM streaming requests promptly on prompt stop for OpenAI, GitHub Copilot, Google, Ollama and custom OpenAI-compatible providers (previously only Anthropic/Bedrock), including while waiting for the first token. #554

docs/config/variants.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ ECA ships with built-in variants for some known models via the `variantsByModel`
2727
| `high` | `{"output_config": {"effort": "high"}, "thinking": {"type": "adaptive"}}` |
2828
| `max` | `{"output_config": {"effort": "max"}, "thinking": {"type": "adaptive"}}` |
2929

30-
=== "Anthropic (opus 4.7+, sonnet/fable/mythos 5)"
30+
=== "Anthropic (opus 4.7+, opus/sonnet/fable/mythos 5)"
3131

32-
Applies to models matching `opus-4-7`, `opus-4-8`, `sonnet-5`, `fable-5`, `mythos-5` (any separator: `-`, `.`, `_`).
32+
Applies to models matching `opus-4-7`, `opus-4-8`, `opus-5`, `sonnet-5`, `fable-5`, `mythos-5` (any separator: `-`, `.`, `_`).
3333

3434
| Variant | Payload |
3535
| ---------- | ------- |

src/eca/config.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
"claude-opus-4-6" {}
119119
"claude-opus-4-7" {}
120120
"claude-opus-4-8" {}
121+
"claude-opus-5" {}
121122
"claude-fable-5" {}
122123
"claude-mythos-5" {}}}
123124
"github-copilot" {:api "openai-chat"
@@ -221,8 +222,8 @@
221222
:outputTruncation {:lines 2000 :sizeKb 50}}
222223
:variantsByModel {".*sonnet[-._]4[-._]6|opus[-._]4[-._][56]" {:variants anthropic-variants
223224
:api ["anthropic" "bedrock"]}
224-
".*opus[-._]4[-._][78]|.*sonnet[-._]5|.*fable[-._]5|.*mythos[-._]5" {:variants anthropic-v2-variants
225-
:api ["anthropic" "bedrock"]}
225+
".*opus[-._]4[-._][78]|.*opus[-._]5|.*sonnet[-._]5|.*fable[-._]5|.*mythos[-._]5" {:variants anthropic-v2-variants
226+
:api ["anthropic" "bedrock"]}
226227
".*gpt[-._]5(?:[-._](?:2|4|5)(?!\\d)|[-._]3[-._]codex)" {:variants openai-variants
227228
:excludeProviders ["github-copilot"]}
228229
".*gpt[-._]5[-._]6(?!\\d)" {:variants openai-gpt-5-6-variants

src/eca/models.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@
167167
"anthropic/claude-opus-4-7"
168168
"anthropic/claude-opus-4.8"
169169
"anthropic/claude-opus-4-8"
170+
"anthropic/claude-opus-5"
170171
"anthropic/claude-sonnet-5"
171172
"anthropic/claude-fable-5"
172173
"anthropic/claude-mythos-5"

0 commit comments

Comments
 (0)