Files
cherry-studio/packages/aiCore/setupVitest.ts
T
MyPrototypeWhat c9c0616c91 feat(provider): enhance provider registration and validation system
- 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.
2025-08-18 19:41:43 +08:00

3 lines
148 B
TypeScript

// 模拟 Vite SSR helper,避免 Node 环境找不到时报错
;(globalThis as any).__vite_ssr_exportName__ = (name: string, value: any) => value