Application utilizes Azure OpenAI's API to generate text completions based on a given prompt, processing and displaying the results in JSON format.
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
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.