File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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)]
You can’t perform that action at this time.
0 commit comments