fix(ai-proxy): clean client Authorization header for api-key providers (#3956)

Signed-off-by: DENG <33118163+XinhhD@users.noreply.github.com>
Co-authored-by: woody <yaodiwu618@gmail.com>
This commit is contained in:
DENG
2026-06-16 16:19:37 +08:00
committed by GitHub
parent d1f95f6e54
commit 7abf27a2a3
4 changed files with 15 additions and 3 deletions

View File

@@ -359,6 +359,7 @@ func (m *azureProvider) TransformRequestHeaders(ctx wrapper.HttpContext, apiName
}
util.OverwriteRequestHostHeader(headers, m.serviceUrl.Host)
headers.Set("api-key", m.config.GetApiTokenInUse(ctx))
headers.Del(util.HeaderAuthorization)
headers.Del("Content-Length")
supportedAPI := m.config.isSupportedAPI(apiName)