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

Signed-off-by: Guillaume Lours <705411+glours@users.noreply.github.com>
This commit is contained in:
Guillaume Lours 2025-07-29 09:25:24 +02:00 committed by Nicolas De loof
parent 52f04229c0
commit 9e98e6101e

View File

@ -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