Removendo blocos <think> do output de chat

This commit is contained in:
2026-06-05 13:22:32 +00:00
parent 4996145995
commit 0456617717
2 changed files with 3 additions and 0 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

+3
View File
@@ -2151,6 +2151,9 @@ const initApp = () => {
progressTimer = null; progressTimer = null;
} }
// Remover blocos <think> nativos de modelos de reasoning antes de renderizar e extrair conhecimento
assistantContent = assistantContent.replace(/<think>[\s\S]*?(?:<\/think>|$)/g, '').trim();
// Parse final limpo do markdown (se for texto normal) // Parse final limpo do markdown (se for texto normal)
if (!isMediaResponse) { if (!isMediaResponse) {
const stepTextEl = botContentDiv.querySelector('#iaProgressStepText'); const stepTextEl = botContentDiv.querySelector('#iaProgressStepText');