Skip to content

Commit

Permalink
fix provider selection issue
Browse files Browse the repository at this point in the history
  • Loading branch information
spikelu2016 committed Sep 12, 2024
1 parent 9f42b41 commit 5dc1e68
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/authenticator/authenticator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 5dc1e68

Please sign in to comment.