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

This commit is contained in:
Jhao
2026-04-12 15:58:42 +08:00
committed by lyingbug
parent b54b6d1923
commit 45ad36845e
6 changed files with 282 additions and 4 deletions
+8
View File
@@ -19,6 +19,7 @@ const (
WebSearchProviderTypeDuckDuckGo WebSearchProviderType = "duckduckgo"
WebSearchProviderTypeTavily WebSearchProviderType = "tavily"
WebSearchProviderTypeOllama WebSearchProviderType = "ollama"
WebSearchProviderTypeBaidu WebSearchProviderType = "baidu"
)
// WebSearchProviderEntity represents a configured web search provider instance for a tenant.
@@ -161,5 +162,12 @@ func GetWebSearchProviderTypes() []WebSearchProviderTypeInfo {
Description: "Ollama Cloud web search (requires Ollama API key)",
DocsURL: "https://docs.ollama.com/capabilities/web-search",
},
{
ID: "baidu",
Name: "Baidu",
RequiresAPIKey: true,
Description: "Baidu AI Search (requires API key from Baidu Cloud)",
DocsURL: "https://cloud.baidu.com/doc/AppBuilder/s/qlvEcai0p",
},
}
}