MCPcopy Create free account
hub / github.com/alibaba/open-code-review / activeModelForProvider

Function activeModelForProvider

cmd/opencodereview/config_cmd.go:624–632  ·  view source on GitHub ↗
(cfg *Config, providerName string, entry ProviderEntry)

Source from the content-addressed store, hash-verified

622}
623
624func activeModelForProvider(cfg *Config, providerName string, entry ProviderEntry) string {
625 if entry.Model != "" {
626 return entry.Model
627 }
628 if cfg != nil && cfg.Provider == providerName && cfg.Model != "" {
629 return cfg.Model
630 }
631 return ""
632}
633
634func normalizeModelList(models []string) []string {
635 out := make([]string, 0, len(models))

Calls

no outgoing calls