mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-11 07:06:28 +08:00
feat: bump deps (#14484)
This commit is contained in:
@@ -19,9 +19,7 @@ export const createExaCrawlTool = (config: Config) => {
|
||||
const exa = new Exa(key);
|
||||
const result = await exa.getContents([url], {
|
||||
livecrawl: 'always',
|
||||
text: {
|
||||
maxCharacters: 100000,
|
||||
},
|
||||
text: { maxCharacters: 100000 },
|
||||
});
|
||||
return result.results.map(data => ({
|
||||
title: data.title,
|
||||
|
||||
@@ -18,10 +18,12 @@ export const createExaSearchTool = (config: Config) => {
|
||||
try {
|
||||
const { key } = config.copilot.exa;
|
||||
const exa = new Exa(key);
|
||||
const result = await exa.searchAndContents(query, {
|
||||
const result = await exa.search(query, {
|
||||
contents: {
|
||||
summary: true,
|
||||
livecrawl: mode === 'MUST' ? 'always' : undefined,
|
||||
},
|
||||
numResults: 10,
|
||||
summary: true,
|
||||
livecrawl: mode === 'MUST' ? 'always' : undefined,
|
||||
});
|
||||
return result.results.map(data => ({
|
||||
title: data.title,
|
||||
|
||||
Reference in New Issue
Block a user