Split if condition

9250be348de9d275c94ff21971982747e3f466bc

Cohee <18619528+Cohee1207@users.noreply.github.com>

1 files changed, +3 -1Showing whitespace changes
public/script.js+3 -1
@@ -3198,11 +3198,13 @@ class StreamingProcessor {
3198 chat[messageId]['extra'] = {};3198 chat[messageId]['extra'] = {};
3199 }3199 }
32003200
3201 if (this.reasoning && this.messageReasoningDom instanceof HTMLElement) {3201 if (this.reasoning) {
3202 chat[messageId]['extra']['reasoning'] = this.reasoning;3202 chat[messageId]['extra']['reasoning'] = this.reasoning;
3203 if (this.messageReasoningDom instanceof HTMLElement) {
3203 const formattedReasoning = messageFormatting(this.reasoning, '', false, false, -1);3204 const formattedReasoning = messageFormatting(this.reasoning, '', false, false, -1);
3204 this.messageReasoningDom.innerHTML = formattedReasoning;3205 this.messageReasoningDom.innerHTML = formattedReasoning;
3205 }3206 }
3207 }
32063208
3207 if (currentTokenCount) {3209 if (currentTokenCount) {
3208 chat[messageId]['extra']['token_count'] = currentTokenCount;3210 chat[messageId]['extra']['token_count'] = currentTokenCount;