Something went wrong. Try again.
This repository has no description
Something went wrong. Try again.
123456789101112// Keep old answers linked to the references supplied when they were generated.export function messageSources(message, fallback = []) { const citations = message.citations?.filter((citation) => citation.source) || []; if (!citations.length) return fallback; const sources = []; for (const citation of citations) { sources[citation.source - 1] = { title: citation.label, url: citation.url }; } return sources;}