From 8619bd4e84522a10abd314f736e7ff3fea097178 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Fri, 28 Mar 2025 16:35:30 -1000 Subject: [PATCH] refactor: Update auto_model_selection analytics event properties --- aider/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/aider/main.py b/aider/main.py index 8f9300e9b..a27f9e8e7 100644 --- a/aider/main.py +++ b/aider/main.py @@ -772,11 +772,12 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F f"Found {env_key} so using {model_name} since no --model was specified." ) # Track which API key was used for auto-selection - analytics.event("auto_model_selection", api_key=env_key, model_selected=model_name) + analytics.event("auto_model_selection", api_key=env_key, main_model=model_name) break if not args.model: io.tool_error("You need to specify a --model and an --api-key to use.") io.offer_url(urls.models_and_keys, "Open documentation url for more info?") + analytics.event("auto_model_selection", api_key=None, main_model=None) return 1 main_model = models.Model(