mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 21:01:32 +08:00
- Introduced a new Zod-based schema for provider validation, improving type safety and consistency. - Added support for dynamic provider IDs and enhanced the provider registration process. - Updated the AiProviderRegistry to utilize the new validation functions, ensuring robust provider management. - Added tests for the provider registry to validate dynamic imports and functionality. - Updated yarn.lock to reflect the latest dependency versions.
3 lines
148 B
TypeScript
3 lines
148 B
TypeScript
// 模拟 Vite SSR helper,避免 Node 环境找不到时报错
|
||
;(globalThis as any).__vite_ssr_exportName__ = (name: string, value: any) => value
|