Commit graph

10395 commits

Author SHA1 Message Date
Paul Gauthier
5ec57a221b switch to --no-colorize 2023-05-08 07:50:44 -07:00
Paul Gauthier
e6137a78cf added --colorize 2023-05-08 07:49:03 -07:00
Paul Gauthier
ef3a5eedbe added --colorize 2023-05-08 07:48:19 -07:00
Paul Gauthier
e01d05c614 More pretty 2023-05-07 22:48:51 -07:00
Paul Gauthier
008bb1cffa try and better parse the new prettier quoted ORIGINAL/UPDATED blocks 2023-05-07 22:23:39 -07:00
Paul Gauthier
1d0d3c700e added flake8 2023-05-07 22:13:57 -07:00
Paul Gauthier
3c98410d62 init 2023-05-07 22:04:54 -07:00
Paul Gauthier
6a87dc6037 prettier console and colors 2023-05-07 22:04:42 -07:00
Paul Gauthier
8fa8f6560d more prompt engineering nonsense 2023-05-07 21:19:21 -07:00
Paul Gauthier
1313a3f36b Add a system prompt to remind gpt about the output format 2023-05-07 21:04:04 -07:00
Paul Gauthier
257b58ba86 note all file edits in the chat history, apart from the message with the current file contents 2023-05-07 21:00:51 -07:00
Paul Gauthier
92a94d4b99 cleanup 2023-05-07 20:41:02 -07:00
Paul Gauthier
e9f0c0ced2 different user msgs for initial, local and gpt edits 2023-05-07 20:40:17 -07:00
Paul Gauthier
d61ab51a74 black 2023-05-07 20:24:59 -07:00
Paul Gauthier
eb79dd2760 cleanup 2023-05-07 20:22:37 -07:00
Paul Gauthier
2b76aa0153 straight port of file change camping from camp-on-files 2023-05-07 16:04:42 -07:00
Paul Gauthier
9380d11d29 added argparse and -3 2023-05-07 15:46:43 -07:00
Paul Gauthier
69b4c8e307 prompt engineering! 2023-05-07 15:22:41 -07:00
Paul Gauthier
ba4d6254ec Seems to help it preserve leading whitespace 2023-05-07 14:56:00 -07:00
Paul Gauthier
16d3ae0bf9 create empty file 2023-05-06 10:57:32 -07:00
Paul Gauthier
cfd415c8f2 Handle the case of first populating an empty file 2023-05-06 10:32:52 -07:00
Paul Gauthier
d50b4c4de2 gpt-4 2023-05-02 19:31:15 -07:00
Paul Gauthier
65d118e64b gpt4, disabled stopping generation if ``` detected 2023-04-29 15:59:28 -07:00
Paul Gauthier
46b2eef891 init 2023-04-19 09:03:23 -07:00
Paul Gauthier
c094a16d1b it does not seem to try and append 2023-04-19 08:56:33 -07:00
Paul Gauthier
9e4ba5ee4b fixed regex 2023-04-19 06:17:52 -07:00
Paul Gauthier
4840cb0966 ugh 2023-04-11 13:08:21 -07:00
Paul Gauthier
4feb57e9c9 noop 2023-04-11 12:53:56 -07:00
Paul Gauthier
bfbf6e3e96 fixed regex 2023-04-11 12:42:55 -07:00
Paul Gauthier
aebdb332a0 works 2023-04-11 12:30:58 -07:00
Paul Gauthier
1dfe6b31f1 ugh 2023-04-11 11:56:50 -07:00
Paul Gauthier
4b516868ed split apart done_ and cur_messages 2023-04-11 11:45:45 -07:00
Paul Gauthier
8b5c2dc23d noop 2023-04-11 11:32:35 -07:00
Paul Gauthier
f588881779 move reminder into prompts 2023-04-10 14:35:58 -07:00
Paul Gauthier
a070c357a0 show messages 2023-04-10 12:56:51 -07:00
Paul Gauthier
99106a1b98 added extra system prompt 2023-04-10 12:45:38 -07:00
Paul Gauthier
d3640a7d16 better 2023-04-09 17:06:00 -07:00
Paul Gauthier
14463700d3 noop 2023-04-09 16:11:06 -07:00
Paul Gauthier
610998aafd bugfix 2023-04-09 12:29:09 -07:00
Paul Gauthier
de17d8ea29 prompt 2023-04-09 08:18:41 -07:00
Paul Gauthier
5628c2bf7c Added user_suffix 2023-04-09 07:40:47 -07:00
Paul Gauthier
c577f78f1c noop 2023-04-09 07:25:21 -07:00
Paul Gauthier
0186679449 refactor prompts to prompts.py 2023-04-09 07:06:55 -07:00
Paul Gauthier
0368eed9f7 better 2023-04-09 06:59:24 -07:00
Paul Gauthier
5b13bbeb12 better 2023-04-08 19:46:13 -07:00
Paul Gauthier
a411bb1bcd bugfix 2023-04-08 19:39:39 -07:00
Paul Gauthier
697c68dba0 cleanup 2023-04-08 19:38:24 -07:00
Paul Gauthier
5e1769b040 better 2023-04-08 19:30:30 -07:00
Paul Gauthier
1c9025716d plain output 2023-04-08 18:59:54 -07:00
Paul Gauthier
69c55becde more tolerant edit parsing 2023-04-08 18:57:11 -07:00