Skip to content

Commit

Permalink
fix(adapters): #560 nil url in openai_compatible adpater
Browse files Browse the repository at this point in the history
  • Loading branch information
olimorris committed Dec 22, 2024
1 parent 3c1b3f8 commit 5cc2693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/codecompanion/adapters/openai_compatible.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ end
local function get_completion_url(self, opts)
local adapter = require("codecompanion.adapters").resolve(self)
local url = adapter.env_replaced.chat_url
if not adapter.env_replaced.chat_url then
if not url then
url = "/v1/chat/completions"
end
return url
Expand Down

0 comments on commit 5cc2693

Please sign in to comment.