Skip to content

Latest commit

 

History

History
55 lines (41 loc) · 702 Bytes

README.md

File metadata and controls

55 lines (41 loc) · 702 Bytes



☄️
OpenAI Wrapper


Simple OpenAI & Azure OpenAI Node.Js Wrapper

Getting Started

1- Install Dependencies

npm install

Setup environment

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