1- Install Dependencies
npm install
2- Create a .env file in the project root and add the following:
OPENAI_API_KEY=
# OR (for Azure)
AZURE_OPENAI_API_KEY=
AZURE_OPENAI_ENDPOINT=
AZURE_OPENAI_DEPLOYMENT=
3- Adjust temperature and top_p
4- Edit the system (optional) and user prompt
Prompt sample
Tell me a joke about programming
5- Call completions by running:
npm start