Interface: LLMChat<ExtraParams>
Type parameters
Name | Type |
---|---|
ExtraParams | extends Record <string , unknown > = Record <string , unknown > |
Hierarchy
-
LLMChat
↳
LLM
Methods
chat
▸ chat(params
): Promise
<ChatResponse
| AsyncIterable
<ChatResponseChunk
>>
Parameters
Name | Type |
---|---|
params | LLMChatParamsStreaming <ExtraParams > | LLMChatParamsNonStreaming <ExtraParams > |
Returns
Promise
<ChatResponse
| AsyncIterable
<ChatResponseChunk
>>