Just having fun with OpenAI APIs.
Create .env
file in the repository and add:
# Required
OPENAI_API_KEY=<your_api_key>
# Optional, you probably only have one organization
OPENAI_ORG_ID=<your_organization_id>
npm start
This will print help with the list of commands. Once you know the command, pass the arguments to the CLI:
npm start -- chat
npm run build
node dist/index.js chat # or any other arguments