mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-28 16:25:00 +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>"
|
||||
if model == ms.name or model.endswith("/" + ms.name):
|
||||
for field in fields(ModelSettings):
|
||||
if field.name == "name":
|
||||
continue
|
||||
val = getattr(ms, field.name)
|
||||
setattr(self, field.name, val)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue