$ npm install @webeleon/nestjs-openai
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 {}
Generated using TypeDoc