Skip to content

月球射击 Kimi 聊天模型节点(Moonshot Kimi Chat Model node)#

使用 Moonshot Kimi 聊天模型节点向 Kimi 聊天 API 发送聊天请求并生成对话响应。当你在工作流程中需要 AI 聊天模型时使用它。例如,你可以用它为助手提供支持、构建多步骤的 AI 链,或使用可调采样和令牌设置生成模型驱动的内容。

🌐 Use the Moonshot Kimi Chat Model node to send chat requests to the Kimi chat API and generate conversational responses. Use it when you need an AI chat model in a workflow. For example, you can power assistants, build multi-step AI chains, or produce model-driven content with tunable sampling and token settings.

凭证

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

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.

操作(Operations)#

生成聊天回复(Generate chat response)#

向所选的 Kimi 模型发送聊天请求并返回模型的响应。

🌐 Sends a chat request to the selected Kimi model and returns the model's response.

参数

  • 模型(类型:选项,字段:model):生成完成内容的模型。默认值:kimi-k2.5。在 Moonshot Kimi Chat API 文档 了解更多信息。

选项

  • 频率惩罚(类型:数字,字段:frequencyPenalty):正值会根据新令牌的现有频率进行惩罚,从而减少模型重复。默认值:0
  • 最大令牌数(类型:数字,字段:maxTokens):在完成中生成的最大令牌数。值为 -1 表示使用模型默认值。令牌限制取决于所选模型。默认值:-1
  • 响应格式(类型:选项,字段:responseFormat):模型响应的格式。默认值:text
  • 存在惩罚(类型:数字,字段:presencePenalty):正值会根据新生成的词是否在已有文本中出现来进行惩罚,从而增加模型讨论新话题的可能性。默认值:0
  • 采样温度(类型:数字,字段:temperature):控制随机性。较低的数值会使输出更不随机;接近零时模型会变得更确定性。默认值:0.7
  • 超时(类型:数字,字段:timeout):请求可以花费的最长时间,单位为毫秒。默认值:360000(六分钟)。
  • 最大重试次数(类型:数字,字段:maxRetries):对失败请求尝试的最大重试次数。默认值:二。
  • Top P(类型:数字,字段:topP):控制多样性的核采样参数。值为0.5表示模型会考虑一半的按概率加权的选项。我们建议只更改 Top P采样温度 中的一项,不要同时更改。默认值:1

模板和示例(Templates and examples)#

Template widget placeholder.

有关该服务和可用模型选项的更多信息,请参阅 Moonshot Kimi 聊天模型文档

🌐 Refer to Moonshot Kimi Chat Model's documentation for more information about the service and available model options.