diff --git a/CHANGELOG.md b/CHANGELOG.md index 7aee5e5..fab6b17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ + +## 1.15.2 - 2024-04-09 +### Fixed +- Fixed an issue with `apikey` being required for making vLLM requests + ## 1.15.1 - 2024-04-07 ### Added - Added support for `apikey` in vLLM integration diff --git a/internal/authenticator/authenticator.go b/internal/authenticator/authenticator.go index 694efcb..1f890c0 100644 --- a/internal/authenticator/authenticator.go +++ b/internal/authenticator/authenticator.go @@ -78,8 +78,10 @@ func rewriteHttpAuthHeader(req *http.Request, setting *provider.Setting) error { apiKey := setting.GetParam("apikey") - if strings.HasPrefix(uri, "/api/providers/vllm") && len(apiKey) != 0 { - req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", apiKey)) + if strings.HasPrefix(uri, "/api/providers/vllm") { + if len(apiKey) != 0 { + req.Header.Set("Authorization", fmt.Sprintf("Bearer %s", apiKey)) + } return nil }