Function: createOpenAIClient()
createOpenAIClient(
opts
?,forceNew
?):OpenAIClient
Create a new openai-fetch OpenAIClient.
Parameters
Parameter | Type | Default value | Description |
---|---|---|---|
opts ? | ConfigOpts | undefined | Options to pass to the OpenAI client. |
forceNew ? | boolean | false | Force a new client to be created. |
Returns
OpenAIClient