- A tool for explaining and reviewing code, which supports large files.
- ChatGPT command-line tool, which can be called via command-line to utilize ChatGPT.
- Windows
- Python 3.10
pip install -r requirements.txt
Create a .chatgpt_tool
folder in your user directory and create a config.json
file inside it with content like this:
{
"model": "text-davinci-002-render-sha",
"access_token": "your_access_token",
"export_dir": "your_export_dir",
"language": "chinese"
}
where:
model
is the model to use, default totext-davinci-002-render-sha
.access_token
is your token, which can be obtained from here.export_dir
is the directory to export the conversations.language
is the language to do code review and explanation
Additionally, environment variables can be supported, like: "export_dir": ${CHATGPT_EXPORT_DIR}
- Code explanation:
python code_explainer.py -h
- Code review:
python code_reviewer.py -h
- Command-line tool:
python cli.py -h
We recommend using the Windows Terminal, which can output more user-friendly interfaces and colors.
After executing the above commands, you will see specific command-line prompts, which can be followed to continue.