Class: OpenAI
Unified language model interface
Extends
Extended by
Constructors
new OpenAI()
new OpenAI(
init
?):OpenAI
Parameters
• init?: Omit
<Partial
<OpenAI
>, "session"
> & object
Returns
Overrides
Defined in
packages/providers/openai/dist/index.d.ts:316
Properties
additionalChatOptions?
optional
additionalChatOptions:OpenAIAdditionalChatOptions
Defined in
packages/providers/openai/dist/index.d.ts:309
additionalSessionOptions?
optional
additionalSessionOptions:Omit
<Partial
<ClientOptions
>,"apiKey"
|"maxRetries"
|"timeout"
>
Defined in
packages/providers/openai/dist/index.d.ts:313
apiKey?
optional
apiKey:string
Defined in
packages/providers/openai/dist/index.d.ts:310
lazySession()
lazySession: () =>
Promise
<LLMInstance
>
Returns
Promise
<LLMInstance
>
Defined in
packages/providers/openai/dist/index.d.ts:314
maxRetries
maxRetries:
number
Defined in
packages/providers/openai/dist/index.d.ts:311
maxTokens?
optional
maxTokens:number
Defined in
packages/providers/openai/dist/index.d.ts:308
model
model:
string
&object
|ChatModel