mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-01 08:15:44 +08:00
Fix: Remove duplicate text output from the thought model on the chat page. (#14301)
### What problem does this PR solve? Fix: Remove duplicate text output from the thought model on the chat page. ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@@ -275,7 +275,7 @@ export const useSendMessageWithSse = () => {
|
||||
if (typeof d !== 'boolean') {
|
||||
setAnswer((prev) => {
|
||||
const prevAnswer = prev.answer || '';
|
||||
const currentAnswer = d.answer || '';
|
||||
const currentAnswer = d.final ? '' : d.answer || '';
|
||||
|
||||
let newAnswer: string;
|
||||
if (prevAnswer && currentAnswer.startsWith(prevAnswer)) {
|
||||
|
||||
Reference in New Issue
Block a user