From 7ef10c56a23f657a48767c2fdf5ebf850ad64fcc Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 19 Apr 2024 11:07:31 -0700 Subject: [PATCH] Added a fuzzy model matching function to find models by name. --- aider/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/aider/models.py b/aider/models.py index bf79ba7e3..3277d6bf7 100644 --- a/aider/models.py +++ b/aider/models.py @@ -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()