From 4bfff85dc8820dfdfb4c891a6ac9472c2e288f7e Mon Sep 17 00:00:00 2001 From: MyPrototypeWhat Date: Tue, 8 Jul 2025 15:24:46 +0800 Subject: [PATCH] feat: enhance web search plugin configuration - Added `sources` array to the default web search configuration, allowing for multiple source types including 'web', 'x', and 'news'. - This update improves the flexibility and functionality of the web search plugin. --- .../aiCore/src/core/plugins/built-in/webSearchPlugin/helper.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/aiCore/src/core/plugins/built-in/webSearchPlugin/helper.ts b/packages/aiCore/src/core/plugins/built-in/webSearchPlugin/helper.ts index a06a51449a..2b03777271 100644 --- a/packages/aiCore/src/core/plugins/built-in/webSearchPlugin/helper.ts +++ b/packages/aiCore/src/core/plugins/built-in/webSearchPlugin/helper.ts @@ -47,7 +47,8 @@ export const DEFAULT_WEB_SEARCH_CONFIG: WebSearchPluginConfig = { xai: { mode: 'on', returnCitations: true, - maxSearchResults: 5 + maxSearchResults: 5, + sources: [{ type: 'web' }, { type: 'x' }, { type: 'news' }] }, anthropic: { maxUses: 5