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
+2 -2
View File
@@ -1,5 +1,5 @@
import { fetchEventSource } from '@microsoft/fetch-event-source'
import { ref, type Ref, onUnmounted, nextTick } from 'vue'
import { fetchEventSource } from '@microsoft/fetch-event-source';
import { ref, onUnmounted } from 'vue';
import { generateRandomString } from '@/utils/index';
import i18n from '@/i18n';
import { getApiBaseUrl } from '@/utils/api-base';
+1 -1
View File
@@ -5,7 +5,7 @@ export interface WebSearchProviderEntity {
id?: string
tenant_id?: number
name: string
provider: 'bing' | 'google' | 'duckduckgo' | 'tavily' | 'ollama'
provider: 'bing' | 'google' | 'duckduckgo' | 'tavily' | 'ollama' | 'baidu'
description?: string
parameters: {
api_key?: string