From 2fd1681fab48faa3dd11ca3e302268de7792ce42 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Thu, 31 Oct 2024 10:05:08 -0700 Subject: [PATCH] refactor: add weak_model and editor_model args to analytics event method --- aider/analytics.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/aider/analytics.py b/aider/analytics.py index 584debccd..a078f62d5 100644 --- a/aider/analytics.py +++ b/aider/analytics.py @@ -108,6 +108,7 @@ class Analytics: "machine": platform.machine(), } + #ai add weak_model and editor_model as args, redact them too def event(self, event_name, main_model=None, **kwargs): if not (self.mp or self.ph) and not self.logfile: return @@ -115,6 +116,7 @@ class Analytics: properties = {} if main_model: + # ai: refactor this into a method! # Redact the main model name unless it is in the public litellm db info = model_info_manager.get_model_from_cached_json_db(main_model.name) if info: