Class: OpenAI
Hierarchy
-
BaseLLM
<OpenAIAdditionalChatOptions
>↳
OpenAI
↳↳
FireworksLLM
↳↳
Groq
↳↳
TogetherLLM
Constructors
constructor
• new OpenAI(init?
): OpenAI
Parameters
Name | Type |
---|---|
init? | Partial <OpenAI > & { azure? : AzureOpenAIConfig } |
Returns
Overrides
BaseLLM<OpenAIAdditionalChatOptions>.constructor
Defined in
packages/core/src/llm/open_ai.ts:172
Properties
additionalChatOptions
• Optional
additionalChatOptions: OpenAIAdditionalChatOptions
Defined in
packages/core/src/llm/open_ai.ts:160
additionalSessionOptions
• Optional
additionalSessionOptions: Omit
<Partial
<ClientOptions
>, "apiKey"
| "timeout"
| "maxRetries"
>
Defined in
packages/core/src/llm/open_ai.ts:167
apiKey
• Optional
apiKey: string
= undefined
Defined in
packages/core/src/llm/open_ai.ts:163
maxRetries
• maxRetries: number
Defined in
packages/core/src/llm/open_ai.ts:164
maxTokens
• Optional
maxTokens: number
Defined in
packages/core/src/llm/open_ai.ts:159
model
• model: string
Defined in
packages/core/src/llm/open_ai.ts:156
session
• session: OpenAISession
Defined in
packages/core/src/llm/open_ai.ts:166
temperature
• temperature: number
Defined in
packages/core/src/llm/open_ai.ts:157
timeout
• Optional
timeout: number
Defined in
packages/core/src/llm/open_ai.ts:165
topP
• topP: number