Prompt Benchmark List Chat View
PBListChatView Turns Ollama's Chat History Into Text You Can Actually Read
- chat
- text
If you've wired up PBTextModelChat and then stared at its chat output wondering where the conversation went, this is the node you were missing. The chat output is a custom CHAT type - it holds the session's messages, but a plain Show Text node won't render it. PBListChatView is the display end of the Prompt Bench loop: feed it the chat, and it turns the whole session into a readable transcript right in the node's widget.
What it does
It's a pure formatter. The node walks every message in the chat, uppercases the role, and lays each one out as a block:
### USER ###
Previous Prompt:
a red fox in a snowy forest
Rating:
...
### ASSISTANT ###
A red fox with a thick winter coat stands in a snowy pine forest...
Empty sessions don't blow up - you just get (Empty Chat). The bundled frontend script (in the pack's web/ folder) makes the text widget read-only, fills it after every execution, and auto-sizes the node so you don't end up squinting at a two-line box. It's an output node, which is ComfyUI's way of saying "this is the end of the line" - the whole point is to show you the history on the canvas.
The inputs that matter
Only two, and you only set one of them:
- chat (
CHAT) - required. Wire this to thechatoutput of PBTextModelChat. That's the entire job. - text (
STRING) - this is "Latest rendered chat text." The frontend writes the formatted transcript into it for you. You don't type in it; leave it alone.
Output: text (STRING) - the formatted transcript. The useful trick: that same string can be wired onward, e.g. into PBStore's text input, so you archive the conversation rather than just looking at it.
Install
Same as the rest of the pack - this ships inside comfyui_prompt_bench, not on its own. In ComfyUI Manager search "Prompt Bench" and install, or clone it manually:
cd ComfyUI/custom_nodes
git clone https://github.com/inflamously/comfyui_prompt_bench
Then restart ComfyUI. No pip packages, no model downloads - the pack uses only the standard library plus ComfyUI's own aiohttp. Note this node doesn't talk to Ollama at all, so it works even if your Ollama server is down.
Gotchas
- Chat memory is in-memory. A restart of ComfyUI wipes every session, so if you get
(Empty Chat)after a restart, that's expected - the conversation is gone, not broken. - Don't expect to wire
chatinto arbitrary text nodes.CHATis a custom type; the format-aware node is this one. - If you changed
session_seedon PBTextModelChat, the chat you see here is the new session, not the old thread. That's the seed working as designed.
It's a small, single-purpose node - the kind you use without thinking once it's in the workflow. If you're running Prompt Bench at all, this is the bit that makes the loop feel like an actual conversation instead of a black box.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| chat | CHAT | — | |
| text | STRING | Latest rendered chat text. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |