Documentation
Functions
Createopenaiclient

Function: createOpenAIClient()

createOpenAIClient(opts?, forceNew?): OpenAIClient

Create a new openai-fetch OpenAIClient.

Parameters

ParameterTypeDefault valueDescription
opts?ConfigOptsundefinedOptions to pass to the OpenAI client.
forceNew?booleanfalseForce a new client to be created.

Returns

OpenAIClient

Source

src/model/clients/openai.ts:8 (opens in a new tab)