Class: OpenAI
OpenAI LLM implementation
Implements
Constructors
constructor
• new OpenAI(init?
)
Parameters
Name | Type |
---|---|
init? | Partial <OpenAI > & { azure? : AzureOpenAIConfig } |
Defined in
packages/core/src/llm/LLM.ts:152
Properties
additionalChatOptions
• Optional
additionalChatOptions: Omit
<Partial
<ChatCompletionCreateParams
>, "model"
| "temperature"
| "max_tokens"
| "messages"
| "top_p"
| "streaming"
>
Defined in
packages/core/src/llm/LLM.ts:135
additionalSessionOptions
• Optional
additionalSessionOptions: Omit
<Partial
<ClientOptions
>, "apiKey"
| "timeout"
| "maxRetries"
>
Defined in
packages/core/src/llm/LLM.ts:145
apiKey
• Optional
apiKey: string
= undefined
Defined in
packages/core/src/llm/LLM.ts:141
callbackManager
• Optional
callbackManager: CallbackManager
Defined in
packages/core/src/llm/LLM.ts:150
hasStreaming
• hasStreaming: boolean
= true
Implementation of
Defined in
packages/core/src/llm/LLM.ts:128
maxRetries
• maxRetries: number
Defined in
packages/core/src/llm/LLM.ts:142
maxTokens
• Optional
maxTokens: number
Defined in
packages/core/src/llm/LLM.ts:134
model
• model: "gpt-3.5-turbo"
| "gpt-3.5-turbo-1106"
| "gpt-3.5-turbo-16k"
| "gpt-4"
| "gpt-4-32k"
| "gpt-4-1106-preview"
| "gpt-4-vision-preview"
Defined in
packages/core/src/llm/LLM.ts:131
session
• session: OpenAISession
Defined in
packages/core/src/llm/LLM.ts:144