Skip to content

Commit 4d97900

Browse files
committed
Fix default model selection to check anthropic api key before.
1 parent 3b68b32 commit 4d97900

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

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

55
- Fix mcp tool calls.
66
- Improve eca filesystem calls for better tool usage from LLM.
7+
- Fix default model selection to check anthropic api key before.
78

89
## 0.15.0
910

src/eca/llm_api.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,12 @@
6565
model))
6666
(:models db)))]
6767
[:custom-provider-default-model custom-provider-default-model])
68-
(when-let [ollama-model (first (filter #(string/starts-with? % config/ollama-model-prefix) (keys (:models db))))]
69-
[:ollama-running ollama-model])
7068
(when (anthropic-api-key config)
7169
[:api-key-found "claude-sonnet-4-0"])
7270
(when (openai-api-key config)
7371
[:api-key-found "o4-mini"])
72+
(when-let [ollama-model (first (filter #(string/starts-with? % config/ollama-model-prefix) (keys (:models db))))]
73+
[:ollama-running ollama-model])
7474
[:default "claude-sonnet-4-0"])]
7575
(logger/info logger-tag (format "Default LLM model '%s' decision '%s'" model decision))
7676
model))

0 commit comments

Comments
 (0)