fix: copilot url join (#871)

This commit is contained in:
yetone 2024-11-19 06:20:42 +08:00 committed by GitHub
parent e65be50a0a
commit 3beed68157
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -79,7 +79,7 @@ H.get_oauth_token = function()
end
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
local M = {}