mirror of
https://github.com/jina-ai/node-DeepResearch.git
synced 2025-12-26 06:28:56 +08:00
fix: handle undefined answer in buildMdFromAnswer
This commit is contained in:
parent
630f685cb6
commit
0922c64022
@ -6,7 +6,7 @@ import { logInfo, logError, logDebug, logWarning } from '../logging';
|
||||
|
||||
|
||||
export function buildMdFromAnswer(answer: AnswerAction): string {
|
||||
return repairMarkdownFootnotes(answer.answer, answer.references);
|
||||
return repairMarkdownFootnotes(answer.answer || answer.mdAnswer || '', answer.references);
|
||||
}
|
||||
|
||||
export function repairMarkdownFootnotes(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user