From d495b96f4b065305f601d0146989f0ac4a6278d6 Mon Sep 17 00:00:00 2001 From: thzxx Date: Fri, 12 Jun 2026 13:03:42 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20web=5Fsearch=20=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E7=BB=93=E6=9E=9C=E6=95=B0=2015=E2=86=9230?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/tool-handlers-system.ts | 2 +- src/renderer/services/tool-registry.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/tool-handlers-system.ts b/src/main/tool-handlers-system.ts index 8f60288..843c7d7 100644 --- a/src/main/tool-handlers-system.ts +++ b/src/main/tool-handlers-system.ts @@ -575,7 +575,7 @@ export async function handleWebSearch(params: { query: string; max_results?: num return { success: false, error: '搜索关键词不能为空' }; } - const maxResults = Math.min(params.max_results || 15, 20); + const maxResults = Math.min(params.max_results || 30, 30); const timeRange = params.time_range || ''; const enhanceSnippets = params.enhance_snippets !== false; // 默认开启 diff --git a/src/renderer/services/tool-registry.ts b/src/renderer/services/tool-registry.ts index a65fe39..c11a992 100644 --- a/src/renderer/services/tool-registry.ts +++ b/src/renderer/services/tool-registry.ts @@ -342,7 +342,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: 15, max: 20.' }, + max_results: { type: 'integer', description: 'Maximum number of results to return. Default: 30, max: 30.' }, time_range: { type: 'string', enum: ['day', 'week', 'month', 'year'], description: 'Filter results by time. Supported by Bing and Google. Use for recent news, latest version, etc.' }, enhance_snippets: { type: 'boolean', description: 'Auto-fetch detailed snippet for results with too-short descriptions. Default: true.' } }