Commit graph

1071 commits

Author SHA1 Message Date
Paul Gauthier
2dd7d2e0b6 sssh 2024-08-19 14:54:44 -07:00
Paul Gauthier
4c2c0ac871 Handle all the token/cost corner cases 2024-08-19 14:19:35 -07:00
Paul Gauthier
b200bde319 fix: Add cache headers for prompts when using a model with cache control 2024-08-19 13:34:57 -07:00
Paul Gauthier
53db8cfa82 fix: Update model output formatting in base_coder.py 2024-08-18 13:17:26 -07:00
Paul Gauthier (aider)
4d36518de0 feat: Add symbol to announcement if prompt caching is enabled and supported 2024-08-18 13:14:38 -07:00
Paul Gauthier
ded270ee8b feat: Add force_refresh option to get_repo_map method 2024-08-18 13:07:38 -07:00
Paul Gauthier
36663cf04e fix: Update content handling in ChatChunks class
feat: Add date-based caching for prompts
refactor: Simplify current date/time formatting in Coder class
2024-08-17 08:47:43 -07:00
Paul Gauthier (aider)
a0fd982546 style: Wrap long lines in base_coder.py 2024-08-17 07:11:14 -07:00
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
1a98c2835b bugfix to func coder 2024-08-15 12:35:53 -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
ed943799f1 non-strict 2024-08-15 10:36:10 -07:00
Paul Gauthier
bf2d5fee03 strict 2024-08-15 08:12:30 -07:00
Paul Gauthier
e2f14a26af non-strict 2024-08-14 12:56:10 -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
3996c4a7d5 force tool use 2024-08-14 11:21:36 -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
b1c3769813 editblock prompt improvement to better edit code in json wrapped formats like ipynb
Confirmed improvements on basic edits to a .ipynb file.
Confirmed no regressions against latest deepseek coder, sonnet, gpt-4o.
2024-08-13 18:51:33 -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