This commit is contained in:
Paul Gauthier 2024-04-19 13:45:51 -07:00
parent 6cecbd02d6
commit aac110f078
4 changed files with 58 additions and 92 deletions

View file

@ -205,6 +205,7 @@ def main(argv=None, input=None, output=None, force_git_root=None):
core_group.add_argument(
"--4turbo",
"--4-turbo",
"--4-turbo-vision",
action="store_const",
dest="model",
const=default_4_turbo_model,

View file

@ -232,12 +232,12 @@ class Model:
def check_model_name(model):
res = f"Unknown model: {model}"
res = f"Unknown model {model}"
possible_matches = fuzzy_match_models(model)
if possible_matches:
res += "\n\nDid you mean one of these:\n"
res += ", did you mean one of these?"
for match in possible_matches:
res += "\n- " + match