@webeleon/nestjs-openai
Version:
An openAi API client for nestjs
11 lines (10 loc) • 311 B
TypeScript
export declare const CONFIG_OPTIONS = "CONFIG_OPTIONS";
export interface OpenAIModuleOptions {
apiKey: string;
model: string;
}
export interface OpenAIModuleAsyncOptions {
imports?: any[];
inject?: any[];
useFactory: (...args: any[]) => Promise<OpenAIModuleOptions> | OpenAIModuleOptions;
}