Commit graph

5921 commits

Author SHA1 Message Date
Paul Gauthier
4ebbfa01b7 share last 1k analytics logs 2024-08-13 07:50:28 -07:00
Paul Gauthier
960b456e70 cleanup 2024-08-13 07:50:06 -07:00
Paul Gauthier (aider)
329514289d fix: Initialize Analytics instance with track=False if analytics is None 2024-08-13 07:45:35 -07:00
Paul Gauthier (aider)
03f14dfe47 feat: Create Analytics instance with track=False if analytics is None 2024-08-13 07:45:19 -07:00
Paul Gauthier (aider)
1c321df457 feat: Move analytics arguments to their own section 2024-08-13 07:23:46 -07:00
Paul Gauthier
8a21eb7804 handle new vars that accumulate tokens/costs for infinite output 2024-08-13 07:23:01 -07:00
Paul Gauthier
c1d4adbebf added mixpanel dep 2024-08-13 07:18:26 -07:00
Paul Gauthier
ef933c207b Merge branch 'main' into mixpanel 2024-08-13 07:17:13 -07:00
Paul Gauthier
08aaae4d36 initial 2024-08-13 07:16:35 -07:00
Paul Gauthier
e755fd3d38 copy 2024-08-13 07:15:53 -07:00
Paul Gauthier
f52265362f Merge branch 'main' into mixpanel 2024-08-13 07:09:34 -07:00
Paul Gauthier
60a832155d copy 2024-08-13 07:07:11 -07:00
Paul Gauthier (aider)
b1486debf8 style: Format code with line breaks for better readability 2024-08-13 06:42:17 -07:00
Paul Gauthier (aider)
935bc2d2a6 feat: Accumulate tokens sent and received in calculate_and_show_tokens_and_cost 2024-08-13 06:42:12 -07:00
Paul Gauthier
26305a975d copy 2024-08-13 06:25:10 -07:00
Paul Gauthier
89f6af94b9 only show usage report when prefill repeats are done, clear message-cost 2024-08-13 06:21:02 -07:00
Paul Gauthier (aider)
74e85d558f style: Format cost report for better readability 2024-08-13 06:16:11 -07:00
Paul Gauthier (aider)
8cb59902a8 feat: Accumulate message cost and update usage report 2024-08-13 06:16:06 -07:00
Paul Gauthier
62fc417655 Merge branch 'main' into litellm-prefill 2024-08-13 05:54:45 -07:00
Paul Gauthier (aider)
20341d6a43 fix: remove unused variable 'interrupted' 2024-08-13 05:54:26 -07:00
Paul Gauthier
fb0066cbf0 fix: Handle KeyboardInterrupt in show_send_output_stream 2024-08-13 05:54:19 -07:00
Paul Gauthier
ad16cc3c41 fix: Add verbose output for version check 2024-08-13 05:35:07 -07:00
Paul Gauthier (aider)
76a4b878b1 feat: Add verbose argument to check_version function 2024-08-13 05:31:04 -07:00
Paul Gauthier (aider)
abb375eb73 style: Format code with linter 2024-08-13 05:29:21 -07:00
Paul Gauthier (aider)
cef421dfc0 feat: Add patch for InputOutput in test_main_exit_calls_version_check 2024-08-13 05:29:18 -07:00
Paul Gauthier
fcf758527a fix: Call check_version in main with input and output arguments 2024-08-13 05:29:17 -07:00
Paul Gauthier (aider)
58f06e1f56 feat: add GitTemporaryDirectory to test_main_exit_calls_version_check 2024-08-13 05:26:12 -07:00
Paul Gauthier (aider)
a30a27fa8a feat: add test for main --exit that confirms version_check is called 2024-08-13 05:25:36 -07:00
Paul Gauthier
c286135eeb fix: Add new --deepseek switch and chat mode options 2024-08-12 21:12:05 -07:00
Paul Gauthier
124e852366 infinity! 2024-08-12 20:55:10 -07:00
Paul Gauthier
8d7927d35b bump deps to pickup new litellm 2024-08-12 20:55:01 -07:00
Paul Gauthier (aider)
00aa43d964 fix: Move imports to the top of the file in aider/analytics.py 2024-08-12 20:44:56 -07:00
Paul Gauthier (aider)
84489f16b5 refactor: Refactor data file name and mkdir operations 2024-08-12 20:44:42 -07:00
Paul Gauthier
e07194bbeb fix: Rename uuid_file to data_file for consistency 2024-08-12 20:44:41 -07:00
Paul Gauthier (aider)
1567d3e3d1 fix: Remove duplicate get_or_create_uuid method 2024-08-12 20:41:59 -07:00
Paul Gauthier (aider)
eca7a57138 style: Format code with linter 2024-08-12 20:41:17 -07:00
Paul Gauthier (aider)
64df0ad590 feat: Add --analytics-disable option to disable analytics tracking 2024-08-12 20:41:10 -07:00
Paul Gauthier
5a28d499a8 fix: Update the path for the Mixpanel UUID file 2024-08-12 20:41:09 -07:00
Paul Gauthier
4bad876f66 fix: Add event tracking for interactive help command 2024-08-12 20:36:51 -07:00
Paul Gauthier (aider)
1a8763d989 feat: Add --analytics-log argument and pass it to Analytics 2024-08-12 18:27:40 -07:00
Paul Gauthier (aider)
13eaf5e5ce style: Fix formatting in analytics.py 2024-08-12 18:26:11 -07:00
Paul Gauthier (aider)
82250db8af feat: Add logfile support to Analytics class 2024-08-12 18:26:08 -07:00
Paul Gauthier
85fa78f5a6 fix: Correct command execution logic 2024-08-12 18:23:51 -07:00
Paul Gauthier (aider)
9ed732959e fix: Remove unnecessary slice from event name in Commands.run 2024-08-12 18:22:51 -07:00
Paul Gauthier (aider)
860a36fe6c refactor: Extract command name from matching_commands[0][1:] 2024-08-12 18:22:36 -07:00
Paul Gauthier (aider)
01a9a8ffc4 feat: add event logging for command usage 2024-08-12 18:22:05 -07:00
Paul Gauthier
aa840f0e28 be careful logging main_models that are not in the model db 2024-08-12 18:20:35 -07:00
Paul Gauthier (aider)
a7a626423c fix: Remove properties argument from event method in Analytics class 2024-08-12 18:08:02 -07:00
Paul Gauthier
c2c9b60ea6 feat: Add main_model parameter to event method in analytics.py 2024-08-12 18:08:01 -07:00
Paul Gauthier (aider)
a6282818db fix: Add early return if self.mp is not set 2024-08-12 16:23:12 -07:00