Clarify TextGenerate docs about model-dependent backend and reasoning output
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Newbie friendliness
- 85/100
- Issue type
- Documentation
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- documentation
Research direction
The issue points to the file zh/built-in-nodes/TextGenerate.mdx and mentions the upstream implementation in comfy_extras/nodes_textgen.py. Start by reading the current documentation file to understand its structure. Then, examine the upstream Python file to see how the TextGenerate node delegates to model methods and handles reasoning outputs. The fix is to add a clarifying note about model-dependent backend and reasoning output, as suggested in the issue body.
Written by the indexing model from the issue text.
Description
Summary
The TextGenerate documentation currently describes the node as using a CLIP model to generate text, but it does not explain that the actual backend depends on the specific model loaded into the clip input and that some models may emit reasoning/thinking content in the generated output.
Problem
The current docs only describe the basic generated_text output and do not mention:
- the node can expose a separate
thinkingoutput - some models use
<think>...</think>style reasoning blocks - the actual inference backend is model-dependent, not a single fixed engine
- the node is a thin wrapper around the connected model's
tokenize(),generate(), anddecode()methods
This makes the behavior confusing for users who see reasoning text in outputs or expect a fixed backend implementation.
Expected behavior
The docs should clarify:
TextGenerateis a wrapper around the connected CLIP/text-generation model- actual inference is delegated to the loaded model backend
- some models support reasoning/thinking output and may emit
<think>...</think>blocks - the node exposes
generated_textandthinkingas separate outputs when applicable - users should not assume all
clipmodels behave the same way
Suggested fix
Update zh/built-in-nodes/TextGenerate.mdx (and likely the English version if maintained) to include a short note under the output section or overview explaining:
TextGeneratedepends on the specific model connected to theclipinput- a model may support reasoning output, which is surfaced via the
thinkingoutput - reasoning blocks may be emitted in the raw response depending on model behavior
Relevant file
zh/built-in-nodes/TextGenerate.mdx- upstream ComfyUI implementation:
comfy_extras/nodes_textgen.py
Possible wording
TextGeneratedoes not implement its own fixed inference engine. It calls the connected CLIP/text-generation model'stokenize(),generate(), anddecode()methods. Depending on the loaded model, it may also emit reasoning/thinking output in a<think>...</think>block or expose a separatethinkingoutput.
Why this matters
This is important for users troubleshooting unexpected reasoning text or confusion about whether the node uses Transformers, llama.cpp, vLLM, or some other backend.
- Dominant language
- MDX
- Stars
- 296
- Forks
- 207
- Avg merge
- 20h 34m
- Merged PRs (30d)
- 187
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Comfy-Org/docs
-
Issue on docsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Comfy-Org/docs#1850 · 1 comment ·
Maintainers usually reply within 1 day
-
Issue on docsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Comfy-Org/docs#1665 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Comfy-Org/docs#1574 · 1 comment ·
Maintainers usually reply within 1 day
-
Issue on docsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
Maintainers usually reply within 1 day
-
Issue on docsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Comfy-Org/docs#996 · 1 comment ·
Maintainers usually reply within 1 day
Similar issues
-
area/docs
Difficulty 1/5 Under an hour Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
area: providers/aws priority: p1 size: S type: documentation
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
finos/open-resource-broker#417 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
inbo/erl-butterflies-2025#26 ·