Skip to content

Commit ed429a4

Browse files
committed
Fix anthropic models and add default for github copilot
1 parent ffbf1ba commit ed429a4

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/eca/config.clj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
"github-copilot/gpt-4o" {}
4545
"github-copilot/claude-3.5-sonnet" {}
4646
"github-copilot/gemini-2.0-flash-001" {}
47-
"anthropic/claude-sonnet-4" {:extraPayload {:thinking {:type "enabled" :budget_tokens 2048}}}
48-
"anthropic/claude-opus-4.1" {:extraPayload {:thinking {:type "enabled" :budget_tokens 2048}}}
49-
"anthropic/claude-opus-4" {:extraPayload {:thinking {:type "enabled" :budget_tokens 2048}}}
50-
"anthropic/claude-3-5-haiku" {:extraPayload {:thinking {:type "enabled" :budget_tokens 2048}}}}
47+
"anthropic/claude-sonnet-4-20250514" {:extraPayload {:thinking {:type "enabled" :budget_tokens 2048}}}
48+
"anthropic/claude-opus-4-1-20250805" {:extraPayload {:thinking {:type "enabled" :budget_tokens 2048}}}
49+
"anthropic/claude-opus-4-20250514" {:extraPayload {:thinking {:type "enabled" :budget_tokens 2048}}}
50+
"anthropic/claude-3-5-haiku-20241022" {:extraPayload {:thinking {:type "enabled" :budget_tokens 2048}}}}
5151
:ollama {:useTools true
5252
:think true}
5353
:chat {:welcomeMessage "Welcome to ECA!\n\nType '/' for commands\n\n"}

src/eca/llm_api.clj

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,14 @@
8888
(:models db)))]
8989
[:custom-provider-default-model custom-provider-default-model])
9090
(when (anthropic-api-key config)
91-
[:api-key-found "anthropic/claude-sonnet-4"])
91+
[:api-key-found "anthropic/claude-sonnet-4-20250514"])
9292
(when (openai-api-key config)
9393
[:api-key-found "openai/gpt-5"])
94+
(when (get-in db [:auth "github-copilot" :api-key])
95+
[:api-key-found "github-copilot/gpt-4.1"])
9496
(when-let [ollama-model (first (filter #(string/starts-with? % config/ollama-model-prefix) (keys (:models db))))]
9597
[:ollama-running ollama-model])
96-
[:default "anthropic/claude-sonnet-4"])]
98+
[:default "anthropic/claude-sonnet-4-20250514"])]
9799
(logger/info logger-tag (format "Default LLM model '%s' decision '%s'" model decision))
98100
model))
99101

0 commit comments

Comments
 (0)