Browse Source

add missing _MODEL suffix to model variable pass to dependent services of a model

Signed-off-by: Guillaume Lours <[email protected]>
Guillaume Lours 4 months ago
parent
commit
9e98e6101e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pkg/compose/model.go

+ 1 - 1
pkg/compose/model.go

@@ -195,7 +195,7 @@ func (m *modelAPI) SetModelVariables(ctx context.Context, project *types.Project
 			if modelConfig != nil && modelConfig.ModelVariable != "" {
 				variable = modelConfig.ModelVariable
 			} else {
-				variable = varPrefix
+				variable = varPrefix + "_MODEL"
 			}
 			service.Environment[variable] = &model.Model