Paul Gauthier
d4d327e6d9
added test for non-backtick fences
2023-06-25 20:47:17 -07:00
Paul Gauthier
0520981135
Attempt to quote diffs safely
2023-06-25 20:42:47 -07:00
Paul Gauthier
e5ad9d501f
aider: Added extra backticks to the start and end of the show
variable to ensure proper formatting.
...
# Context:
USER: do the todo
ASSISTANT: To complete the TODO task in the `diff_partial_update` function, I will find the longest string of backticks (`) that start a line in the `diff` variable. I will then add one more backtick to the start and end of the `show` variable to ensure proper formatting.
Here are the changes:
```python
aider/diffs.py
<<<<<<< ORIGINAL
for line in diff:
pass
diff = "".join(diff)
if not diff.endswith("\n"):
diff += "\n"
show = "```diff\n"
=======
max_backticks = max(len(line) - len(line.lstrip("`")) for line in diff.splitlines())
extra_backticks = "`" * (max_backticks + 1)
diff = "".join(diff)
if not diff.endswith("\n"):
diff += "\n"
show = f"{extra_backticks}diff\n"
>>>>>>> UPDATED
```
```python
aider/diffs.py
<<<<<<< ORIGINAL
show += diff + "```\n\n"
=======
show += diff + f"{extra_backticks}\n\n"
>>>>>>> UPDATED
```
These changes will find the longest string of backticks at the start of a line in the `diff` variable and add one more backtick to the start and end of the `show` variable.
2023-06-25 20:38:46 -07:00
Paul Gauthier
ef88cc6d55
refactor choose_fence
2023-06-25 20:34:32 -07:00
Paul Gauthier
96fda2aa9f
abandon n-backticks, try some html fences
2023-06-25 20:23:36 -07:00
Paul Gauthier
9151cf03a1
quote with num_ticks
2023-06-25 19:58:17 -07:00
Paul Gauthier
a6d80e815e
wip
2023-06-25 19:54:15 -07:00
Paul Gauthier
f00a1e827a
Merge branch 'main' into triple-backticks
2023-06-25 19:45:03 -07:00
Paul Gauthier
52343b5340
More generic handling of GPT mangling of filenames
2023-06-25 19:40:12 -07:00
Paul Gauthier
2b8717bdb6
Merge branch 'main' into triple-backticks
2023-06-25 19:34:20 -07:00
Paul Gauthier
de2808f742
Updated benchmark instructions
2023-06-25 18:01:48 -07:00
Paul Gauthier
e8df4a55b9
version bump to 0.7.1
2023-06-25 17:55:18 -07:00
Paul Gauthier
e535f163a9
Updated benchmarking instructions
2023-06-25 17:54:41 -07:00
Paul Gauthier
3393f560fb
make sure diffs display with newlines
2023-06-25 17:33:33 -07:00
Paul Gauthier
f625d52bec
added self.fence_ticks
2023-06-25 17:03:20 -07:00
Paul Gauthier
59d99835b1
use a word for 3,4,5 backticks
2023-06-25 17:00:59 -07:00
Paul Gauthier
6b2024a58a
ssh
2023-06-25 15:55:27 -07:00
Paul Gauthier
060cbeafff
Added back "entire content" prompt"
2023-06-25 15:54:56 -07:00
Paul Gauthier
68640c9bb2
Record commit_hash
2023-06-25 15:46:15 -07:00
Paul Gauthier
f005404ec0
Roughed in updated sys msg for whole format
2023-06-25 15:27:06 -07:00
Paul Gauthier
976f84bac5
noop
2023-06-25 14:49:25 -07:00
Paul Gauthier
bce898edfb
summary layout
2023-06-25 14:13:00 -07:00
Paul Gauthier
0650db2ee7
print the benchmark dirname
2023-06-25 13:59:19 -07:00
Paul Gauthier
78bc901a04
noop
2023-06-25 13:30:38 -07:00
Paul Gauthier
0c3d4198f5
Show variants
2023-06-25 13:18:43 -07:00
Paul Gauthier
5b57024c84
cleanup --stats output
2023-06-25 08:42:06 -07:00
Paul Gauthier
fad464a987
version bump to 0.7.0
2023-06-25 08:34:47 -07:00
Paul Gauthier
c5a232eeaf
Added --stats-only
2023-06-25 08:33:24 -07:00
Paul Gauthier
5eaa50fe6c
added --num-tests
2023-06-25 08:30:14 -07:00
Paul Gauthier
e0e680e781
prettier test report
2023-06-24 20:54:47 -07:00
Paul Gauthier
436d0dd774
restore the original file, in case we interrupted a prev run
2023-06-24 20:44:37 -07:00
Paul Gauthier
5c3a635eed
added --threads for speed
2023-06-24 20:41:35 -07:00
Paul Gauthier
5b4fbd9901
refac
2023-06-24 20:30:58 -07:00
Paul Gauthier
37c282c7f3
remove chdir
2023-06-24 20:28:59 -07:00
Paul Gauthier
959861ee2e
refac
2023-06-24 20:22:10 -07:00
Paul Gauthier
6172a70ed3
undo refac
2023-06-24 20:10:26 -07:00
Paul Gauthier
fe1d7aa887
path/to not /path/to
2023-06-24 20:10:17 -07:00
Paul Gauthier
b1cdb9d488
handle /path/to
2023-06-24 20:05:35 -07:00
Paul Gauthier
fe3f1c194d
Added APIError
2023-06-24 20:04:49 -07:00
Paul Gauthier
8dcf819cb5
added ServiceUnavailableError for retries
2023-06-24 19:54:18 -07:00
Paul Gauthier
1acc5e04d0
fix
2023-06-24 16:34:10 -07:00
Paul Gauthier
a5746d9e54
removed threading
2023-06-24 15:59:50 -07:00
Paul Gauthier
197d8fe057
Tell gpt to only use std libraries in the benchmark
2023-06-24 15:56:03 -07:00
Paul Gauthier
a1f4ae6a07
Stronger prompt
2023-06-24 15:49:26 -07:00
Paul Gauthier
ac560c2877
Handle missing filenames by scanning for mentions
in the text
2023-06-24 15:32:35 -07:00
Paul Gauthier
f2a03e917d
Handle missing filename when only 1 in session
2023-06-24 15:13:39 -07:00
Paul Gauthier
d8294cab44
simpler
2023-06-24 14:57:40 -07:00
Paul Gauthier
81b1916c6a
added --verbose
2023-06-24 14:53:32 -07:00
Paul Gauthier
1754e574fd
cleanup
2023-06-24 14:53:19 -07:00
Paul Gauthier
82e19fcf1d
save the file even if tick fence wasn't closed properly
2023-06-24 14:47:29 -07:00