Skip to content

feat(convert): set default model and endpoint variables for services in convert.go - #13342

Closed
idsulik wants to merge 2 commits into
docker:mainfrom
idsulik:issue-13341
Closed

feat(convert): set default model and endpoint variables for services in convert.go#13342
idsulik wants to merge 2 commits into
docker:mainfrom
idsulik:issue-13341

Conversation

@idsulik

@idsulik idsulik commented Nov 1, 2025

Copy link
Copy Markdown
Collaborator

What I did
This PR resolves issue #13341 by automatically setting default model_var and endpoint_var values for services that use models but don't explicitly define these variables

Related issue
#13341

…in convert.go

Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
Signed-off-by: Suleiman Dibirov <idsulik@gmail.com>
@idsulik
idsulik requested a review from a team as a code owner November 1, 2025 20:59
@idsulik
idsulik requested review from glours and ndeloof November 1, 2025 20:59

@ndeloof ndeloof left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

default values should be set by compose-go as we load a project IMHO

@idsulik

idsulik commented Nov 3, 2025

Copy link
Copy Markdown
Collaborator Author

@ndeloof but I'm not sure if it ok to make these changes for all places, because the documentation says only about environment values https://docs.docker.com/reference/compose-file/services/#models

If either is omitted, Compose automatically generates the environment variable names based on the model key using the following rules...

but in this PR I made the changes only for the converter, because it doesn't work even if you specify the environment values

@github-actions github-actions Bot added the stale label Jan 4, 2026
@ndeloof

ndeloof commented Jan 12, 2026

Copy link
Copy Markdown
Contributor

closing as #13341 was fixed

@ndeloof ndeloof closed this Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants