mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +00:00
fix: Handle missing litellm_provider in fuzzy model matching
This commit is contained in:
parent
b254afa498
commit
d4d5d15e18
1 changed files with 4 additions and 1 deletions
|
@ -1167,7 +1167,10 @@ def fuzzy_match_models(name):
|
|||
model = model.lower()
|
||||
if attrs.get("mode") != "chat":
|
||||
continue
|
||||
provider = (attrs["litellm_provider"] + "/").lower()
|
||||
provider = attrs.get("litellm_provider", "").lower()
|
||||
if not provider:
|
||||
continue
|
||||
provider += "/"
|
||||
|
||||
if model.startswith(provider):
|
||||
fq_model = model
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue