feat: bump deps (#14484)

This commit is contained in:
DarkSky
2026-02-21 08:04:18 +08:00
committed by GitHub
parent 186ec5431d
commit 0de1bd0da8
5 changed files with 321 additions and 300 deletions
@@ -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,