mirror of
https://github.com/Physton/sd-webui-prompt-all-in-one.git
synced 2026-12-03 18:42:25 +07:00
[PR #368] [MERGED] FIX: Token Counter TypeError (v2: Handle cond_stage_model is None) #361
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Physton/sd-webui-prompt-all-in-one#361
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Physton/sd-webui-prompt-all-in-one/pull/368
Author: @neon-aiart
Created: 11/15/2025
Status: ✅ Merged
Merged: 11/15/2025
Merged by: @Physton
Base:
main← Head:fix/token-counter-nonetype📝 Commits (1)
b49e275FIX: Prevent TypeError in token counter during model switching (v2)📊 Changes
1 file changed (+4 additions, -2 deletions)
View changed files
📝
scripts/physton_prompt/get_token_counter.py(+4 -2)📄 Description
This fix addresses the TypeError in the token counter that occurs during model swapping operations (e.g., XYZ Plot).
It ensures that the required model components are present before token counting begins.
See commit for details.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.