[PR #368] [MERGED] FIX: Token Counter TypeError (v2: Handle cond_stage_model is None) #361

Closed
opened 2026-11-07 17:43:46 +07:00 by bsakaguchi · 0 comments
Owner

📋 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)

  • b49e275 FIX: 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.

## 📋 Pull Request Information **Original PR:** https://github.com/Physton/sd-webui-prompt-all-in-one/pull/368 **Author:** [@neon-aiart](https://github.com/neon-aiart) **Created:** 11/15/2025 **Status:** ✅ Merged **Merged:** 11/15/2025 **Merged by:** [@Physton](https://github.com/Physton) **Base:** `main` ← **Head:** `fix/token-counter-nonetype` --- ### 📝 Commits (1) - [`b49e275`](https://github.com/Physton/sd-webui-prompt-all-in-one/commit/b49e275eb0fa41c121ca56ca49ac3799503378e7) FIX: Prevent TypeError in token counter during model switching (v2) ### 📊 Changes **1 file changed** (+4 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `scripts/physton_prompt/get_token_counter.py` (+4 -2) </details> ### 📄 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-07 17:43:46 +07:00
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Physton/sd-webui-prompt-all-in-one#361
No description provided.