fix/replace close think tag from text segment (#5258)

This commit is contained in:
Faisal Amir 2025-06-12 16:33:33 +07:00 committed by GitHub
parent 6300875e19
commit 414a9f0da5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -311,7 +311,10 @@ export const ThreadContent = memo(
/> />
)} )}
<RenderMarkdown content={textSegment} components={linkComponents} /> <RenderMarkdown
content={textSegment.replace('</think>', '')}
components={linkComponents}
/>
{isToolCalls && item.metadata?.tool_calls ? ( {isToolCalls && item.metadata?.tool_calls ? (
<> <>