(cfg *Config, providerName string, entry ProviderEntry)
| 622 | } |
| 623 | |
| 624 | func 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 | |
| 634 | func normalizeModelList(models []string) []string { |
| 635 | out := make([]string, 0, len(models)) |
no outgoing calls