(entries: Array<{ url: string; title?: string }>)
| 1961 | |
| 1962 | const appendSources = (entries: Array<{ url: string; title?: string }>) => { |
| 1963 | for (const entry of entries) { |
| 1964 | if (seenSources.has(entry.url)) continue; |
| 1965 | seenSources.add(entry.url); |
| 1966 | sources.push(entry); |
| 1967 | } |
| 1968 | }; |
| 1969 | |
| 1970 | for (const payload of payloads) { |
| 1971 | const choice = payload?.choices?.[0]; |
| 1972 |
no test coverage detected