Skip to content

Commit c79a4af

Browse files
authored
Merge pull request #1132 from rumpl/allow-space
Trim the model name, allowing spaces between models
2 parents 07541bb + b6f0c72 commit c79a4af

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

pkg/config/gather.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ func GatherEnvVarsForModels(cfg *latest.Config) []string {
5454
for agentName := range cfg.Agents {
5555
modelNames := strings.SplitSeq(cfg.Agents[agentName].Model, ",")
5656
for modelName := range modelNames {
57+
modelName = strings.TrimSpace(modelName)
5758
model := cfg.Models[modelName]
5859

5960
if model.TokenKey != "" {

0 commit comments

Comments
 (0)