Commit graph

6100 commits

Author SHA1 Message Date
Paul Gauthier
86a7a17d47 copy 2024-08-19 20:47:52 -07:00
Paul Gauthier
2944445340 copy 2024-08-19 20:44:48 -07:00
Paul Gauthier
ad932654ce fix: Remove unnecessary assertion in test_main.py 2024-08-19 16:07:38 -07:00
Paul Gauthier (aider)
621f91cfee feat: Add test case for --4o and --cache options 2024-08-19 16:07:13 -07:00
Paul Gauthier
d71ea571e4 fix: Remove unnecessary assertion in test_main.py 2024-08-19 16:07:12 -07:00
Paul Gauthier (aider)
3424cda63c feat: Add test for main() with --sonnet and --cache-prompts options 2024-08-19 16:06:34 -07:00
Paul Gauthier
1ea18b83b9 fix: Remove redundant test case for sonnet and cache prompts options 2024-08-19 16:06:33 -07:00
Paul Gauthier (aider)
75a7a0043a feat: Add test for --sonnet --cache-prompts --exit options 2024-08-19 16:05:02 -07:00
Paul Gauthier
f9471fc5b6 fix: Rename cmd_read to cmd_read_only 2024-08-19 16:01:16 -07:00
Paul Gauthier
076db26854 copy 2024-08-19 15:59:03 -07:00
Paul Gauthier
e7fdce0b75 fix: Update test_repomap.py to ensure RepoMap does not change with refresh='files' 2024-08-19 15:56:10 -07:00
Paul Gauthier (aider)
ba6ec1a94c style: Format code for better readability 2024-08-19 15:53:59 -07:00
Paul Gauthier (aider)
66dc844977 refactor: Update test_repo_map_refresh_files 2024-08-19 15:53:56 -07:00
Paul Gauthier (aider)
1f29186240 fix: Add import for time module 2024-08-19 15:52:47 -07:00
Paul Gauthier (aider)
0ba9f63365 style: Format code with linter 2024-08-19 15:52:35 -07:00
Paul Gauthier (aider)
339c03dd90 feat: Add test case for RepoMap refresh="auto" 2024-08-19 15:52:32 -07:00
Paul Gauthier
d875e7ebe0 feat: Add a new source file and update the RepoMap test 2024-08-19 15:50:06 -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 (aider)
56210468f7 feat: Use GitTemporaryDirectory and import git instead of os.system 2024-08-19 15:41:09 -07:00
Paul Gauthier (aider)
b0d8778752 style: Fix code formatting in OCaml test file 2024-08-19 15:40:06 -07:00
Paul Gauthier (aider)
b361310e56 feat: Add test for RepoMap refresh with files 2024-08-19 15:40:03 -07:00
Paul Gauthier (aider)
a42de792ba fix: Remove unused variable temp_dir in test_sonnet_and_cache_options 2024-08-19 15:36:24 -07:00
Paul Gauthier
34dc7cc37d fix: Improve prompt caching and repo map refresh logic 2024-08-19 15:36:13 -07:00
Paul Gauthier (aider)
f8b80548fd style: Fix code formatting in test_main.py 2024-08-19 15:35:23 -07:00
Paul Gauthier (aider)
697a8b66ea fix: Update test_sonnet_and_cache_options to match actual RepoMap call 2024-08-19 15:35:20 -07:00
Paul Gauthier (aider)
ef7abf0de9 fix: Ensure RepoMap() is called with refresh="files" in test_sonnet_and_cache_options 2024-08-19 15:34:38 -07:00
Paul Gauthier
6db122788a fix: Remove unnecessary assertion in test_main.py 2024-08-19 15:34:36 -07:00
Paul Gauthier (aider)
cc2b48bef8 fix: Set mock_repo_map.max_map_tokens to 1000 in test_sonnet_and_cache_options 2024-08-19 15:32:46 -07:00
Paul Gauthier (aider)
2513e36104 feat: Add test for sonnet and cache options 2024-08-19 15:31:53 -07:00
Paul Gauthier
69b76c23e8 fix playwright install in both docker images 2024-08-19 15:02:53 -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
a849a98164 bump deps 2024-08-17 07:02:15 -07:00
Paul Gauthier (aider)
0f09bd7fb3 refactor: Refactor "anthropic-beta" header value to a constant 2024-08-17 06:59:48 -07:00