mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-05-24 16:07:30 +08:00
docs(assets): trim docstring to what enrichment does, not what it doesn't
This commit is contained in:
parent
1bdd0d3ff2
commit
4922875fe0
@ -4,12 +4,7 @@ import os
|
||||
|
||||
|
||||
def enrich_output_with_assets(output_ui: dict) -> dict:
|
||||
"""Inject asset id into file-type output entries when --enable-assets is set.
|
||||
|
||||
Only ``id`` is added — the WebSocket payload carries just enough for the
|
||||
client to fetch the full asset via GET /api/assets/{id}. hash, name,
|
||||
preview_url, and size are intentionally omitted: hash is already encoded
|
||||
in the filename; the rest require an explicit API call.
|
||||
"""Inject asset ``id`` into file-type output entries when --enable-assets is set.
|
||||
|
||||
Returns a new dict; entries without a resolvable on-disk file path are left
|
||||
unchanged. Errors are caught per-entry so a failure never blocks the WS
|
||||
|
||||
Loading…
Reference in New Issue
Block a user