OpenAI

The openAi app is a nestjs wrapper around Openai. It provides a consistent interface for interacting with OpenAi within the confines of our framework.

Checkout the OpenAi documentation for more information.

Install

Follow these instructions to use the OpenAi wrapper in your project.

Package

Install the package into your project:

pnpm install @juicyllama/app-openai

Environment Variables

Add the following environment variables to your project:

OPENAI_API_KEY=your_api_key

Methods

Checkout what methods you can use here.

You can also use the frameworks AI module to interact with the OpenAi app. This offers a layer of abstraction over the app and allows you to easily switch between AI engines. It also performs caching, feedback and other useful features.

Docs v.0.9.0 Copyright © 2024