Running GPT model from Open AI direct on terminal
Access https://beta.openai.com/account/api-keys to get new api key.
Store the value safely as a enviroment variable using OPENAI_API_KEY as key.
To generate binary file run pyinstaller.
python -m pip install pyinstaller
Run the command to get binary:
pyinstaller --onefile fesso.py
To optimize answers to your needs, add substrings such as "command to", "who is", "what is" to the beginning of the prompt.
To have larger or smaller results edit the --max_tokens
parameter.
It is also possible to try cheaper models such as curie, babbage or ada. Check documentation:
https://beta.openai.com/docs/models/gpt-3