Skip to content

Commit ead11e1

Browse files
committed
Drop uneeded ollama useTools and ollama think configs.
1 parent 74fce32 commit ead11e1

File tree

4 files changed

+3
-14
lines changed

4 files changed

+3
-14
lines changed

CHANGELOG.md

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

55
- Update copilot models
6+
- Drop uneeded `ollama useTools` and `ollama think` configs.
67

78
## 0.30.0
89

docs/configuration.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,6 @@ There are 3 possible ways to configure rules following this order of priority:
190190
models: {[key: string]: {
191191
extraPayload: {[key: string]: any}
192192
}};
193-
ollama?: {
194-
useTools: boolean;
195-
think: boolean;
196-
};
197193
chat?: {
198194
welcomeMessage: string;
199195
};
@@ -233,10 +229,6 @@ There are 3 possible ways to configure rules following this order of priority:
233229
"mcpServers" : {},
234230
"customProviders": {},
235231
"models": {},
236-
"ollama" : {
237-
"useTools": true,
238-
"think": true
239-
},
240232
"chat" : {
241233
"welcomeMessage" : "Welcome to ECA!\n\nType '/' for commands\n\n"
242234
},

src/eca/config.clj

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@
4747
"anthropic/claude-opus-4-1-20250805" {:extraPayload {:thinking {:type "enabled" :budget_tokens 2048}}}
4848
"anthropic/claude-opus-4-20250514" {:extraPayload {:thinking {:type "enabled" :budget_tokens 2048}}}
4949
"anthropic/claude-3-5-haiku-20241022" {:extraPayload {:thinking {:type "enabled" :budget_tokens 2048}}}}
50-
:ollama {:useTools true
51-
:think true}
5250
:chat {:welcomeMessage "Welcome to ECA!\n\nType '/' for commands\n\n"}
5351
:agentFileRelativePath "AGENT.md"
5452
:customProviders {}

src/eca/llm_api.clj

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,10 +66,8 @@
6666
(fn [{:keys [model] :as ollama-model}]
6767
(let [capabilities (llm-providers.ollama/model-capabilities {:api-url ollama-api-url :model model})]
6868
(assoc ollama-model
69-
:tools (and (get-in config [:ollama :useTools] true)
70-
(boolean (some #(= % "tools") capabilities)))
71-
:reason? (and (get-in config [:ollama :think] true)
72-
(boolean (some #(= % "thinking") capabilities))))))
69+
:tools (boolean (some #(= % "tools") capabilities))
70+
:reason? (boolean (some #(= % "thinking") capabilities)))))
7371
(llm-providers.ollama/list-models {:api-url ollama-api-url}))))
7472

7573
(defn default-model

0 commit comments

Comments
 (0)