Class: OpenAI
Hierarchy
-
BaseLLM
<OpenAIAdditionalChatOptions
,OpenAIAdditionalMessageOptions
>↳
OpenAI
↳↳
FireworksLLM
↳↳
Groq
↳↳
TogetherLLM
Constructors
constructor
• new OpenAI(init?
): OpenAI
Parameters
Name | Type |
---|---|
init? | Partial <OpenAI > & { azure? : AzureOpenAIConfig } |
Returns
Overrides
BaseLLM< OpenAIAdditionalChatOptions, OpenAIAdditionalMessageOptions >.constructor
Defined in
packages/core/src/llm/open_ai.ts:188
Properties
additionalChatOptions
• Optional
additionalChatOptions: OpenAIAdditionalChatOptions
Defined in
packages/core/src/llm/open_ai.ts:176
additionalSessionOptions
• Optional
additionalSessionOptions: Omit
<Partial
<ClientOptions
>, "apiKey"
| "timeout"
| "maxRetries"
>
Defined in
packages/core/src/llm/open_ai.ts:183
apiKey
• Optional
apiKey: string
= undefined
Defined in
packages/core/src/llm/open_ai.ts:179
maxRetries
• maxRetries: number
Defined in
packages/core/src/llm/open_ai.ts:180
maxTokens
• Optional
maxTokens: number
Defined in
packages/core/src/llm/open_ai.ts:175