Commit graph

3366 commits

Author SHA1 Message Date
Paul Gauthier (aider)
5f4d6bc4a5 feat: Add support for executing shell commands in apply_edits 2024-08-20 13:31:14 -07:00
Paul Gauthier
c4855c84da fix: Remove unnecessary metadata from EditBlockCoder 2024-08-20 13:31:13 -07:00
Paul Gauthier (aider)
a0f9989f1c style: format shell code block starts 2024-08-20 13:28:48 -07:00
Paul Gauthier (aider)
64b92c8d89 feat: Expand support for commonly used shells 2024-08-20 13:28:44 -07:00
Paul Gauthier (aider)
7ebbb3d4f4 fix: Expand code block detection to support various Windows shells 2024-08-20 13:28:10 -07:00
Paul Gauthier (aider)
3984716608 style: Apply linter formatting changes 2024-08-20 13:26:31 -07:00
Paul Gauthier (aider)
9dea3f48cb feat: Add support for scanning and yielding ```bash blocks in find_original_update_blocks 2024-08-20 13:26:27 -07:00
Paul Gauthier
8b81d4fd45 Merge branch 'main' into shell-commands 2024-08-20 13:03:19 -07:00
Paul Gauthier
fc055a17c1 fix: Remove unused map_multiplier_no_files attribute from Coder class 2024-08-20 12:59:54 -07:00
Paul Gauthier (aider)
425dc0b99a fix: Add map_multiplier_no_files parameter to Coder.__init__ 2024-08-20 12:54:17 -07:00
Paul Gauthier
9b59c8896a fix: Set map_multiplier_no_files attribute on Coder class 2024-08-20 12:54:16 -07:00
Paul Gauthier (aider)
3ab3265239 feat: Pass map_multiplier_no_files argument from Coder into RepoMap 2024-08-20 12:53:17 -07:00
Paul Gauthier (aider)
87d9a559cb feat: Add --map-multiplier-no-files switch with default value of 2 2024-08-20 12:52:23 -07:00
Paul Gauthier
ace983730a shell commands prompt 2024-08-20 12:50:04 -07:00
Paul Gauthier
1ec02d7c73 Note that --map-tokens is suggested not max tokens 2024-08-20 12:45:56 -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
959a9fbcf1 copy 2024-08-20 09:17:01 -07:00
Paul Gauthier
c7b50633a6 set version to 0.51.1-dev 2024-08-20 08:51:51 -07:00
Paul Gauthier
39438659f7 version bump to 0.51.0 2024-08-20 08:49:44 -07:00
Paul Gauthier
bf15b81061 copy 2024-08-20 08:19:16 -07:00
Paul Gauthier (aider)
0ec7f8c0c4 feat: add Python version check for TemporaryDirectory 2024-08-20 08:18:38 -07:00
Paul Gauthier
4db6e28118 ignore_cleanup_errors 2024-08-20 08:10:32 -07:00
Paul Gauthier (aider)
45d85b1419 fix: Ignore recursion errors in cleanup method 2024-08-20 08:06:28 -07:00
Paul Gauthier
076db26854 copy 2024-08-19 15:59:03 -07:00
Paul Gauthier (aider)
78a4ed69d8 style: Format code using linter 2024-08-19 15:49:47 -07:00
Paul Gauthier (aider)
884ee535af feat: Add file modification time to cache key for render_tree 2024-08-19 15:49:43 -07:00
Paul Gauthier
34dc7cc37d fix: Improve prompt caching and repo map refresh logic 2024-08-19 15:36:13 -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
b7e325be36 copy 2024-08-19 12:17:33 -07:00
Paul Gauthier
5fec384234 copy 2024-08-19 12:11:32 -07:00
Paul Gauthier (aider)
69e471f91c fix: Catch and ignore SwitchCoder error in main function when running with --message 2024-08-19 11:56:14 -07:00
Paul Gauthier
b8d09e1f04 load litellm if model metadata json is present 2024-08-19 10:37:49 -07:00
Paul Gauthier
f6023865f8 turn on caching for haiku 2024-08-18 16:49:21 -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
5099a5c24b copy 2024-08-17 08:48:50 -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 (aider)
0f09bd7fb3 refactor: Refactor "anthropic-beta" header value to a constant 2024-08-17 06:59:48 -07:00
Paul Gauthier
94c4b59f9e feat: Add prompt caching header to model settings 2024-08-17 06:59:47 -07:00
Paul Gauthier (aider)
531ede2073 feat: add cache_control_enabled field to ModelSettings 2024-08-17 06:58:19 -07:00