fix(config): read a model alias's provider the way the resolver does

This commit is contained in:
sam committed 2026-10-22 17:39:13 +11:00
1 parent 01cd599ef7
commit 898429bf03
1 file changed
+1 -1
+1 -1
View File
@@ -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
}