Commit graph

769 commits

Author SHA1 Message Date
Paul Gauthier
8c0603fef6 ssh 2024-08-22 13:33:56 -07:00
Paul Gauthier
771d3e3b73 fix: Add shell_commands attribute to Coder class 2024-08-22 13:30:53 -07:00
Paul Gauthier
544b8dd800 refactor shell_commands, so the run after autocommit 2024-08-22 13:27:01 -07:00
Paul Gauthier (aider)
e0bab8505a fix: Remove duplicate ChatChunks import and empty lines 2024-08-22 12:39:35 -07:00
Paul Gauthier (aider)
eec086e266 style: Fix linter issues in base_coder.py 2024-08-22 12:39:16 -07:00
Paul Gauthier (aider)
f7d64e4c90 fix: Remove unused imports and move ChatChunks import to top of file 2024-08-22 12:39:12 -07:00
Paul Gauthier (aider)
69131a423e fix: Import ChatChunks class from separate file 2024-08-22 12:33:42 -07:00
Paul Gauthier
07a939e0da feat: Add chat_chunks.py file 2024-08-22 12:33:30 -07:00
Paul Gauthier
72fd24e071 keep track of edited files during reflections 2024-08-22 12:21:28 -07:00
Paul Gauthier
8c47b5e633 improve auto commit logic, cleanup 2024-08-22 12:15:23 -07:00
Paul Gauthier
f8a1db5318 feat: Add all_fences list to base_coder.py 2024-08-22 08:24:00 -07:00
Paul Gauthier
b2488af638 fix: Handle path-specific edits in base_coder.py
test: Update test_main.py to check for explicit approval of shell commands
2024-08-21 21:47:11 -07:00
Paul Gauthier (aider)
c9c45cb3ed style: format code 2024-08-21 16:08:30 -07:00
Paul Gauthier (aider)
6f9d4a2c72 feat: pass "code" instead of self.edit_format when it matches self.main_model.edit_format 2024-08-21 16:08:24 -07:00
Paul Gauthier (aider)
70fb4c2d03 feat: Pass coder.edit_format into get_input 2024-08-21 16:07:49 -07:00
Paul Gauthier
3e5554c24f fix: Update confirm_ask prompts to use consistent formatting 2024-08-21 08:08:31 -07:00
Paul Gauthier (aider)
ad77fe20b5 fix: Remove unnecessary f-strings 2024-08-21 05:38:24 -07:00
Paul Gauthier
ba746dd211 fix: Improve confirm dialog messages 2024-08-21 05:38:13 -07:00
Paul Gauthier
919ea05482 ignore shell edits in base coder 2024-08-20 17:50:31 -07:00
Paul Gauthier
347f3fe140 fix: Handle case where edit path is None 2024-08-20 17:04:27 -07:00
Paul Gauthier
c13b277070 ModelSettings.reminder_as_sys_msg:true/false -> reminder:sys/user/None 2024-08-20 10:51:37 -07:00
Paul Gauthier (aider)
455487e5a9 fix: Round token counts properly for large numbers 2024-08-20 09:38:04 -07:00
Paul Gauthier (aider)
08fe37a684 fix: Add whitespace around arithmetic operators in format_tokens function 2024-08-20 09:36:23 -07:00
Paul Gauthier (aider)
93fe9007f0 feat: Update calculate_and_show_tokens_and_cost to format token counts 2024-08-20 09:36:04 -07:00
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