Class: TogetherLLM
OpenAI LLM implementation
Hierarchy
-
↳
TogetherLLM
Constructors
constructor
• new TogetherLLM(init?
): TogetherLLM
Parameters
Name | Type |
---|---|
init? | Partial <OpenAI > |
Returns
Overrides
Defined in
packages/core/src/llm/together.ts:4
Properties
additionalChatOptions
• Optional
additionalChatOptions: Omit
<Partial
<ChatCompletionCreateParams
>, "stream"
| "model"
| "temperature"
| "messages"
| "max_tokens"
| "top_p"
| "tools"
| "toolChoice"
>
Inherited from
Defined in
packages/core/src/llm/LLM.ts:84
additionalSessionOptions
• Optional
additionalSessionOptions: Omit
<Partial
<ClientOptions
>, "apiKey"
| "timeout"
| "maxRetries"
>
Inherited from
OpenAI.additionalSessionOptions
Defined in
packages/core/src/llm/LLM.ts:101
apiKey
• Optional
apiKey: string
= undefined
Inherited from
Defined in
packages/core/src/llm/LLM.ts:97
callbackManager
• Optional
callbackManager: CallbackManager
Inherited from
Defined in
packages/core/src/llm/LLM.ts:106
maxRetries
• maxRetries: number
Inherited from
Defined in
packages/core/src/llm/LLM.ts:98
maxTokens
• Optional
maxTokens: number
Inherited from
Defined in
packages/core/src/llm/LLM.ts:83
model
• model: string
Inherited from
Defined in
packages/core/src/llm/LLM.ts:80
session
• session: OpenAISession
Inherited from
Defined in
packages/core/src/llm/LLM.ts:100
temperature
• temperature: number
Inherited from
Defined in
packages/core/src/llm/LLM.ts:81
timeout
• Optional
timeout: number
Inherited from
Defined in
packages/core/src/llm/LLM.ts:99
topP
• topP: number
Inherited from
Defined in
packages/core/src/llm/LLM.ts:82
Accessors
metadata
• get
metadata(): Object
Returns
Object
Name | Type |
---|---|
contextWindow | number |
isFunctionCallingModel | boolean |
maxTokens | undefined | number |
model | string |
temperature | number |
tokenizer | CL100K_BASE |
topP | number |
Inherited from
OpenAI.metadata
Defined in
packages/core/src/llm/LLM.ts:163
Methods
chat
▸ chat(params
): Promise
<AsyncIterable
<ChatResponseChunk
>>
Parameters
Name | Type |
---|---|
params | LLMChatParamsStreaming |