Skip to content

Commit 113671d

Browse files
committed
Fix integration tests
1 parent 6a05bdc commit 113671d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/eca/llm_api.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -192,11 +192,11 @@
192192
"copilot-integration-id" "vscode-chat"}}
193193
callbacks)
194194

195-
(string/starts-with? model config/ollama-model-prefix)
195+
(= "ollama" provider)
196196
(llm-providers.ollama/completion!
197197
{:api-url (ollama-api-url config)
198198
:reason? (:reason? model-config)
199-
:model (string/replace-first model config/ollama-model-prefix "")
199+
:model model
200200
:instructions instructions
201201
:user-messages user-messages
202202
:past-messages past-messages

src/eca/llm_providers/ollama.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
(try
6868
(if (not= 200 status)
6969
(let [body-str (slurp body)]
70-
(logger/warn logger-tag "Unexpected response status: %s body: %s" status body-str)
70+
(logger/warn logger-tag (format "Unexpected response status: %s body: %s" status body-str))
7171
(on-error {:message (format "Ollama response status: %s body: %s" status body-str)}))
7272
(with-open [rdr (io/reader body)]
7373
(doseq [[event data] (llm-util/event-data-seq rdr)]

0 commit comments

Comments
 (0)