mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +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()
|
model = model.lower()
|
||||||
if attrs.get("mode") != "chat":
|
if attrs.get("mode") != "chat":
|
||||||
continue
|
continue
|
||||||
provider = (attrs["litellm_provider"] + "/").lower()
|
provider = attrs.get("litellm_provider", "").lower()
|
||||||
|
if not provider:
|
||||||
|
continue
|
||||||
|
provider += "/"
|
||||||
|
|
||||||
if model.startswith(provider):
|
if model.startswith(provider):
|
||||||
fq_model = model
|
fq_model = model
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue