Class: TogetherLLM
Extends
Constructors
new TogetherLLM()
new TogetherLLM(
init
?):TogetherLLM
Parameters
• init?: Partial
<OpenAI
>
Returns
Overrides
Source
packages/core/src/llm/together.ts:5
Properties
additionalChatOptions?
optional
additionalChatOptions:OpenAIAdditionalChatOptions
Inherited from
OpenAI
. additionalChatOptions
Source
packages/core/src/llm/openai.ts:170
additionalSessionOptions?
optional
additionalSessionOptions:Omit
<Partial
<ClientOptions
>,"apiKey"
|"timeout"
|"maxRetries"
>
Inherited from
OpenAI
. additionalSessionOptions
Source
packages/core/src/llm/openai.ts:177
apiKey?
optional
apiKey:string
=undefined
Inherited from
Source
packages/core/src/llm/openai.ts:173
maxRetries
maxRetries:
number
Inherited from
Source
packages/core/src/llm/openai.ts:174
maxTokens?
optional
maxTokens:number
Inherited from
Source
packages/core/src/llm/openai.ts:169
model
model:
string
Inherited from
Source
packages/core/src/llm/openai.ts:166
session
session:
OpenAISession
Inherited from
Source
packages/core/src/llm/openai.ts:176
temperature
temperature:
number
Inherited from
Source
packages/core/src/llm/openai.ts:167
timeout?
optional
timeout:number
Inherited from
Source
packages/core/src/llm/openai.ts:175
topP
topP:
number
Inherited from
Source
packages/core/src/llm/openai.ts:168
Accessors
metadata
get
metadata():LLMMetadata
Returns
Source
packages/core/src/llm/openai.ts:239
supportToolCall
get
supportToolCall():boolean
Returns
boolean
Source
packages/core/src/llm/openai.ts:235
Methods
chat()
chat(params)
chat(
params
):Promise
<AsyncIterable
<ChatResponseChunk
<ToolCallLLMMessageOptions
>>>
Parameters
• params: LLMChatParamsStreaming
<OpenAIAdditionalChatOptions
, ToolCallLLMMessageOptions
>
Returns
Promise
<AsyncIterable
<ChatResponseChunk
<ToolCallLLMMessageOptions
>>>
Inherited from
Source
packages/core/src/llm/openai.ts:316
chat(params)
chat(
params
):Promise
<ChatResponse
<ToolCallLLMMessageOptions
>>
Parameters
• params: LLMChatParamsNonStreaming
<OpenAIAdditionalChatOptions
, ToolCallLLMMessageOptions
>
Returns
Promise
<ChatResponse
<ToolCallLLMMessageOptions
>>
Inherited from
Source
packages/core/src/llm/openai.ts:322
complete()
complete(params)
complete(
params
):Promise
<AsyncIterable
<CompletionResponse
>>
Parameters
• params: LLMCompletionParamsStreaming
Returns
Promise
<AsyncIterable
<CompletionResponse
>>
Inherited from
Source
packages/core/src/llm/base.ts:22
complete(params)
complete(
params
):Promise
<CompletionResponse
>
Parameters
• params: LLMCompletionParamsNonStreaming
Returns
Promise
<CompletionResponse
>
Inherited from
Source
packages/core/src/llm/base.ts:25
streamChat()
protected
streamChat(baseRequestParams
):AsyncIterable
<ChatResponseChunk
<ToolCallLLMMessageOptions
>>
Parameters
• baseRequestParams: ChatCompletionCreateParams
Returns
AsyncIterable
<ChatResponseChunk
<ToolCallLLMMessageOptions
>>
Inherited from
Source
packages/core/src/llm/openai.ts:397
toOpenAIMessage()
static
toOpenAIMessage(messages
):ChatCompletionMessageParam
[]
Parameters
• messages: ChatMessage
<ToolCallLLMMessageOptions
>[]
Returns
ChatCompletionMessageParam
[]
Inherited from
Source
packages/core/src/llm/openai.ts:267
toOpenAIRole()
static
toOpenAIRole(messageType
):ChatCompletionRole
Parameters
• messageType: MessageType
Returns
ChatCompletionRole
Inherited from
Source
packages/core/src/llm/openai.ts:254
toTool()
static
toTool(tool
):ChatCompletionTool
Parameters
• tool: BaseTool
<any
>
Returns
ChatCompletionTool