mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 19:28:23 +00:00
fix(citations): parse citations in reasoning content
When only reasoning content exists (no main content), the citations block was not being parsed and removed. Now reasoning content also goes through parseCitations to hide the raw citations block. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
7c21d8f3a6
commit
f1c3f908c9
@ -165,10 +165,12 @@ function MessageContent_({
|
||||
const reasoningContent = extractReasoningContentFromMessage(message);
|
||||
const rawContent = extractContentFromMessage(message);
|
||||
|
||||
// When only reasoning content exists (no main content), also parse citations
|
||||
if (!isLoading && reasoningContent && !rawContent) {
|
||||
const { citations, cleanContent } = parseCitations(reasoningContent);
|
||||
return {
|
||||
citations: [],
|
||||
cleanContent: reasoningContent,
|
||||
citations,
|
||||
cleanContent,
|
||||
uploadedFiles: [],
|
||||
isLoadingCitations: false,
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user