chore: print model attribute instead of model name used in compose file

Signed-off-by: MohammadHasan Akbari <jarqvi.jarqvi@gmail.com>
This commit is contained in:
MohammadHasan Akbari 2025-07-09 06:51:34 +00:00 committed by Guillaume Lours
parent f42226e352
commit cb95910018

View File

@ -393,8 +393,10 @@ func runModels(ctx context.Context, dockerCli command.Cli, opts configOptions) e
if err != nil { if err != nil {
return err return err
} }
for n := range project.Models { for _, model := range project.Models {
_, _ = fmt.Fprintln(dockerCli.Out(), n) if model.Model != "" {
_, _ = fmt.Fprintln(dockerCli.Out(), model.Model)
}
} }
return nil return nil
} }