Commit graph

1147 commits

Author SHA1 Message Date
Paul Gauthier (aider)
61d141c6cb feat: Add list fields to ChatChunks class 2024-08-16 16:34:42 -07:00
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
607a9a8c86 track -> enable 2024-08-16 10:59:44 -07:00
Paul Gauthier
93b8cb9cec Merge branch 'main' into mixpanel 2024-08-16 10:42: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
1a98c2835b bugfix to func coder 2024-08-15 12:35:53 -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
ed943799f1 non-strict 2024-08-15 10:36:10 -07:00
Paul Gauthier
bf2d5fee03 strict 2024-08-15 08:12:30 -07:00
Paul Gauthier
e2f14a26af non-strict 2024-08-14 12:56:10 -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
3996c4a7d5 force tool use 2024-08-14 11:21:36 -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
b1c3769813 editblock prompt improvement to better edit code in json wrapped formats like ipynb
Confirmed improvements on basic edits to a .ipynb file.
Confirmed no regressions against latest deepseek coder, sonnet, gpt-4o.
2024-08-13 18:51:33 -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)
1ebe5f8bd5 feat: add edit_format to event() call 2024-08-13 10:04:28 -07:00
Paul Gauthier
960b456e70 cleanup 2024-08-13 07:50:06 -07:00
Paul Gauthier (aider)
329514289d fix: Initialize Analytics instance with track=False if analytics is None 2024-08-13 07:45:35 -07:00
Paul Gauthier (aider)
03f14dfe47 feat: Create Analytics instance with track=False if analytics is None 2024-08-13 07:45:19 -07:00
Paul Gauthier
8a21eb7804 handle new vars that accumulate tokens/costs for infinite output 2024-08-13 07:23:01 -07:00
Paul Gauthier
f52265362f Merge branch 'main' into mixpanel 2024-08-13 07:09:34 -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
aa840f0e28 be careful logging main_models that are not in the model db 2024-08-12 18:20:35 -07:00
Paul Gauthier (aider)
65c0608d5c style: format code 2024-08-12 16:17:17 -07:00
Paul Gauthier (aider)
57ce0dca67 feat: add self.event() to calculate_and_show_tokens_and_cost 2024-08-12 16:17:11 -07:00
Paul Gauthier
4129065d6c fix: Add event attribute to Coder class 2024-08-12 16:17:10 -07:00
Paul Gauthier
474ac62391 feat: Add analytics field to Coder class 2024-08-12 16:08:58 -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