Yizuki_Ame 47cc2a510c
feat: add Brave Search and Baidu Search integration
Add Brave Search and Baidu Search providers with Baidu sub-source support, provider configuration updates, tests, and docs links.
2026-05-13 20:28:56 +08:00

10 lines
232 B
TypeScript

/**
* Shared utilities for web search providers.
*/
export const MAX_WEB_SEARCH_QUERY_LENGTH = 400;
export function normalizeWebSearchQuery(query: string): string {
return query.trim().slice(0, MAX_WEB_SEARCH_QUERY_LENGTH);
}