refactor: Use main_model attributes for weak and editor models in analytics

This commit is contained in:
Paul Gauthier 2024-10-31 10:08:41 -07:00 committed by Paul Gauthier (aider)
parent 6867dab89c
commit 8e098752bd

View file

@ -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