Commit graph

1037 commits

Author SHA1 Message Date
Paul Gauthier
55fcbc958d fix: Add debug logging to get_ident_filename_matches method 2024-08-05 15:35:02 -03:00
Paul Gauthier
617b1bdee2 Can force repo-map on with: --map-tokens 1024 2024-08-05 14:59:12 -03:00
Paul Gauthier (aider)
d3fb831e89 feat: Initialize self.total_cost in __init__ method 2024-08-03 10:14:58 -03:00
Paul Gauthier (aider)
b357c90590 feat: Add total_cost as an init parameter and pass it when creating a from_coder 2024-08-03 10:14:24 -03:00
Paul Gauthier
7a7febfb2b better approach to cloning Commands in from_coders 2024-08-03 10:13:21 -03:00
Paul Gauthier
5e818c2899 support 8k output with 3.5 sonnet 2024-08-01 17:52:14 -03:00
Paul Gauthier
dec8425236 fix: Use None as the working directory for GitRepo in base_coder.py 2024-08-01 15:25:57 -03:00
Paul Gauthier (aider)
ff3d067d94 feat: use weak model first for summarizer in Coder 2024-08-01 14:55:22 -03:00
Paul Gauthier
0ea2b8bcfe fix: Add coder reference to commands 2024-08-01 14:52:59 -03:00
Paul Gauthier (aider)
df70119da0 style: Apply linter formatting changes 2024-08-01 14:50:00 -03:00
Paul Gauthier (aider)
aa3e17dae6 refactor: Refactor ChatSummary initialization and remove max_chat_history_tokens param from Coder 2024-08-01 14:49:54 -03:00
Paul Gauthier (aider)
7a3a189f8c fix: Remove verify_ssl parameter from Coder.__init__ 2024-08-01 14:47:33 -03:00
Paul Gauthier (aider)
2f3cd436a6 fix: Remove unused import and update Commands initialization in main.py 2024-08-01 14:46:17 -03:00
Paul Gauthier (aider)
b5e51d138e refactor: Initialize Commands instance in Coder 2024-08-01 14:45:57 -03:00
Paul Gauthier (aider)
70fbe10643 feat: Initialize GitRepo in main, pass it into Coder 2024-08-01 14:43:17 -03:00
Paul Gauthier
3d1138b6c2 Commit any linter edits 2024-08-01 12:36:49 -03:00
Paul Gauthier (aider)
f85a9c1195 feat: add commit_prompt parameter to Coder.__init__ and pass it to GitRepo
The commit_prompt parameter is added to the Coder.__init__ method and passed to the GitRepo initialization. This allows users to provide a custom commit prompt when using the Coder class.
2024-07-31 09:48:54 -03:00
Paul Gauthier
9706002769 Auto commit before lint/test/etc 2024-07-30 12:19:32 -03:00
Paul Gauthier (aider)
963420d16f Initialize ChatSummary with main and weak models 2024-07-30 12:04:31 -03:00
Paul Gauthier (aider)
9c24d41d41 Remove unused cost_report variable in calculate_and_show_tokens_and_cost method 2024-07-29 17:32:03 -03:00
Paul Gauthier
384a5f2ea5 Update Coder class to use absolute file names instead of relative file names 2024-07-29 17:31:54 -03:00
Paul Gauthier
8543a97e76 Improve commit message display for /undo command 2024-07-29 10:55:42 -03:00
Paul Gauthier (aider)
d62baf0520 Modify cost formatting in usage_report to show at least 2 decimal places, with 2 non-zero digits. 2024-07-29 08:24:24 -03:00
Paul Gauthier
effa5236c6 Add usage reporting for prompt and completion tokens, and session cost. 2024-07-29 08:24:22 -03:00
Paul Gauthier
fd935d8534 show a hint about /undo after each commit 2024-07-29 08:07:39 -03:00
Paul Gauthier
c17ef53deb Added the "code" chat mode 2024-07-29 07:36:01 -03:00
Paul Gauthier
7a1ac4a2d6 Add new AskPrompts class to handle code analysis prompts 2024-07-28 20:37:51 -03:00
Your Name
bfc0123a2f emit the blank line before usage report 2024-07-28 20:28:00 -03:00
Your Name
7a96c47a8b Add docstrings to AskCoder and HelpCoder classes 2024-07-28 20:22:50 -03:00
Your Name
36bba7a3ae Add aider/coders/aider/commands.py 2024-07-28 20:21:37 -03:00
Your Name (aider)
45af678026 Update class docstrings to refer to "search/replace blocks" instead of "edit blocks" 2024-07-28 20:20:13 -03:00
Your Name (aider)
0ff1c36668 Add concise docstrings to each xxxCoder class describing their purpose. 2024-07-28 20:19:22 -03:00
Your Name
39170f5639 cleanup 2024-07-28 19:19:06 -03:00
Your Name
69af6f8ab5 Add AskCoder functionality to handle user questions about the codebase 2024-07-28 19:02:27 -03:00
Your Name
3d603f3579 Add system reminder to messages if available 2024-07-28 18:51:27 -03:00
Your Name (aider)
4d4bfba965 Refactor create method to use dynamic coder selection based on edit_format 2024-07-28 18:45:21 -03:00
Your Name
563729ad94 Add check for files_no_full_files_with_repo_map in base_coder.py 2024-07-28 18:45:20 -03:00
Your Name (aider)
8a3a836ce9 Add ChatCoder to __init__.py 2024-07-28 18:44:16 -03:00
Your Name (aider)
5fcf454968 Remove __init__ from all coders and set edit_format and gpt_prompts like ChatCoder 2024-07-28 18:43:14 -03:00
Your Name
916021bf10 Add chat_coder.py to enable chat-based coding assistance. 2024-07-28 18:43:11 -03:00
Paul Gauthier (aider)
15faf69173 Add a memory to check_for_urls to avoid asking about previously rejected URLs. 2024-07-28 16:50:51 -03:00
Paul Gauthier
8a9184cef9 Fix tests for check_for_urls 2024-07-28 16:48:59 -03:00
Paul Gauthier (aider)
3e1ad07069 Fix the issue with repeated URLs in the check_for_urls method 2024-07-28 16:41:38 -03:00
Paul Gauthier (aider)
e63a2947c6 Add commas to token numbers in usage_report 2024-07-28 16:05:59 -03:00
Paul Gauthier
fbc387e16e Add session cost to usage report 2024-07-28 16:05:57 -03:00
Paul Gauthier (aider)
16cbb0e112 Add total cost to usage report 2024-07-28 16:00:00 -03:00
Paul Gauthier
fe50400bf3 Add usage reporting to the Coder class 2024-07-28 15:59:59 -03:00
Paul Gauthier (aider)
afe50cab3d Update the calculate_and_show_tokens_and_cost method to use the messages parameter if completion.usage is not available. 2024-07-28 15:54:04 -03:00
Paul Gauthier
da257c33a0 Add token count calculation for messages in base_coder.py 2024-07-28 15:54:02 -03:00
Paul Gauthier
57964f1e79 Add token and cost calculation to message completion 2024-07-28 15:53:34 -03:00