Type alias OpenAIOptions

OpenAIOptions: {
    apiKey?: string;
    mode?: StreamMode;
}

Type declaration

  • Optional apiKey?: string

    By default, the API key is read from the OPENAI_API_KEY environment variable. You can override this by passing a different key here.

  • Optional mode?: StreamMode

    Whether to return tokens or raw events.

Generated using TypeDoc