We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 451a76b commit 5a1a5f4Copy full SHA for 5a1a5f4
1 file changed
DocToolsLLM/utils/misc.py
@@ -242,9 +242,11 @@ def wrapped_model_name_matcher(model: str) -> str:
242
match = get_close_matches(modelname, candidates, n=1)
243
if match:
244
return match[0]
245
-
246
- red(f"Matching name for model with heuristics: {model}->{best_match}")
247
- return best_match
+ else:
+ red(f"Couldn't match the modelname {model} to any known model. "
+ "Continuing but this will probably crash DocToolsLLM further "
248
+ "down the code.")
249
+ return model
250
251
def model_name_matcher(model: str) -> str:
252
"""find the best match for a modelname (wrapper that checks if the matched
0 commit comments