mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-04 03:35:00 +00:00
feat: Add analytics for auto-commits and auto-model selection
This commit is contained in:
parent
d8830c43c5
commit
2fe79ac6a3
1 changed files with 5 additions and 0 deletions
|
@ -771,6 +771,8 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
io.tool_warning(
|
io.tool_warning(
|
||||||
f"Found {env_key} so using {model_name} since no --model was specified."
|
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)
|
||||||
break
|
break
|
||||||
if not args.model:
|
if not args.model:
|
||||||
io.tool_error("You need to specify a --model and an --api-key to use.")
|
io.tool_error("You need to specify a --model and an --api-key to use.")
|
||||||
|
@ -922,6 +924,9 @@ def main(argv=None, input=None, output=None, force_git_root=None, return_coder=F
|
||||||
else:
|
else:
|
||||||
map_tokens = args.map_tokens
|
map_tokens = args.map_tokens
|
||||||
|
|
||||||
|
# Track auto-commits configuration
|
||||||
|
analytics.event("auto_commits", enabled=bool(args.auto_commits))
|
||||||
|
|
||||||
try:
|
try:
|
||||||
coder = Coder.create(
|
coder = Coder.create(
|
||||||
main_model=main_model,
|
main_model=main_model,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue