Commit graph

6089 commits

Author SHA1 Message Date
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
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
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)
8e43911a63 fix: Move if statement out of try block in aider/main.py 2024-08-17 06:47:05 -07:00
Paul Gauthier (aider)
8326bd04dd feat: Add --cache-prompts bool option, default false 2024-08-17 06:46:18 -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)
17335b1865 feat: Add /map-refresh command to force refresh of repository map 2024-08-17 06:34:16 -07:00
Paul Gauthier (aider)
27a7102ad4 feat: Add --map-refresh switch and pass it into RepoMap.refresh 2024-08-17 06:32:34 -07:00
Paul Gauthier (aider)
79d97240f1 style: Apply linter edits to repomap.py 2024-08-17 06:30:52 -07:00
Paul Gauthier (aider)
551804c289 feat: add force_refresh arg to get_repo_map and pass to get_ranked_tags_map 2024-08-17 06:30:48 -07:00