fix: copilot url join (#871)
This commit is contained in:
parent
e65be50a0a
commit
3beed68157
@ -79,7 +79,7 @@ H.get_oauth_token = function()
|
|||||||
end
|
end
|
||||||
|
|
||||||
H.chat_auth_url = "https://api.github.com/copilot_internal/v2/token"
|
H.chat_auth_url = "https://api.github.com/copilot_internal/v2/token"
|
||||||
H.chat_completion_url = function(base_url) return Utils.trim(base_url, { prefix = "/" }) .. "/chat/completions" end
|
H.chat_completion_url = function(base_url) return Utils.url_join(base_url, "/chat/completions") end
|
||||||
|
|
||||||
---@class AvanteProviderFunctor
|
---@class AvanteProviderFunctor
|
||||||
local M = {}
|
local M = {}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user