1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-29 23:24:55 +02:00

rgpt: create page (#9918)

* rgpt: create page

* rgpt: fix formatting issues

* rgpt: Have better formatting in the description

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* rgpt: better formatting for the verbose description

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* rgpt: rename gpt3 to gpt
rename gpt3 to gpt because it now supports gpt3.5

---------

Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
Vaibhav 2023-03-20 02:01:52 -05:00 committed by GitHub
parent abeb05f062
commit 48a9f766a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

28
pages/common/rgpt.md Normal file
View file

@ -0,0 +1,28 @@
# rgpt
> An automated code review tool that uses GPT you can use straight from your terminal.
> More information: <https://github.com/vibovenkat123/review-gpt>.
- Ask GPT to improve the code with no extra options:
`rgpt --i "$(git diff {{path/to/file}})"`
- Get a more detailed verbose output from `rgpt` while reviewing the code:
`rgpt --v --i "$(git diff {{path/to/file}})"`
- Ask GPT to improve the code and limit it to a certain amount of GPT3 tokens:
`rgpt --max {{300}} --i "$(git diff {{path/to/file}})"`
- Ask GPT for a more unique result using a float value between 0 and 2. (higher = more unique):
`rgpt --pres {{1.2}} --i "$(git diff {{path/to/file}})"`
- Ask GPT to review your code using a specific model:
`rgpt --model {{text-davinci-003}} --i "$(git diff {{path/to/file}})"`
- Make `rgpt` use a JSON output:
`rgpt --json --i "$(git diff {{path/to/file}})"`