1
0
mirror of https://github.com/SillyTavern/SillyTavern.git synced 2025-03-27 09:20:22 +01:00

Re-add reasoning placeholder check to prompt build

- Was removed because placeholder is not needed anymore. But for compatibility with old saved chats from staging that might have this, we should keep it for a while (or forever)
This commit is contained in:
Wolfsblvt 2025-02-12 18:43:05 +01:00
parent 48dfee39ae
commit c2377f0c13

@ -406,7 +406,7 @@ export class ReasoningHandler {
* Keeps track of the number of reasoning additions.
*/
export class PromptReasoning {
static REASONING_UI_PLACEHOLDER = '\u200B';
static REASONING_PLACEHOLDER = '\u200B';
constructor() {
this.counter = 0;
@ -437,8 +437,8 @@ export class PromptReasoning {
return content;
}
// No reasoning provided
if (!reasoning) {
// No reasoning provided or a legacy placeholder
if (!reasoning || reasoning === PromptReasoning.REASONING_PLACEHOLDER) {
return content;
}