Mistral 云聊天模型节点#
¥Mistral Cloud Chat Model node
使用 Mistral Cloud Chat Model 节点将 Mistral Cloud 的聊天模型与对话式 agents 相结合。
¥Use the Mistral Cloud Chat Model node to combine Mistral Cloud's chat models with conversational agents.
本页包含 Mistral 云聊天模型节点的节点参数以及更多资源的链接。
¥On this page, you'll find the node parameters for the Mistral Cloud 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
- 模型:选择用于生成补全的模型。n8n 会动态加载来自 Mistral Cloud 的模型,你只会看到你账户可用的模型。
¥Model: Select the model to use to generate the completion. n8n dynamically loads models from Mistral Cloud and you'll only see the models available to your account.
节点选项#
¥Node options
- 最大令牌数:请输入使用的最大令牌数,这将设置完成时长。
¥Maximum Number of Tokens: Enter the maximum number of tokens used, which sets the completion length.
- 采样温度:使用此选项可控制采样过程的随机性。更高的温度会产生更多样化的采样,但会增加出现幻觉的风险。
¥Sampling Temperature: Use this option to control the randomness of the sampling process. A higher temperature creates more diverse sampling, but increases the risk of hallucinations.
- 超时:请输入最大请求时间(以毫秒为单位)。
¥Timeout: Enter the maximum request time in milliseconds.
- 最大重试次数:请输入请求重试的最大次数。
¥Max Retries: Enter the maximum number of times to retry a request.
- 顶部 P:使用此选项可设置完成概率。使用较低的值来忽略可能性较小的选项。
¥Top P: Use this option to set the probability the completion should use. Use a lower value to ignore less probable options.
- 启用安全模式:通过在完成操作开始时注入安全提示来启用安全模式。这有助于防止模型生成冒犯性内容。
¥Enable Safe Mode: Enable safe mode by injecting a safety prompt at the beginning of the completion. This helps prevent the model from generating offensive content.
- 随机种子:输入用于随机抽样的种子。如果设置,不同的调用将生成确定性的结果。
¥Random Seed: Enter a seed to use for random sampling. If set, different calls will generate deterministic results.
模板和示例#
¥Templates and examples
相关资源#
¥Related resources
有关服务的更多信息,请参阅 LangChains 的 Mistral 文档。
¥Refer to LangChains's Mistral documentation for more information about the service.
View n8n's Advanced AI documentation.