Skip to content

Application utilizes Azure OpenAI's API to generate text completions based on a given prompt, processing and displaying the results in JSON format.

Notifications You must be signed in to change notification settings

ChaiyoKung/azure-openai-gpt4omini-nodejs

Repository files navigation

Azure OpenAI GPT-4o Mini Node.js

Application utilizes Azure OpenAI's API to generate text completions based on a given prompt, processing and displaying the results in JSON format.

Preparation

Login to Azure and create a new resource for OpenAI. Ensure that you assign the "Cognitive Services OpenAI User" role to access the OpenAI API.

az login

Getting Started

Create a .env file and configure the environment variables:

cp .env.example .env

Install dependencies:

bun install

Run the project:

bun start

This project was created using bun init in bun v1.2.2. Bun is a fast all-in-one JavaScript runtime.

About

Application utilizes Azure OpenAI's API to generate text completions based on a given prompt, processing and displaying the results in JSON format.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published