diff --git a/internal/config/model_providers.go b/internal/config/model_providers.go index 19e2954e8..9feea73e8 100644 --- a/internal/config/model_providers.go +++ b/internal/config/model_providers.go @@ -37,7 +37,7 @@ func (p Provider) KeyEnv(id string) string { func (c Config) ModelProviders() map[string]Provider { out := make(map[string]Provider, len(c.Providers)) for _, ref := range c.Models { - id, _, ok := strings.Cut(ref, "/") + id, _, ok := strings.Cut(strings.TrimSpace(ref), "/") if !ok { continue }