search: add Bocha web search provider

This commit is contained in:
Moran
2026-06-10 15:51:15 +08:00
committed by Xubin Ren
parent ce887772e9
commit 9c492143b4
8 changed files with 153 additions and 1 deletions
+1
View File
@@ -1700,6 +1700,7 @@ async def test_settings_api_returns_safe_subset_and_updates_whitelist(
search_providers = {provider["name"]: provider for provider in body["web_search"]["providers"]}
assert search_providers["duckduckgo"]["credential"] == "none"
assert search_providers["exa"]["credential"] == "api_key"
assert search_providers["bocha"]["credential"] == "api_key"
assert search_providers["volcengine"]["credential"] == "api_key"
assert search_providers["searxng"]["credential"] == "base_url"
assert body["image_generation"]["enabled"] is False