refactor: remove redundant local field to facilitate provider configuration (#858)
This commit is contained in:
@@ -22,7 +22,7 @@ M.parse_curl_args = function(provider, code_opts)
|
||||
local headers = {
|
||||
["Content-Type"] = "application/json",
|
||||
}
|
||||
if not P.env.is_local("azure") then headers["api-key"] = provider.parse_api_key() end
|
||||
if P.env.require_api_key(base) then headers["api-key"] = provider.parse_api_key() end
|
||||
|
||||
return {
|
||||
url = Utils.url_join(
|
||||
|
||||
Reference in New Issue
Block a user