Removendo blocos <think> do output de chat
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 67 KiB |
@@ -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');
|
||||||
|
|||||||
Reference in New Issue
Block a user