Added a fuzzy model matching function to find models by name.

This commit is contained in:
Paul Gauthier 2024-04-19 11:07:31 -07:00
parent 7ec4de865d
commit 7ef10c56a2

View file

@ -232,3 +232,7 @@ class Model:
"""
with Image.open(fname) as img:
return img.size
def fuzzy_match_models(name):
models = litellm.most_cost.keys()