fix: fetch_top改为必传,最低3条,SearXNG和内置引擎统一自动抓取

This commit is contained in:
thzxx
2026-06-12 14:18:58 +08:00
parent c7a184bfa9
commit de54aba1e2
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -582,7 +582,7 @@
582| const maxResults = Math.min(params.max_results || 30, 30);
583| const timeRange = params.time_range || '';
584| const enhanceSnippets = params.enhance_snippets !== false;
585| const fetchTop = Math.min(params.fetch_top || 0, 10);
585| const fetchTop = Math.max(3, Math.min(params.fetch_top || 3, 10));
586|
587| let result: ToolResult;
588|