mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-02 18:54:59 +00:00
refactor: lowercase model names for fuzzy matching while preserving original case
This commit is contained in:
parent
05a77c7406
commit
16c4374f7a
1 changed files with 1 additions and 0 deletions
|
@ -1349,6 +1349,7 @@ def fuzzy_match_models(name):
|
|||
|
||||
chat_models = set()
|
||||
for model, attrs in litellm.model_cost.items():
|
||||
# it's fine to lowercase for fuzzy searching, but we need to return the original case version ai!
|
||||
model = model.lower()
|
||||
if attrs.get("mode") != "chat":
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue