feat(web-search): add ollama web search provider support #907

This commit is contained in:
Jhao
2026-04-09 21:20:31 +08:00
committed by lyingbug
parent bfa3341d4a
commit fd18264183
8 changed files with 200 additions and 12 deletions
+1
View File
@@ -47,6 +47,7 @@ export interface CustomAgentConfig {
// ===== 网络搜索设置 =====
web_search_enabled?: boolean;
web_search_provider_id?: string;
web_search_max_results?: number;
// ===== 多轮对话设置 =====
+1 -1
View File
@@ -5,7 +5,7 @@ export interface WebSearchProviderEntity {
id?: string
tenant_id?: number
name: string
provider: 'bing' | 'google' | 'duckduckgo' | 'tavily'
provider: 'bing' | 'google' | 'duckduckgo' | 'tavily' | 'ollama'
description?: string
parameters: {
api_key?: string