mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +00:00
refactor: add weak_model and editor_model args to analytics event method
This commit is contained in:
parent
01bf154151
commit
2fd1681fab
1 changed files with 2 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue