跳到主要内容

MariTalk

捆绑包 (Bundles) 包含支持特定第三方与 Langflow 集成的自定义组件。

本页面介绍了 MariTalk 捆绑包中可用的组件。

有关更多信息,请参阅 MariTalk 文档。

MariTalk 文本生成 (MariTalk text generation)​

MariTalk 组件使用 MariTalk LLM 生成文本。

它可以输出 模型响应 (Model Response) (消息 (Message)) 或 语言模型 (Language Model) (语言模型 (LanguageModel))。

当您希望将 MariTalk 模型用作另一个 LLM 驱动组件(如 代理 (Agent) 或 智能转换 (Smart Transform) 组件)的 LLM 时,请使用 语言模型 (Language Model) 输出。

有关更多信息,请参阅 语言模型组件。

MariTalk 文本生成参数​

Some parameters are hidden by default in the visual editor. You can modify all parameters through the Controls in the component's header menu.

名称类型描述
max_tokensInteger输入参数。生成的最大标记 (tokens) 数。设置为 0 表示不限制标记数。默认值:512。
model_nameString输入参数。要使用的 MariTalk 模型名称。选项:sabia-2-small, sabia-2-medium。默认值:sabia-2-small。
api_keySecretString输入参数。用于身份验证的 MariTalk API 密钥。
temperatureFloat输入参数。控制输出的随机性。范围:[0.0, 1.0]。默认值:0.5。
endpoint_urlString输入参数。MariTalk API 端点。默认值:https://api.maritalk.com。
Search