Skip to content

Google Vertex Chat 模型节点(Google Vertex Chat Model node)#

使用 Google Vertex AI 聊天模型节点,以便使用 Google 的 Vertex AI 聊天模型进行对话 代理

🌐 Use the Google Vertex AI Chat Model node to use Google's Vertex AI chat models with conversational agents.

本页提供 Google Vertex AI Chat Model 节点的参数以及更多资源的链接。

🌐 On this page, you'll find the node parameters for the Google Vertex AI Chat Model node, and links to more resources.

凭证

你可以在此处找到此节点的认证信息。

Parameter resolution in sub-nodes

Sub-nodes behave differently to other nodes when processing multiple items using an expression.

Most nodes, including root nodes, take any number of items as input, process these items, and output the results. You can use expressions to refer to input items, and the node resolves the expression for each item in turn. For example, given an input of five name values, the expression {{ $json.name }} resolves to each name in turn.

In sub-nodes, the expression always resolves to the first item. For example, given an input of five name values, the expression {{ $json.name }} always resolves to the first name.

节点参数(Node parameters)#

  • 项目ID:从你的 Google Cloud 账户中选择要使用的项目ID。n8n 会动态加载 Google Cloud 账户中的项目,但你也可以手动输入。
  • 模型名称:选择用于生成完成内容的模型名称,例如 gemini-1.5-flash-001gemini-1.5-pro-001 等。有关可用模型的列表,请参阅 Google 模型

节点选项(Node options)#

  • 最大令牌数:输入使用的最大令牌数,这将设置完成的长度。
  • 采样温度:使用此选项来控制采样过程的随机性。较高的温度会产生更为多样化的采样,但也会增加出现偏差的风险。
  • 思考预算:控制思考模型的推断令牌。设置为 0 可禁用自动思考。设置为 -1 可启用动态思考。留空则为自动模式。
  • Top K:输入模型用于生成下一个标记的标记选择数量。
  • Top P:使用此选项设置完成时应使用的概率。使用较低的值可以忽略不太可能的选项。
  • 安全设置:Gemini 支持可调节的安全设置。有关可用过滤器和级别的信息,请参考 Google 的 Gemini API 安全设置

模板和示例(Templates and examples)#

Template widget placeholder.

有关该服务的更多信息,请参阅 LangChain 的 Google Vertex AI 文档

🌐 Refer to LangChain's Google Vertex AI documentation for more information about the service.

View n8n's Advanced AI documentation.