From 5dc1e681d75a7691f3b1522f9b023af1f5dfbc0d Mon Sep 17 00:00:00 2001 From: Spike Lu Date: Wed, 11 Sep 2024 18:21:23 -0700 Subject: [PATCH] fix provider selection issue --- internal/authenticator/authenticator.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/authenticator/authenticator.go b/internal/authenticator/authenticator.go index 005b67c..38c53b8 100644 --- a/internal/authenticator/authenticator.go +++ b/internal/authenticator/authenticator.go @@ -156,6 +156,10 @@ func (a *Authenticator) getProviderSettingsThatCanAccessCustomRoute(path string, } func canAccessPath(provider string, path string) bool { + if provider == "bedrock" && !strings.HasPrefix(path, "/api/providers/bedrock") { + return false + } + if provider == "openai" && !strings.HasPrefix(path, "/api/providers/openai") { return false }