Skip to content

Commit 0d5ff4e

Browse files
committed
Support claude-opus-4-1 model
1 parent 7136b87 commit 0d5ff4e

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

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+
- Support `claude-opus-4-1` model;
6+
57
## 0.18.0
68

79
- Replace `chat` behavior with `plan`.

docs/models.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
- [claude-sonnet-4-0](https://docs.anthropic.com/en/docs/about-claude/models/overview)
2020
- [claude-opus-4-0](https://docs.anthropic.com/en/docs/about-claude/models/overview)
21+
- [claude-opus-4-1](https://docs.anthropic.com/en/docs/about-claude/models/overview)
2122
- [claude-3-5-haiku-latest](https://docs.anthropic.com/en/docs/about-claude/models/overview)
2223

2324
### Ollama

docs/protocol.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -262,21 +262,9 @@ interface ChatPromptParams {
262262
}
263263

264264
/**
265-
* The currently supported models.
265+
* The LLM model name.
266266
*/
267-
type ChatModel =
268-
| 'o4-mini'
269-
| 'o3'
270-
| 'gpt-4.1'
271-
| 'claude-sonnet-4-0'
272-
| 'claude-opus-4-0'
273-
| 'claude-3-5-haiku-latest'
274-
OllamaRunningModel;
275-
276-
/**
277-
* Ollama running models available locally.
278-
*/
279-
type OllamaRunningModel = string
267+
type ChatModel = string;
280268

281269
type ChatContext = FileContext | DirectoryContext | WebContext | RepoMapContext | McpResourceContext;
282270

src/eca/db.clj

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@
4545
:input-cache-creation-token-cost (/ 18.75 one-million)
4646
:input-cache-read-token-cost (/ 1.5 one-million)
4747
:output-token-cost (/ 75.0 one-million)}
48+
"claude-opus-4-1" {:tools true
49+
:web-search true
50+
:max-output-tokens 8196
51+
:reason? true
52+
:reason-tokens 2048
53+
:input-token-cost (/ 15.0 one-million)
54+
:input-cache-creation-token-cost (/ 18.75 one-million)
55+
:input-cache-read-token-cost (/ 1.5 one-million)
56+
:output-token-cost (/ 75.0 one-million)}
4857
"claude-3-5-haiku-latest" {:tools true
4958
:web-search true
5059
:reason? false

src/eca/llm_api.clj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@
136136

137137
(contains? #{"claude-sonnet-4-0"
138138
"claude-opus-4-0"
139+
"claude-opus-4-1"
139140
"claude-3-5-haiku-latest"} model)
140141
(llm-providers.anthropic/completion!
141142
{:model model

0 commit comments

Comments
 (0)