kopia lustrzana https://github.com/biobootloader/wolverine
add info about Go support to README.md
rodzic
f7050402a6
commit
288af47ca3
28
README.md
28
README.md
|
@ -59,3 +59,31 @@ This is just a quick prototype I threw together in a few hours. There are many p
|
|||
## Star History
|
||||
|
||||
[](https://star-history.com/#biobootloader/wolverine)
|
||||
|
||||
# Go Usage:
|
||||
#### The Wolverine supports .go files to be executed now!
|
||||
## Setup step by step:
|
||||
|
||||
1) git clone https://....<the_link>
|
||||
2) cd wolverine/wolverine/GoLang/internal/main
|
||||
3) go mod install
|
||||
4) go build -o ../../../../../your_wish_folder/wolverine.exe
|
||||
5) cd ../../../../../your_wish_folder
|
||||
6) > .env
|
||||
7) fill the .env file like in the example below, but with your personal data
|
||||
|
||||
### Example .env:
|
||||
OPENAI_API_KEY=gorinfwe:mfwbevnmowemo9fn20f439vn03v4
|
||||
GPT_MODEL=text-davinci-003
|
||||
ATTEMPTS_TO_TRY=15
|
||||
|
||||
#### Remember that each attempt is a request to GPT so think twice about \<ATTEMPTS_TO_TRY> value
|
||||
#### GPT 4 is the most preferable model here, but you can try to use any model
|
||||
|
||||
## Example Usage
|
||||
|
||||
./wolverine.exe main
|
||||
|
||||
#### main here is your filename WITHOUT .go extension
|
||||
#### If you see the "Success" message, then you must have obtained a file enterFilename+"__fixed".go>, and it's free of any compile errors. So you can freely run it
|
||||
go run main__fixed.go
|
||||
|
|
Ładowanie…
Reference in New Issue