Commit graph

507 commits

Author SHA1 Message Date
Paul Gauthier
2209f7b7eb fix: Refactor format_messages method to use ChatChunks dataclass 2024-08-16 16:34:41 -07:00
Paul Gauthier
b61b5f4b74 cleanup before merge 2024-08-16 11:35:30 -07:00
Paul Gauthier
d3e37c9e36 Merge branch 'main' into json-coders 2024-08-16 11:31:55 -07:00
Paul Gauthier
3baf2db6c9 lint 2024-08-15 14:26:21 -07:00
Paul Gauthier (aider)
e6bf5d8f48 fix: Use base64 to encode images in get_images_message 2024-08-15 14:09:31 -07:00
Paul Gauthier
3a2ac02024 Merge branch 'main' into json-coders 2024-08-15 12:15:07 -07:00
Paul Gauthier
479f73871b more debug on unexepcted error 2024-08-15 12:14:39 -07:00
Paul Gauthier
2eb1946909 avoid deref missing func 2024-08-14 11:26:47 -07:00
Paul Gauthier
94a26019bd Merge branch 'main' into json-coders 2024-08-14 11:24:28 -07:00
Paul Gauthier
a37220b974 remove spurious except clause 2024-08-14 11:24:16 -07:00
Paul Gauthier
675263623d use strict for new gpt4o 2024-08-14 11:14:37 -07:00
Paul Gauthier
5c24a06dc8 Merge branch 'main' into json-coders 2024-08-14 10:50:23 -07:00
Paul Gauthier (aider)
6980cfd115 fix: Handle exceptions in the send method of base_coder.py 2024-08-13 17:31:27 -07:00
Paul Gauthier
e1b83ba6b5 Merge branch 'main' into json-coders 2024-08-13 17:03:30 -07:00
Paul Gauthier (aider)
b1486debf8 style: Format code with line breaks for better readability 2024-08-13 06:42:17 -07:00
Paul Gauthier (aider)
935bc2d2a6 feat: Accumulate tokens sent and received in calculate_and_show_tokens_and_cost 2024-08-13 06:42:12 -07:00
Paul Gauthier
89f6af94b9 only show usage report when prefill repeats are done, clear message-cost 2024-08-13 06:21:02 -07:00
Paul Gauthier (aider)
74e85d558f style: Format cost report for better readability 2024-08-13 06:16:11 -07:00
Paul Gauthier (aider)
8cb59902a8 feat: Accumulate message cost and update usage report 2024-08-13 06:16:06 -07:00
Paul Gauthier (aider)
20341d6a43 fix: remove unused variable 'interrupted' 2024-08-13 05:54:26 -07:00
Paul Gauthier
fb0066cbf0 fix: Handle KeyboardInterrupt in show_send_output_stream 2024-08-13 05:54:19 -07:00
Paul Gauthier
124e852366 infinity! 2024-08-12 20:55:10 -07:00
Paul Gauthier (aider)
73734efe89 feat: Add infinity symbol to edit format if model supports assistant prefill 2024-08-12 15:20:05 -07:00
Paul Gauthier
888211fd48 use litellm's new supports_assistant_prefill 2024-08-12 15:10:02 -07:00
Paul Gauthier
d4ae735d43 be paranoid to avoid self.partial_response_content = None 2024-08-12 14:38:59 -07:00
Paul Gauthier (aider)
3a3d34b8f2 fix: Exclude read-only files from get_addable_relative_files 2024-08-12 14:33:49 -07:00
Paul Gauthier (aider)
64951d3d56 feat: Include read-only files in the list printed above the user input prompt 2024-08-11 10:28:10 -07:00
Paul Gauthier
7e5c5dfa02 fix: Set default edit_format to None if it is "code" 2024-08-11 10:11:14 -07:00
Paul Gauthier
e373c6522f do not preproc the message to helpcoder 2024-08-10 14:21:15 -07:00
Paul Gauthier
6d64e88478 fix: Coder.pretty set by io.pretty 2024-08-10 08:53:26 -07:00
Paul Gauthier
37c40efe37 feat: Add commit_before_message attribute to Coder class 2024-08-10 06:13:02 -07:00
Paul Gauthier (aider)
a75ed2728c feat: Convert commit_before_message to a list and append head before each message 2024-08-10 06:11:23 -07:00
Paul Gauthier (aider)
5f323237ea fix: Remove unnecessary f-string 2024-08-09 19:47:29 -04:00
Paul Gauthier
30d506ab82 fix: Add undo hint after running one command 2024-08-09 19:47:17 -04:00
Paul Gauthier (aider)
d5ff8929fb fix: use get_head() in init_before_message 2024-08-09 19:42:46 -04:00
Paul Gauthier
a120cf37d9 fix: Add check for commit_before_message before showing undo hint 2024-08-09 19:42:42 -04:00
Paul Gauthier (aider)
2526426da7 fix: use get_head() in show_undo_hint 2024-08-09 19:41:46 -04:00
Paul Gauthier (aider)
1a3f4041f7 fix: Show undo hint only if current HEAD is not the same as commit_before_message 2024-08-09 19:40:19 -04:00
Paul Gauthier
82679ee66b fix: Add show_undo_hint method to display undo hint after committing changes 2024-08-09 19:40:16 -04:00
Paul Gauthier (aider)
d9e7d64235 fix: handle case of brand new repository with no commits 2024-08-09 19:35:15 -04:00
Paul Gauthier (aider)
423b6e1ad1 feat: add commit_before_message variable to Coder class and set it in init_before_message 2024-08-09 19:33:59 -04:00
Paul Gauthier
9cf672b428 fix: Add bold formatting to announcement messages
feat: Add bold formatting to commit message output
refactor: Simplify tool_output method in io.py
2024-08-09 19:26:22 -04:00
Paul Gauthier
46dc6a0b90 fix: Add abs_read_only_fnames to get_coder_state 2024-08-09 18:42:23 -04:00
Paul Gauthier
08862c73e7 fix: Remove unnecessary paginate parameter from cmd_diff method 2024-08-09 18:34:54 -04:00
Paul Gauthier (aider)
3eda9297cf feat: Include read-only repo files in get_repo_map 2024-08-09 18:05:00 -04:00
Paul Gauthier
11820ba6c1 Don't paginate cmd_web/diff except as / commands 2024-08-09 17:29:52 -04:00
Paul Gauthier
f1cfbe9c36 cleanup 2024-08-09 16:49:51 -03:00
Paul Gauthier (aider)
a321764b92 fix: Check if read-only files exist in __init__ 2024-08-09 16:39:56 -03:00
Paul Gauthier
2199b1c74e fix: Initialize abs_read_only_fnames after finding common root 2024-08-09 16:39:55 -03:00
Paul Gauthier (aider)
ee6641f2e7 style: Fix formatting and encoding in base_coder.py 2024-08-09 16:32:20 -03:00