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

@ -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