mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
Don't stomp Model.name after a partial match against ModelSettings #568
This commit is contained in:
parent
8983767ff3
commit
83c76a3c65
1 changed files with 2 additions and 0 deletions
|
@ -190,6 +190,8 @@ class Model:
|
||||||
# direct match, or match "provider/<model>"
|
# direct match, or match "provider/<model>"
|
||||||
if model == ms.name or model.endswith("/" + ms.name):
|
if model == ms.name or model.endswith("/" + ms.name):
|
||||||
for field in fields(ModelSettings):
|
for field in fields(ModelSettings):
|
||||||
|
if field.name == "name":
|
||||||
|
continue
|
||||||
val = getattr(ms, field.name)
|
val = getattr(ms, field.name)
|
||||||
setattr(self, field.name, val)
|
setattr(self, field.name, val)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue