feat: add url_join (#856)
This commit is contained in:
@@ -25,11 +25,10 @@ M.parse_curl_args = function(provider, code_opts)
|
||||
if not P.env.is_local("azure") then headers["api-key"] = provider.parse_api_key() end
|
||||
|
||||
return {
|
||||
url = Utils.trim(base.endpoint, { suffix = "/" })
|
||||
.. "/openai/deployments/"
|
||||
.. base.deployment
|
||||
.. "/chat/completions?api-version="
|
||||
.. base.api_version,
|
||||
url = Utils.url_join(
|
||||
base.endpoint,
|
||||
"/openai/deployments/" .. base.deployment .. "/chat/completions?api-version=" .. base.api_version
|
||||
),
|
||||
proxy = base.proxy,
|
||||
insecure = base.allow_insecure,
|
||||
headers = headers,
|
||||
|
||||
Reference in New Issue
Block a user