MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / appendSources

Function appendSources

ai/ai.ts:1963–1969  ·  view source on GitHub ↗
(entries: Array<{ url: string; title?: string }>)

Source from the content-addressed store, hash-verified

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

Callers 3

aggregateOpenAIResponsesFunction · 0.85
appendItemFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected