Commit graph

837 commits

Author SHA1 Message Date
Paul Gauthier (aider)
0f2211c321 feat: Add cached token reporting in calculate_and_show_tokens_and_cost 2024-08-17 07:11:09 -07:00
Paul Gauthier
77be2b37d3 feat: Add repo-map refresh information to output 2024-08-17 07:06:31 -07:00
Paul Gauthier
022d103a99 fix: Add cache control headers to chat messages 2024-08-17 07:02:56 -07:00
Paul Gauthier
0bd4dc4622 fix: Remove duplicate parameter cache_prompts in Coder constructor 2024-08-17 06:49:03 -07:00
Paul Gauthier
7850236ba2 feat: Add cache_prompts parameter to Coder constructor 2024-08-17 06:48:12 -07:00
Paul Gauthier (aider)
f9ed868076 feat: Add map_refresh parameter to Coder and pass it to RepoMap 2024-08-17 06:36:21 -07:00
Paul Gauthier (aider)
ce10b89896 style: format code using linter 2024-08-16 16:42:39 -07:00
Paul Gauthier (aider)
1daee69f15 fix: Break apart get_files_messages into separate methods
feat: Refactor ChatChunks class to include new attributes
2024-08-16 16:42:34 -07:00
Paul Gauthier
52b6e76434 lint 2024-08-16 16:37:57 -07:00
Paul Gauthier (aider)
5095b7ccd0 feat: Move all_messages method to ChatChunks class 2024-08-16 16:37:40 -07:00
Paul Gauthier
bab6a0df25 feat: Add all_messages method to ChatChunks class 2024-08-16 16:37:39 -07:00
Paul Gauthier
a4f7ac7463 fix: Update token count calculation for image messages 2024-08-16 16:36:57 -07:00
Paul Gauthier (aider)
21eb02483b feat: add all_messages() method to return all messages concatenated as a list 2024-08-16 16:36:03 -07:00
Paul Gauthier (aider)
860c471d31 style: Fix linter issues in base_coder.py 2024-08-16 16:35:08 -07:00
Paul Gauthier (aider)
e513c5415c fix: Update ChatChunks dataclass fields to use List type annotations 2024-08-16 16:35:04 -07:00
Paul Gauthier (aider)
9bdf41e753 style: apply linter edits 2024-08-16 16:34:47 -07:00
Paul Gauthier (aider)
61d141c6cb feat: Add list fields to ChatChunks class 2024-08-16 16:34:42 -07:00
Paul Gauthier
2209f7b7eb fix: Refactor format_messages method to use ChatChunks dataclass 2024-08-16 16:34:41 -07:00
Paul Gauthier
b61b5f4b74 cleanup before merge 2024-08-16 11:35:30 -07:00
Paul Gauthier
d3e37c9e36 Merge branch 'main' into json-coders 2024-08-16 11:31:55 -07:00
Paul Gauthier
607a9a8c86 track -> enable 2024-08-16 10:59:44 -07:00
Paul Gauthier
93b8cb9cec Merge branch 'main' into mixpanel 2024-08-16 10:42:55 -07:00
Paul Gauthier
3baf2db6c9 lint 2024-08-15 14:26:21 -07:00
Paul Gauthier (aider)
e6bf5d8f48 fix: Use base64 to encode images in get_images_message 2024-08-15 14:09:31 -07:00
Paul Gauthier
3a2ac02024 Merge branch 'main' into json-coders 2024-08-15 12:15:07 -07:00
Paul Gauthier
479f73871b more debug on unexepcted error 2024-08-15 12:14:39 -07:00
Paul Gauthier
2eb1946909 avoid deref missing func 2024-08-14 11:26:47 -07:00
Paul Gauthier
94a26019bd Merge branch 'main' into json-coders 2024-08-14 11:24:28 -07:00
Paul Gauthier
a37220b974 remove spurious except clause 2024-08-14 11:24:16 -07:00
Paul Gauthier
675263623d use strict for new gpt4o 2024-08-14 11:14:37 -07:00
Paul Gauthier
5c24a06dc8 Merge branch 'main' into json-coders 2024-08-14 10:50:23 -07:00
Paul Gauthier (aider)
6980cfd115 fix: Handle exceptions in the send method of base_coder.py 2024-08-13 17:31:27 -07:00
Paul Gauthier
e1b83ba6b5 Merge branch 'main' into json-coders 2024-08-13 17:03:30 -07:00
Paul Gauthier (aider)
1ebe5f8bd5 feat: add edit_format to event() call 2024-08-13 10:04: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
8a21eb7804 handle new vars that accumulate tokens/costs for infinite output 2024-08-13 07:23:01 -07:00
Paul Gauthier
f52265362f Merge branch 'main' into mixpanel 2024-08-13 07:09:34 -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
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 (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
124e852366 infinity! 2024-08-12 20:55:10 -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)
65c0608d5c style: format code 2024-08-12 16:17:17 -07:00
Paul Gauthier (aider)
57ce0dca67 feat: add self.event() to calculate_and_show_tokens_and_cost 2024-08-12 16:17:11 -07:00