MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / oauthExcludedModels

Method oauthExcludedModels

sdk/cliproxy/service.go:2309–2320  ·  view source on GitHub ↗
(provider, authKind string)

Source from the content-addressed store, hash-verified

2307}
2308
2309func (s *Service) oauthExcludedModels(provider, authKind string) []string {
2310 cfg := s.cfg
2311 if cfg == nil {
2312 return nil
2313 }
2314 authKindKey := strings.ToLower(strings.TrimSpace(authKind))
2315 providerKey := strings.ToLower(strings.TrimSpace(provider))
2316 if authKindKey == "apikey" {
2317 return nil
2318 }
2319 return cfg.OAuthExcludedModels[providerKey]
2320}
2321
2322func applyExcludedModels(models []*ModelInfo, excluded []string) []*ModelInfo {
2323 if len(models) == 0 || len(excluded) == 0 {

Calls

no outgoing calls

Tested by

no test coverage detected