Hierarchy

  • OpenAIService

Constructors

Properties

config: any
openai: OpenAI
openaiProvider: OpenAIClientProvider

Methods

  • Parameters

    • __namedParameters: {
          history?: Message[];
          numberOfCompletions?: number;
          prompt: string;
          role?: Role;
          temperature?: number;
          userId: string;
      }
      • Optional history?: Message[]
      • Optional numberOfCompletions?: number
      • prompt: string
      • Optional role?: Role
      • Optional temperature?: number
      • userId: string

    Returns Promise<string[]>

  • Parameters

    • __namedParameters: GenerateImageInput

    Returns Promise<Buffer[]>

  • Parameters

    • __namedParameters: GenerateImageInput

    Returns Promise<string[]>

Generated using TypeDoc