Skip to content

Commit b6f0c72

Browse files
committed
Trim the model name, allowing spaces between models
So we can model1, model2 This is in line with how these are handled from the command line Signed-off-by: Djordje Lukic <djordje.lukic@docker.com>
1 parent 4b0bcef commit b6f0c72

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)