Skip to content

morellexf13/openai-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation



☄️
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

About

☄️ Simple OpenAI & Azure OpenAI Node.Js Wrapper

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published