fix: use correct Exa API parameters (urls instead of ids)

This commit is contained in:
Louis Walsh 2026-01-26 16:33:39 -08:00
parent 4ad28bb60c
commit b5a6445881

View File

@ -393,11 +393,16 @@ export async function fetchExaContent(params: {
status?: number;
}> {
const body: Record<string, unknown> = {
ids: [params.url],
urls: [params.url],
};
if (params.contents) {
body.text = { maxCharacters: params.maxChars };
body.text = {
maxCharacters: params.maxChars,
includeHtmlTags: false,
};
} else {
body.text = false;
}
const res = await fetch(EXA_CONTENTS_ENDPOINT, {