From 8e098752bdb9bd9439fcdc8b84c79bf620517223 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 31 Oct 2024 10:08:41 -0700 Subject: [PATCH] refactor: Use main_model attributes for weak and editor models in analytics --- aider/analytics.py | 1 + 1 file changed, 1 insertion(+) diff --git a/aider/analytics.py b/aider/analytics.py index 95cc8eb38..4d1cc519f 100644 --- a/aider/analytics.py +++ b/aider/analytics.py @@ -119,6 +119,7 @@ class Analytics: return model.name.split("/")[0] + "/REDACTED" return None + # ai: actually, weak_model and editor_model are attributes of main_model; use them instead! def event(self, event_name, main_model=None, weak_model=None, editor_model=None, **kwargs): if not (self.mp or self.ph) and not self.logfile: return