Skip to content

Commit

Permalink
fix: remove references tag in output
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Feb 14, 2025
1 parent 013ad35 commit 63a9bb9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,13 @@ function buildMdFromAnswer(answer: AnswerAction) {
return `[^${i + 1}]: [${escapedQuote}](${ref.url})`;
}).join('\n\n');

return `${answer.answer.replace(/\(REF_(\d+)\)/g, (_, num) => `[^${num}]`)}
return `
${answer.answer.replace(/\(REF_(\d+)\)/g, (_, num) => `[^${num}]`)}
<references>
${references}
</references>`;
`.trim();
}

async function* streamTextNaturally(text: string, streamingState: StreamingState) {
Expand Down

0 comments on commit 63a9bb9

Please sign in to comment.