fix(config): read a model alias's provider the way the resolver does
This commit is contained in:
1 parent
01cd599ef7
commit
898429bf03
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user