ai-python-wolverine/README.md

65 wiersze
2.8 KiB
Markdown

2024-03-08 07:33:01 +00:00
# DEPRECATED: Try Mentat instead! https://github.com/AbanteAI/mentat
2023-03-18 22:16:47 +00:00
# Wolverine
## About
Give your python scripts regenerative healing abilities!
Run your scripts with Wolverine and when they crash, GPT-4 edits them and explains what went wrong. Even if you have many bugs it will repeatedly rerun until it's fixed.
For a quick demonstration see my [demo video on twitter](https://twitter.com/bio_bootloader/status/1636880208304431104).
## Setup
python3 -m venv venv
source venv/bin/activate
2023-04-08 20:10:04 +00:00
pip install -r requirements.txt
Squashed commit of the following: commit 742aaaf9d1ddfee29cc49c993c5d8d0480e53f0a Merge: f2d21e7 fe87faa Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 15:44:12 2023 -0700 Merge pull request #13 from fsboehme/main more robust parsing of JSON (+ indentation) commit fe87faa2fb709b782217093ecf88379e153a0f58 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:49:48 2023 -0400 cleanup commit 4db9d1bf43438a7809e47bd1bd140cad8b3b12e1 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:49:09 2023 -0400 more cleanup commit e1d0a790f8941a74c4857ac8404c4c1c9e4fb6ed Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:46:18 2023 -0400 cleanup commit b044882dc391d878c570d56ae5e64bb1045d0ec0 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:37:27 2023 -0400 remove duplicate code from rebase commit dd174cf30eafca66a06e08654854c93ec5297fe0 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:15:07 2023 -0400 add DEFAULT_MODEL to .env.sample + fix typo commit 2497fb816b862ac1b5d27751c5742fb8171d4207 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 16:29:45 2023 -0400 move json_validated_response to standalone function commit 923f7057e36016208f4dbfdf227a0953eba59c47 Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:35:24 2023 -0400 update readme - updated readme to mention .env - added model arg back commit 0656a83da73dd9446406edabdcd607fc5bccc263 Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:29:06 2023 -0400 recursive calls if not json parsable - makes recursive calls to API (with a comment about it not being parsable) if response was not parsable - pass prompt.txt as system prompt - use env var for `DEFAULT_MODEL` - use env var for OPENAI_API_KEY commit 7c072fba2ab3bea728ca5dc3c7b16dc05e3dc54a Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:24:41 2023 -0400 update prompt to make it pay attention to indentation commit c62f91eaeed80501ca3bcc6d15d243bb8aa65a7a Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:23:44 2023 -0400 Update .gitignore commit f2d21e7b93517261161b78acd9fbaf580f6158c1 Merge: 0420860 6343f6f Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:59:44 2023 -0700 Merge pull request #12 from chriscarrollsmith/main Implemented .env file API key storage commit 6343f6f50be274a49f850426c382cede5652ad62 Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:59:31 2023 -0700 Apply suggestions from code review commit d87ebfa46f6b830bcfc5c543b149942ce68453cd Merge: 9af5480 75f08e2 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:53:25 2023 -0400 Merge branch 'main' of https://github.com/chriscarrollsmith/wolverine commit 9af5480b89ec58edc11bf8b721eefc137e197d59 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:53:02 2023 -0400 Added python-dotenv to requirements.txt commit 75f08e285293b4482e4fec74a2055629863bc90f Merge: e8a8931 0420860 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:50:29 2023 -0400 Merge pull request #1 from biobootloader/main Reconcile with master branch commit 04208605fe403b70ac5945b4fbcd86e481b8e73d Merge: d547822 6afb4db Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:22:53 2023 -0700 Merge pull request #20 from eltociear/patch-1 fix typo in README.md commit d54782230c9b30109108e511604c61f8c0c0a001 Merge: 1b9649e 4863df6 Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:19:43 2023 -0700 Merge pull request #17 from hemangjoshi37a/main added `star-history` ⭐⭐⭐⭐⭐ commit 6afb4db2ffc7878e2a125cd53917a1abfacb8790 Author: Ikko Eltociear Ashimine <eltociear@gmail.com> Date: Fri Apr 14 16:37:05 2023 +0900 fix typo in README.md reliablity -> reliability commit 4863df689877d0628520a10346c6ad7cbb7cd9cd Author: Hemang Joshi <hemangjoshi37a@gmail.com> Date: Fri Apr 14 10:27:32 2023 +0530 added `star-history` added `star-history` commit e8a893156e097d8c964d0a8ff195b00fdb536fad Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Wed Apr 12 13:45:54 2023 -0400 Implemented .env file API key storage
2023-04-15 05:22:57 +00:00
cp .env.sample .env
2023-03-18 22:16:47 +00:00
Squashed commit of the following: commit 742aaaf9d1ddfee29cc49c993c5d8d0480e53f0a Merge: f2d21e7 fe87faa Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 15:44:12 2023 -0700 Merge pull request #13 from fsboehme/main more robust parsing of JSON (+ indentation) commit fe87faa2fb709b782217093ecf88379e153a0f58 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:49:48 2023 -0400 cleanup commit 4db9d1bf43438a7809e47bd1bd140cad8b3b12e1 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:49:09 2023 -0400 more cleanup commit e1d0a790f8941a74c4857ac8404c4c1c9e4fb6ed Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:46:18 2023 -0400 cleanup commit b044882dc391d878c570d56ae5e64bb1045d0ec0 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:37:27 2023 -0400 remove duplicate code from rebase commit dd174cf30eafca66a06e08654854c93ec5297fe0 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:15:07 2023 -0400 add DEFAULT_MODEL to .env.sample + fix typo commit 2497fb816b862ac1b5d27751c5742fb8171d4207 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 16:29:45 2023 -0400 move json_validated_response to standalone function commit 923f7057e36016208f4dbfdf227a0953eba59c47 Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:35:24 2023 -0400 update readme - updated readme to mention .env - added model arg back commit 0656a83da73dd9446406edabdcd607fc5bccc263 Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:29:06 2023 -0400 recursive calls if not json parsable - makes recursive calls to API (with a comment about it not being parsable) if response was not parsable - pass prompt.txt as system prompt - use env var for `DEFAULT_MODEL` - use env var for OPENAI_API_KEY commit 7c072fba2ab3bea728ca5dc3c7b16dc05e3dc54a Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:24:41 2023 -0400 update prompt to make it pay attention to indentation commit c62f91eaeed80501ca3bcc6d15d243bb8aa65a7a Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:23:44 2023 -0400 Update .gitignore commit f2d21e7b93517261161b78acd9fbaf580f6158c1 Merge: 0420860 6343f6f Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:59:44 2023 -0700 Merge pull request #12 from chriscarrollsmith/main Implemented .env file API key storage commit 6343f6f50be274a49f850426c382cede5652ad62 Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:59:31 2023 -0700 Apply suggestions from code review commit d87ebfa46f6b830bcfc5c543b149942ce68453cd Merge: 9af5480 75f08e2 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:53:25 2023 -0400 Merge branch 'main' of https://github.com/chriscarrollsmith/wolverine commit 9af5480b89ec58edc11bf8b721eefc137e197d59 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:53:02 2023 -0400 Added python-dotenv to requirements.txt commit 75f08e285293b4482e4fec74a2055629863bc90f Merge: e8a8931 0420860 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:50:29 2023 -0400 Merge pull request #1 from biobootloader/main Reconcile with master branch commit 04208605fe403b70ac5945b4fbcd86e481b8e73d Merge: d547822 6afb4db Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:22:53 2023 -0700 Merge pull request #20 from eltociear/patch-1 fix typo in README.md commit d54782230c9b30109108e511604c61f8c0c0a001 Merge: 1b9649e 4863df6 Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:19:43 2023 -0700 Merge pull request #17 from hemangjoshi37a/main added `star-history` ⭐⭐⭐⭐⭐ commit 6afb4db2ffc7878e2a125cd53917a1abfacb8790 Author: Ikko Eltociear Ashimine <eltociear@gmail.com> Date: Fri Apr 14 16:37:05 2023 +0900 fix typo in README.md reliablity -> reliability commit 4863df689877d0628520a10346c6ad7cbb7cd9cd Author: Hemang Joshi <hemangjoshi37a@gmail.com> Date: Fri Apr 14 10:27:32 2023 +0530 added `star-history` added `star-history` commit e8a893156e097d8c964d0a8ff195b00fdb536fad Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Wed Apr 12 13:45:54 2023 -0400 Implemented .env file API key storage
2023-04-15 05:22:57 +00:00
Add your openAI api key to `.env`
_warning!_ By default wolverine uses GPT-4 and may make many repeated calls to the api.
2023-03-18 22:16:47 +00:00
## Example Usage
To run with gpt-4 (the default, tested option):
2023-04-24 16:21:14 +00:00
python -m wolverine examples/buggy_script.py "subtract" 20 3
2023-03-18 22:16:47 +00:00
You can also run with other models, but be warned they may not adhere to the edit format as well:
2023-04-24 16:21:14 +00:00
python -m wolverine --model=gpt-3.5-turbo examples/buggy_script.py "subtract" 20 3
Squashed commit of the following: commit 742aaaf9d1ddfee29cc49c993c5d8d0480e53f0a Merge: f2d21e7 fe87faa Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 15:44:12 2023 -0700 Merge pull request #13 from fsboehme/main more robust parsing of JSON (+ indentation) commit fe87faa2fb709b782217093ecf88379e153a0f58 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:49:48 2023 -0400 cleanup commit 4db9d1bf43438a7809e47bd1bd140cad8b3b12e1 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:49:09 2023 -0400 more cleanup commit e1d0a790f8941a74c4857ac8404c4c1c9e4fb6ed Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:46:18 2023 -0400 cleanup commit b044882dc391d878c570d56ae5e64bb1045d0ec0 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:37:27 2023 -0400 remove duplicate code from rebase commit dd174cf30eafca66a06e08654854c93ec5297fe0 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:15:07 2023 -0400 add DEFAULT_MODEL to .env.sample + fix typo commit 2497fb816b862ac1b5d27751c5742fb8171d4207 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 16:29:45 2023 -0400 move json_validated_response to standalone function commit 923f7057e36016208f4dbfdf227a0953eba59c47 Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:35:24 2023 -0400 update readme - updated readme to mention .env - added model arg back commit 0656a83da73dd9446406edabdcd607fc5bccc263 Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:29:06 2023 -0400 recursive calls if not json parsable - makes recursive calls to API (with a comment about it not being parsable) if response was not parsable - pass prompt.txt as system prompt - use env var for `DEFAULT_MODEL` - use env var for OPENAI_API_KEY commit 7c072fba2ab3bea728ca5dc3c7b16dc05e3dc54a Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:24:41 2023 -0400 update prompt to make it pay attention to indentation commit c62f91eaeed80501ca3bcc6d15d243bb8aa65a7a Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:23:44 2023 -0400 Update .gitignore commit f2d21e7b93517261161b78acd9fbaf580f6158c1 Merge: 0420860 6343f6f Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:59:44 2023 -0700 Merge pull request #12 from chriscarrollsmith/main Implemented .env file API key storage commit 6343f6f50be274a49f850426c382cede5652ad62 Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:59:31 2023 -0700 Apply suggestions from code review commit d87ebfa46f6b830bcfc5c543b149942ce68453cd Merge: 9af5480 75f08e2 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:53:25 2023 -0400 Merge branch 'main' of https://github.com/chriscarrollsmith/wolverine commit 9af5480b89ec58edc11bf8b721eefc137e197d59 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:53:02 2023 -0400 Added python-dotenv to requirements.txt commit 75f08e285293b4482e4fec74a2055629863bc90f Merge: e8a8931 0420860 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:50:29 2023 -0400 Merge pull request #1 from biobootloader/main Reconcile with master branch commit 04208605fe403b70ac5945b4fbcd86e481b8e73d Merge: d547822 6afb4db Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:22:53 2023 -0700 Merge pull request #20 from eltociear/patch-1 fix typo in README.md commit d54782230c9b30109108e511604c61f8c0c0a001 Merge: 1b9649e 4863df6 Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:19:43 2023 -0700 Merge pull request #17 from hemangjoshi37a/main added `star-history` ⭐⭐⭐⭐⭐ commit 6afb4db2ffc7878e2a125cd53917a1abfacb8790 Author: Ikko Eltociear Ashimine <eltociear@gmail.com> Date: Fri Apr 14 16:37:05 2023 +0900 fix typo in README.md reliablity -> reliability commit 4863df689877d0628520a10346c6ad7cbb7cd9cd Author: Hemang Joshi <hemangjoshi37a@gmail.com> Date: Fri Apr 14 10:27:32 2023 +0530 added `star-history` added `star-history` commit e8a893156e097d8c964d0a8ff195b00fdb536fad Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Wed Apr 12 13:45:54 2023 -0400 Implemented .env file API key storage
2023-04-15 05:22:57 +00:00
If you want to use GPT-3.5 by default instead of GPT-4 uncomment the default model line in `.env`:
DEFAULT_MODEL=gpt-3.5-turbo
You can also use flag `--confirm=True` which will ask you `yes or no` before making changes to the file. If flag is not used then it will apply the changes to the file
2023-04-24 16:21:14 +00:00
python -m wolverine examples/buggy_script.py "subtract" 20 3 --confirm=True
2023-04-27 00:33:36 +00:00
## Environment variables
| env name | description | default value |
| ------------------- | ----------------------------------------------------------------- | ------------- |
| OPENAI_API_KEY | OpenAI API key | None |
| DEFAULT_MODEL | GPT model to use | "gpt-4" |
| VALIDATE_JSON_RETRY | Number of retries when requesting OpenAI API (-1 means unlimites) | -1 |
2023-04-25 21:15:08 +00:00
2023-03-18 22:16:47 +00:00
## Future Plans
This is just a quick prototype I threw together in a few hours. There are many possible extensions and contributions are welcome:
- add flags to customize usage, such as asking for user confirmation before running changed code
2023-03-18 22:16:47 +00:00
- further iterations on the edit format that GPT responds in. Currently it struggles a bit with indentation, but I'm sure that can be improved
Squashed commit of the following: commit 742aaaf9d1ddfee29cc49c993c5d8d0480e53f0a Merge: f2d21e7 fe87faa Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 15:44:12 2023 -0700 Merge pull request #13 from fsboehme/main more robust parsing of JSON (+ indentation) commit fe87faa2fb709b782217093ecf88379e153a0f58 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:49:48 2023 -0400 cleanup commit 4db9d1bf43438a7809e47bd1bd140cad8b3b12e1 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:49:09 2023 -0400 more cleanup commit e1d0a790f8941a74c4857ac8404c4c1c9e4fb6ed Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:46:18 2023 -0400 cleanup commit b044882dc391d878c570d56ae5e64bb1045d0ec0 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:37:27 2023 -0400 remove duplicate code from rebase commit dd174cf30eafca66a06e08654854c93ec5297fe0 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:15:07 2023 -0400 add DEFAULT_MODEL to .env.sample + fix typo commit 2497fb816b862ac1b5d27751c5742fb8171d4207 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 16:29:45 2023 -0400 move json_validated_response to standalone function commit 923f7057e36016208f4dbfdf227a0953eba59c47 Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:35:24 2023 -0400 update readme - updated readme to mention .env - added model arg back commit 0656a83da73dd9446406edabdcd607fc5bccc263 Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:29:06 2023 -0400 recursive calls if not json parsable - makes recursive calls to API (with a comment about it not being parsable) if response was not parsable - pass prompt.txt as system prompt - use env var for `DEFAULT_MODEL` - use env var for OPENAI_API_KEY commit 7c072fba2ab3bea728ca5dc3c7b16dc05e3dc54a Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:24:41 2023 -0400 update prompt to make it pay attention to indentation commit c62f91eaeed80501ca3bcc6d15d243bb8aa65a7a Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:23:44 2023 -0400 Update .gitignore commit f2d21e7b93517261161b78acd9fbaf580f6158c1 Merge: 0420860 6343f6f Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:59:44 2023 -0700 Merge pull request #12 from chriscarrollsmith/main Implemented .env file API key storage commit 6343f6f50be274a49f850426c382cede5652ad62 Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:59:31 2023 -0700 Apply suggestions from code review commit d87ebfa46f6b830bcfc5c543b149942ce68453cd Merge: 9af5480 75f08e2 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:53:25 2023 -0400 Merge branch 'main' of https://github.com/chriscarrollsmith/wolverine commit 9af5480b89ec58edc11bf8b721eefc137e197d59 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:53:02 2023 -0400 Added python-dotenv to requirements.txt commit 75f08e285293b4482e4fec74a2055629863bc90f Merge: e8a8931 0420860 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:50:29 2023 -0400 Merge pull request #1 from biobootloader/main Reconcile with master branch commit 04208605fe403b70ac5945b4fbcd86e481b8e73d Merge: d547822 6afb4db Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:22:53 2023 -0700 Merge pull request #20 from eltociear/patch-1 fix typo in README.md commit d54782230c9b30109108e511604c61f8c0c0a001 Merge: 1b9649e 4863df6 Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:19:43 2023 -0700 Merge pull request #17 from hemangjoshi37a/main added `star-history` ⭐⭐⭐⭐⭐ commit 6afb4db2ffc7878e2a125cd53917a1abfacb8790 Author: Ikko Eltociear Ashimine <eltociear@gmail.com> Date: Fri Apr 14 16:37:05 2023 +0900 fix typo in README.md reliablity -> reliability commit 4863df689877d0628520a10346c6ad7cbb7cd9cd Author: Hemang Joshi <hemangjoshi37a@gmail.com> Date: Fri Apr 14 10:27:32 2023 +0530 added `star-history` added `star-history` commit e8a893156e097d8c964d0a8ff195b00fdb536fad Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Wed Apr 12 13:45:54 2023 -0400 Implemented .env file API key storage
2023-04-15 05:22:57 +00:00
- a suite of example buggy files that we can test prompts on to ensure reliability and measure improvement
2023-03-18 22:16:47 +00:00
- multiple files / codebases: send GPT everything that appears in the stacktrace
- graceful handling of large files - should we just send GPT relevant classes / functions?
- extension to languages other than python
Squashed commit of the following: commit 742aaaf9d1ddfee29cc49c993c5d8d0480e53f0a Merge: f2d21e7 fe87faa Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 15:44:12 2023 -0700 Merge pull request #13 from fsboehme/main more robust parsing of JSON (+ indentation) commit fe87faa2fb709b782217093ecf88379e153a0f58 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:49:48 2023 -0400 cleanup commit 4db9d1bf43438a7809e47bd1bd140cad8b3b12e1 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:49:09 2023 -0400 more cleanup commit e1d0a790f8941a74c4857ac8404c4c1c9e4fb6ed Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:46:18 2023 -0400 cleanup commit b044882dc391d878c570d56ae5e64bb1045d0ec0 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:37:27 2023 -0400 remove duplicate code from rebase commit dd174cf30eafca66a06e08654854c93ec5297fe0 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 17:15:07 2023 -0400 add DEFAULT_MODEL to .env.sample + fix typo commit 2497fb816b862ac1b5d27751c5742fb8171d4207 Author: Felix Boehme <fsboehme@gmail.com> Date: Fri Apr 14 16:29:45 2023 -0400 move json_validated_response to standalone function commit 923f7057e36016208f4dbfdf227a0953eba59c47 Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:35:24 2023 -0400 update readme - updated readme to mention .env - added model arg back commit 0656a83da73dd9446406edabdcd607fc5bccc263 Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:29:06 2023 -0400 recursive calls if not json parsable - makes recursive calls to API (with a comment about it not being parsable) if response was not parsable - pass prompt.txt as system prompt - use env var for `DEFAULT_MODEL` - use env var for OPENAI_API_KEY commit 7c072fba2ab3bea728ca5dc3c7b16dc05e3dc54a Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:24:41 2023 -0400 update prompt to make it pay attention to indentation commit c62f91eaeed80501ca3bcc6d15d243bb8aa65a7a Author: Felix Boehme <fsboehme@gmail.com> Date: Thu Apr 13 11:23:44 2023 -0400 Update .gitignore commit f2d21e7b93517261161b78acd9fbaf580f6158c1 Merge: 0420860 6343f6f Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:59:44 2023 -0700 Merge pull request #12 from chriscarrollsmith/main Implemented .env file API key storage commit 6343f6f50be274a49f850426c382cede5652ad62 Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:59:31 2023 -0700 Apply suggestions from code review commit d87ebfa46f6b830bcfc5c543b149942ce68453cd Merge: 9af5480 75f08e2 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:53:25 2023 -0400 Merge branch 'main' of https://github.com/chriscarrollsmith/wolverine commit 9af5480b89ec58edc11bf8b721eefc137e197d59 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:53:02 2023 -0400 Added python-dotenv to requirements.txt commit 75f08e285293b4482e4fec74a2055629863bc90f Merge: e8a8931 0420860 Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Fri Apr 14 16:50:29 2023 -0400 Merge pull request #1 from biobootloader/main Reconcile with master branch commit 04208605fe403b70ac5945b4fbcd86e481b8e73d Merge: d547822 6afb4db Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:22:53 2023 -0700 Merge pull request #20 from eltociear/patch-1 fix typo in README.md commit d54782230c9b30109108e511604c61f8c0c0a001 Merge: 1b9649e 4863df6 Author: biobootloader <128252497+biobootloader@users.noreply.github.com> Date: Fri Apr 14 13:19:43 2023 -0700 Merge pull request #17 from hemangjoshi37a/main added `star-history` ⭐⭐⭐⭐⭐ commit 6afb4db2ffc7878e2a125cd53917a1abfacb8790 Author: Ikko Eltociear Ashimine <eltociear@gmail.com> Date: Fri Apr 14 16:37:05 2023 +0900 fix typo in README.md reliablity -> reliability commit 4863df689877d0628520a10346c6ad7cbb7cd9cd Author: Hemang Joshi <hemangjoshi37a@gmail.com> Date: Fri Apr 14 10:27:32 2023 +0530 added `star-history` added `star-history` commit e8a893156e097d8c964d0a8ff195b00fdb536fad Author: Christopher Carroll Smith <75859865+chriscarrollsmith@users.noreply.github.com> Date: Wed Apr 12 13:45:54 2023 -0400 Implemented .env file API key storage
2023-04-15 05:22:57 +00:00
## Star History
[![Star History Chart](https://api.star-history.com/svg?repos=biobootloader/wolverine&type=Date)](https://star-history.com/#biobootloader/wolverine)