(provider, authKind string)
| 2307 | } |
| 2308 | |
| 2309 | func (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 | |
| 2322 | func applyExcludedModels(models []*ModelInfo, excluded []string) []*ModelInfo { |
| 2323 | if len(models) == 0 || len(excluded) == 0 { |
no outgoing calls
no test coverage detected