From 83c76a3c652d2180998939c82c43b325fc6b5671 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Mon, 22 Apr 2024 10:36:10 -0700 Subject: [PATCH] Don't stomp Model.name after a partial match against ModelSettings #568 --- aider/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aider/models.py b/aider/models.py index b24f4ec9c..353892df4 100644 --- a/aider/models.py +++ b/aider/models.py @@ -190,6 +190,8 @@ class Model: # direct match, or match "provider/" 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)