(cfg *Config, providerName string, entry ProviderEntry)
| 952 | } |
| 953 | |
| 954 | func activeModelForProvider(cfg *Config, providerName string, entry ProviderEntry) string { |
| 955 | if entry.Model != "" { |
| 956 | return entry.Model |
| 957 | } |
| 958 | if cfg != nil && cfg.Provider == providerName && cfg.Model != "" { |
| 959 | return cfg.Model |
| 960 | } |
| 961 | return "" |
| 962 | } |
| 963 | |
| 964 | func normalizeModelList(models []string) []string { |
| 965 | out := make([]string, 0, len(models)) |
no outgoing calls