Removendo blocos <think> do output de chat
This commit is contained in:
@@ -2151,6 +2151,9 @@ const initApp = () => {
|
||||
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)
|
||||
if (!isMediaResponse) {
|
||||
const stepTextEl = botContentDiv.querySelector('#iaProgressStepText');
|
||||
|
||||
Reference in New Issue
Block a user