跳到主要内容

Anthropic

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

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

有关 Anthropic 组件使用的 Anthropic 特性和功能的更多信息,请参阅 Anthropic 文档

Anthropic 文本生成 (Anthropic text generation)

Anthropic 组件使用 Claude 等 Anthropic 聊天和语言模型生成文本。

它可以输出 模型响应 (Model Response) (Message) 或 语言模型 (Language Model) (LanguageModel)。 具体而言,语言模型 输出是根据组件参数配置的 ChatAnthropic 实例。

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

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

Anthropic 文本生成参数

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输入参数。要生成的最大 token 数。设置为 0 表示无限制。默认值:4096
modelString输入参数。要使用的 Anthropic 模型名称。选项包括各种 Claude 3 模型。
anthropic_api_keySecretString输入参数。用于身份验证的 Anthropic API 密钥。
temperatureFloat输入参数。控制输出的随机性。默认值:0.1
anthropic_api_urlString输入参数。Anthropic API 的端点。如果未指定,默认为 https://api.anthropic.com
prefillString输入参数。引导模型响应的预填充文本。
Search