Show the headless hint as the object to merge into the models file

This commit was merged in pull request #68.
This commit is contained in:
2026-09-26 20:00:24 +02:00
parent 413aa2f638
commit a670bcee7b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -276,7 +276,7 @@ def read_models(saved):
def ask_model(name, saved):
if not (sys.stdin.isatty() and sys.stdout.isatty()):
print(f"{name} has no model in {saved}, and stdin or stdout is not a terminal to ask on; run it on a terminal or add \"{name}\": \"<model>\" to the JSON object in {saved}", file=sys.stderr)
print(f"{name} has no model in {saved}, and stdin or stdout is not a terminal to ask on; run it on a terminal or merge {{\"{name}\": \"<model>\"}} into {saved}", file=sys.stderr)
sys.exit(2)
offered = catalog()
print(f"\nThe model to run {name} on, saved in {saved}:", file=sys.stderr)