Passa al contenuto principale

Function: getOpenAISession()

getOpenAISession(options): OpenAISession

Get a session for the OpenAI API. If one already exists with the same options, it will be returned. Otherwise, a new session will be created.

Parameters

options: ClientOptions & object= {}

Returns

OpenAISession

Source

packages/core/src/llm/openai.ts:81