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)
| @@ -406,7 +406,7 @@ export class ReasoningHandler { | |||
| 406 | * Keeps track of the number of reasoning additions. | 406 | * Keeps track of the number of reasoning additions. |
| 407 | */ | 407 | */ |
| 408 | export class PromptReasoning { | 408 | export class PromptReasoning { |
| 409 | static REASONING_UI_PLACEHOLDER = '\u200B'; | 409 | static REASONING_PLACEHOLDER = '\u200B'; |
| 410 | 410 | ||
| 411 | constructor() { | 411 | constructor() { |
| 412 | this.counter = 0; | 412 | this.counter = 0; |
| @@ -437,8 +437,8 @@ export class PromptReasoning { | |||
| 437 | return content; | 437 | return content; |
| 438 | } | 438 | } |
| 439 | 439 | ||
| 440 | // No reasoning provided | 440 | // No reasoning provided or a legacy placeholder |
| 441 | if (!reasoning) { | 441 | if (!reasoning || reasoning === PromptReasoning.REASONING_PLACEHOLDER) { |
| 442 | return content; | 442 | return content; |
| 443 | } | 443 | } |
| 444 | 444 | ||