fix: use correct Exa API parameters (urls instead of ids)
This commit is contained in:
parent
4ad28bb60c
commit
b5a6445881
@ -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, {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user