fix(assistant): citedSources stays inside the Responses client

This commit is contained in:
Maurice
2026-10-23 18:15:02 +02:00
parent 88e6f332d3
commit a94464a953
@@ -110,7 +110,7 @@ function toolsOf(request: AiChatRequest, kind: AiConnectionKind): Record<string,
}
/** The pages an output message cites, as its text's URL annotations name them. */
export function citedSources(item: Record<string, unknown>): AiSource[] {
function citedSources(item: Record<string, unknown>): AiSource[] {
if (item.type !== 'message' || !Array.isArray(item.content)) return [];
return item.content.flatMap((part: unknown) => {
const annotations = asRecord(part).annotations;