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
@@ -5245,6 +5245,7 @@ const PROVIDER_ICONS: Record<string, LucideIcon> = {
ant_ling: Sparkles,
azure_openai: Cloud,
bedrock: Database,
bocha: Search,
brave: Search,
duckduckgo: Search,
exa: Search,
+1
View File
@@ -117,6 +117,7 @@ const PROVIDER_BRANDS: Record<string, ProviderBrand> = {
atomic_chat: brand("atomic.chat", "#111827", "AC"),
azure_openai: brand("azure.microsoft.com", "#0078D4", "AZ"),
bedrock: brand("aws.amazon.com", "#FF9900", "AWS"),
bocha: brand("bochaai.com", "#2563EB", "B"),
brave: brand("brave.com", "#FB542B", "B"),
byteplus: brand("byteplus.com", "#325CFF", "BP"),
dashscope: brand("dashscope.aliyun.com", "#FF6A00", "DS"),
+5
View File
@@ -52,4 +52,9 @@ describe("provider brand logos", () => {
expect(providerBrand("assemblyai")?.logoUrls).toContain("https://assemblyai.com/favicon.ico");
expect(providerBrand("assemblyai")?.initials).toBe("AA");
});
it("keeps Bocha web search settings on the first-party brand domain", () => {
expect(providerBrand("bocha")?.logoUrls).toContain("https://bochaai.com/favicon.ico");
expect(providerBrand("bocha")?.initials).toBe("B");
});
});