Skip to content

Home > llm-ops > LLM > chat

LLM.chat() method

使用LLM进行聊天。

Signature:

typescript
chat(params: ChatSchema): Promise<chatCompletionType>;
chat(params: ChatSchema): Promise<chatCompletionType>;

Parameters

ParameterTypeDescription
paramsChatSchema包含聊天所需的参数。

Returns:

Promise<chatCompletionType>

返回聊天的完成信息。

Released under the MIT License.