> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# HeyGen 决策（选择） - ComfyUI Built-in Node Documentation

> 从你自己提供的选项中，为你所连接的文字、图像、音频或视频挑选一项，并返回所选选项、其位置和置信度。

从你自己提供的选项中，为你所连接的文字、图像、音频或视频挑选一项，并返回所选选项、其位置和置信度。将 `choice` 连接到 Branch 节点，该节点的输入携带相同的选项名称；也可以基于 `option_index` 进行路由。Branch 节点最多接受 32 个输入，因此选项更多时请使用 `option_index` 进行路由。

## 输入

| 参数 | 描述 | 数据类型 | 必填 | 范围 |
| - | - | - | - | - |
| `model` | 要使用的模型。`heygen-decision-1-turbo` 比 `heygen-decision-1` 更快且成本更低（默认：`"heygen-decision-1"`）。 | COMBO | 是 | `"heygen-decision-1"` `"heygen-decision-1-turbo"` |
| `question` | 各选项所要回答的问题，最多 5000 个字符（默认："What style is the image?"）。 | STRING | 是 | 1 到 5000 个字符 |
| `options` | 每行一个选项，按原样使用，每个最多 128 个字符。为不匹配任何选项的输入添加一个类似 `other` 的选项（默认：`photo`、`illustration`、`3d render`、`anime`、`sketch`、`other`）。 | STRING | 是 | 2 到 255 个选项 |
| `images` | 要分类的图像，总共最多 4 张，批次中的每一帧都计入。它们按顺序在各个套接字之间编号为 `image_1` 到 `image_4`。 | IMAGE | 否 | 最多 4 张图像 |
| `audio_1` | 要分类的音频，最长 30 分钟。 | AUDIO | 否 | 最长 30 分钟 |
| `video_1` | 要分类的视频，最长 60 秒。 | VIDEO | 否 | 最长 60 秒 |
| `text` | 问题所涉及的文字，例如提示词或 LLM 回复，最多 20000 个字符。 | STRING | 否 | 最多 20000 个字符 |

请提供 2 到 255 个选项，不得重复，也不得有仅大小写不同的选项，否则节点会报错。至少连接一个要分类的输入，并在问题中用套接字名称指代它们，例如 "Which season is shown in image\_1?"。

## 输出

| 输出名称 | 描述 | 数据类型 |
| - | - | - |
| `choice` | 所选的选项，与 `options` 中书写的内容完全一致。 | STRING |
| `option_index` | 所选选项在 `options` 中的位置，从 0 开始。 | INT |
| `confidence` | 对该选择的置信度，介于 0 和 1 之间。 | FLOAT |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/HeyGenDecisionChoice/zh.md)

***

**Source fingerprint (SHA-256):** `dd21b3b8021b8917e7ee4d120471974634ae6771ff17b0f49e9460f82a2fbe78`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.