cmd/launch: add guards for headless mode (#14837)

This commit is contained in:
Parth Sareen
2026-03-14 00:10:02 -07:00
committed by GitHub
parent 10fefe0d57
commit f8b657c967
2 changed files with 7 additions and 1 deletions

View File

@@ -199,7 +199,7 @@ func showOrPullWithPolicy(ctx context.Context, client *api.Client, model string,
case missingModelAutoPull:
return pullMissingModel(ctx, client, model)
case missingModelFail:
return fmt.Errorf("model %q not found; run 'ollama pull %s' first", model, model)
return fmt.Errorf("model %q not found; run 'ollama pull %s' first, or use --yes to auto-pull", model, model)
default:
return confirmAndPull(ctx, client, model)
}