Skip to content

Commit 5cc2693

Browse files
committed
fix(adapters): olimorris#560 nil url in openai_compatible adpater
1 parent 3c1b3f8 commit 5cc2693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/codecompanion/adapters/openai_compatible.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ end
6666
local function get_completion_url(self, opts)
6767
local adapter = require("codecompanion.adapters").resolve(self)
6868
local url = adapter.env_replaced.chat_url
69-
if not adapter.env_replaced.chat_url then
69+
if not url then
7070
url = "/v1/chat/completions"
7171
end
7272
return url

0 commit comments

Comments
 (0)