This is sample application to use chatgpt api via CLI Application
Download Binary file to execute (depend on OS)
execute with command.
chatgptor you can set path for easy to use.
Set Environment variable to configuration.
GPT_CLI_APIKEY is ChatGPI API Key that request from https://platform.openai.com/account/api-keys
On Windows Powershell
$env:GPT_CLI_APIKEY='sk-xxxxxxxxxxxxxxxxxxxxxxxx'On Unix Terminal
GPT_CLI_APIKEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxGPT_CLI_MODEL is ChatGPI Model to use (default is gpt-3.5-turbo)
On Windows Powershell
$env:GPT_CLI_MODEL='gpt-3.5-turbo'On Unix Terminal
GPT_CLI_MODEL=gpt-3.5-turbo