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
+8
View File
@@ -18,6 +18,7 @@ const (
WebSearchProviderTypeGoogle WebSearchProviderType = "google"
WebSearchProviderTypeDuckDuckGo WebSearchProviderType = "duckduckgo"
WebSearchProviderTypeTavily WebSearchProviderType = "tavily"
WebSearchProviderTypeOllama WebSearchProviderType = "ollama"
)
// WebSearchProviderEntity represents a configured web search provider instance for a tenant.
@@ -153,5 +154,12 @@ func GetWebSearchProviderTypes() []WebSearchProviderTypeInfo {
Description: "Tavily Search API (requires API key)",
DocsURL: "https://tavily.com/",
},
{
ID: "ollama",
Name: "Ollama Web Search",
RequiresAPIKey: true,
Description: "Ollama Cloud web search (requires Ollama API key)",
DocsURL: "https://docs.ollama.com/capabilities/web-search",
},
}
}