Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/morellexf13/openai-wrapper
☄️ Simple OpenAI & Azure OpenAI Node.Js Wrapper
https://github.com/morellexf13/openai-wrapper
ai azure nodejs openai wrapper
Last synced: about 22 hours ago
JSON representation
☄️ Simple OpenAI & Azure OpenAI Node.Js Wrapper
- Host: GitHub
- URL: https://github.com/morellexf13/openai-wrapper
- Owner: morellexf13
- Created: 2024-08-14T10:36:04.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-08-15T22:26:54.000Z (5 months ago)
- Last Synced: 2024-08-16T00:37:13.943Z (5 months ago)
- Topics: ai, azure, nodejs, openai, wrapper
- Language: JavaScript
- Homepage:
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
☄️
OpenAI Wrapper
Simple OpenAI & Azure OpenAI Node.Js Wrapper
### Getting Started
1- Install Dependencies
```bash
npm install
```### Setup environment
2- Create a .env file in the project root and add the following:
```bash
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:
```bash
npm start
```