Skip to content

Commit ccc253e

Browse files
Jakub ZikaJakub Zika
authored andcommitted
Fix model name parsing
1 parent aa5a8d5 commit ccc253e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/eca/llm_api.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
callbacks)
173173

174174
(contains? custom-models model)
175-
(let [[provider model] (string/split model #"/")
175+
(let [[provider model] (string/split model #"/" 2)
176176
provider-config (get custom-providers (keyword provider))
177177
provider-fn (case (:api provider-config)
178178
"openai" llm-providers.openai/completion!

0 commit comments

Comments
 (0)