Commit graph

1800 commits

Author SHA1 Message Date
Paul Gauthier
1bd321742b copy 2023-06-06 14:02:38 -07:00
Paul Gauthier
34e764bbf5 copy 2023-06-06 13:04:50 -07:00
Paul Gauthier
dbeed906ad copy 2023-06-06 13:04:21 -07:00
Paul Gauthier
4753db6eac copy 2023-06-06 12:50:18 -07:00
Paul Gauthier
261419ae5b copy 2023-06-06 12:49:47 -07:00
Paul Gauthier
7cf952c328 copy 2023-06-06 12:31:42 -07:00
paul-gauthier
eaba38bb5e
Update README.md 2023-06-06 11:40:55 -07:00
Paul Gauthier
70296cb330 copy 2023-06-06 10:56:40 -07:00
Paul Gauthier
b7e7207967 copy 2023-06-06 10:55:28 -07:00
Paul Gauthier
f1a0db0475 copy 2023-06-06 10:51:33 -07:00
Paul Gauthier
9b4a6b7f49 copy 2023-06-06 10:48:50 -07:00
Paul Gauthier
f61e07dc02 copy 2023-06-06 10:48:28 -07:00
Paul Gauthier
18e3a4e202 copy 2023-06-06 08:55:08 -07:00
Paul Gauthier
11e4de3ea7 copy 2023-06-06 08:54:46 -07:00
Paul Gauthier
c314f08d6e copy 2023-06-06 08:51:28 -07:00
Paul Gauthier
ebf4954697 copy 2023-06-06 08:46:25 -07:00
Paul Gauthier
31cf0310d9 copy 2023-06-06 08:45:13 -07:00
Paul Gauthier
1faef90841 copy 2023-06-06 07:29:47 -07:00
Paul Gauthier
16daa3615d copy 2023-06-06 07:29:06 -07:00
Paul Gauthier
de0df5e7b1 fixed bug in check_model_availability 2023-06-06 07:28:12 -07:00
Paul Gauthier
1ceeecddca Updated README for 3.5 2023-06-06 06:45:27 -07:00
Paul Gauthier
8f70f1b251 renamed 2023-06-05 22:34:44 -07:00
Paul Gauthier
05c08b36a7 move cur_messages->done_messages, even with --no-auto-commit 2023-06-05 22:30:52 -07:00
Paul Gauthier
8abff61aff better handle malformed file block 2023-06-05 22:23:06 -07:00
Paul Gauthier
2f5f8561b5 prompt 2023-06-05 22:19:51 -07:00
Paul Gauthier
c44cc12b42 The --no-auto-commits flag implies --no-dirty-commits 2023-06-05 22:13:20 -07:00
Paul Gauthier
4727e5c616 rename 2023-06-05 22:12:27 -07:00
Paul Gauthier
ab5a6e2c19 better approach to redacting historical edits 2023-06-05 22:10:27 -07:00
Paul Gauthier
1676a0ec54 Merge branch 'main' into diffs 2023-06-05 22:07:25 -07:00
Paul Gauthier
cf3bf998dd fixed commands to deal with optional repo map 2023-06-05 22:07:19 -07:00
Paul Gauthier
8afae8b38f prettier 2023-06-05 21:57:22 -07:00
Paul Gauthier
6081baa32b better 2023-06-05 21:37:56 -07:00
Paul Gauthier
2336af2886 better 2023-06-05 19:41:14 -07:00
Paul Gauthier
2f0d9279d2 works 2023-06-05 19:36:12 -07:00
Paul Gauthier
0be54922da Merge branch 'main' into diffs 2023-06-05 17:17:48 -07:00
Paul Gauthier
c8beac9a2d cleaned up 35/4 logic 2023-06-05 17:14:44 -07:00
Paul Gauthier
169e450b1a Merge branch 'main' into diffs 2023-06-05 17:06:41 -07:00
Paul Gauthier
fcd8a6df73 Use the Models enum instead of .value 2023-06-05 17:06:34 -07:00
Paul Gauthier
78782e2d90 better 2023-06-05 16:59:11 -07:00
Paul Gauthier
67121a9834 aider: Added function to print unified diff and find last non-deleted line.
# Context:
USER: do the todo
2023-06-05 16:47:52 -07:00
Paul Gauthier
2f684bf99e cleanup 2023-06-05 16:46:38 -07:00
Paul Gauthier
33d1a43845 initial 2023-06-05 16:42:36 -07:00
Paul Gauthier
efb903303f aider: Added diff_files.py script that reads two file names from the command line, reads the contents of the files, and then uses the difflib module to print their differences.
# Context:
USER: read 2 files named on the cmd line, use difflib to print their differences
ASSISTANT: To achieve this, we'll create a new Python script that reads two file names from the command line, reads the contents of the files, and then uses the `difflib` module to print their differences.

1. Create a new Python script called `diff_files.py` in the `aider` directory.
2. Import the necessary modules: `sys` and `difflib`.
3. Read the file names from the command line arguments.
4. Read the contents of the files.
5. Use `difflib.unified_diff()` to generate the differences.
6. Print the differences.

Here's the code for the new `diff_files.py` script:

```python
aider/diff_files
^C KeyboardInterrupt
USER: put it in `aider/diffs.py`
2023-06-05 14:33:38 -07:00
Paul Gauthier
130f73c864 Added /tokens cmd 2023-06-05 12:30:20 -07:00
Paul Gauthier
b6f682151d Fix issue with quoting /commands 2023-06-05 11:49:27 -07:00
Paul Gauthier
579fc39d61 rename 2023-06-05 11:32:26 -07:00
Paul Gauthier
c17e454608 Added /clear cmd 2023-06-05 11:31:47 -07:00
Paul Gauthier
c30b302363 improved --help 2023-06-05 11:15:38 -07:00
Paul Gauthier
95b32a74a9 Moved all model names into an enum 2023-06-05 09:19:29 -07:00
Paul Gauthier
efb8cad881 Merge branch 'main' into gpt-35 2023-06-05 09:07:03 -07:00