Access GPT3, ChatGPT, and GPT4 straight from your terminal.
- Create a new file in the root folder or in other location:
nano /root/gpt.sh. - Paste the code from either
*.shfiles and make sure to edit line #4 to reflect your OPENAI API Key. Save. chmod +x gpt.sh.- For convenience of access, add an alias to
/.bashrclocated in/root, such as:alias gpt=/root/gpt.sh. - Use:
gpt <Your prompt>.
Note: I've hardcoded some of the parameters (temperature, presence penalty, frequency penalty, max token, top_p) for convenience. In the future, if there is interest, I might develop this further.
