Skip to content

Webeleon/nestjs-openai

Repository files navigation

NestJS module for openAI

Coverage Status npm version

Installation

$ npm install @webeleon/nestjs-openai

Usage

In the root module

import { OpenAiModule, Models } from "@webeleon/nestjs-openai";

@Module({
  imports: [
    OpenAiModule.forRoot({
      apiKey: 'YOUR_OPEN_AI_API_KEY',
      model: Models.GPT4
    })
  ],
})
class AppModule {}

Useful links

API DOC julien@webeleon