Enhance ExifUtils to extract prompts from node references in workflows

- Updated the logic in ExifUtils to first identify KSampler nodes and store references to positive and negative prompt nodes.
- Added a helper function to follow these references and extract text content from CLIP Text Encode nodes.
- Implemented a fallback mechanism to extract prompts using traditional methods if references are not available.
- Improved code readability with additional comments and structured handling of node data.
This commit is contained in:
Will Miao
2025-03-21 11:32:51 +08:00
parent 4ee32f02c5
commit d4f300645d
2 changed files with 72 additions and 13 deletions

1
refs/prompt.json Normal file

File diff suppressed because one or more lines are too long