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)

c2377f0c13d54d0c530aaefccacf517c7d993bc0

Wolfsblvt <wolfsblvt@gmail.com>

1 files changed, +3 -3Showing whitespace changes
public/scripts/reasoning.js+3 -3
@@ -406,7 +406,7 @@ export class ReasoningHandler {
406406 * Keeps track of the number of reasoning additions.
407407 */
408408export class PromptReasoning {
409409 static REASONING_UI_PLACEHOLDERREASONING_PLACEHOLDER = '\u200B';
410410
411411 constructor() {
412412 this.counter = 0;
@@ -437,8 +437,8 @@ export class PromptReasoning {
437437 return content;
438438 }
439439
440440 // No reasoning provided or a legacy placeholder
441441 if (!reasoning || reasoning === PromptReasoning.REASONING_PLACEHOLDER) {
442442 return content;
443443 }
444444