From 0ea9c6fc9fa829234ff225f940bef67c048e4212 Mon Sep 17 00:00:00 2001 From: Metona Date: Fri, 17 Apr 2026 09:02:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20web=5Fsearch=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E6=95=B0=208=20=E2=86=92=2015?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/tool-handlers.ts | 2 +- src/renderer/services/tool-registry.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/tool-handlers.ts b/src/main/tool-handlers.ts index 2b90d91..2a8370b 100644 --- a/src/main/tool-handlers.ts +++ b/src/main/tool-handlers.ts @@ -495,7 +495,7 @@ export async function handleWebSearch(params: { query: string; max_results?: num return { success: false, error: '搜索关键词不能为空' }; } - const maxResults = Math.min(params.max_results || 8, 10); + const maxResults = Math.min(params.max_results || 15, 15); sendLog('info', `🔍 web_search`, `"${query}" (${maxResults} 条)`); diff --git a/src/renderer/services/tool-registry.ts b/src/renderer/services/tool-registry.ts index 5cb2700..218d13a 100644 --- a/src/renderer/services/tool-registry.ts +++ b/src/renderer/services/tool-registry.ts @@ -346,7 +346,7 @@ export const TOOL_DEFINITIONS: ToolDefinition[] = [ required: ['query'], properties: { query: { type: 'string', description: 'The search query. Be specific and concise for best results.' }, - max_results: { type: 'integer', description: 'Maximum number of results to return. Default: 8, max: 10.' } + max_results: { type: 'integer', description: 'Maximum number of results to return. Default: 15, max: 15.' } } } }