mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-28 21:42:27 +08:00
- Added @cherry-studio/ai-core as a workspace dependency in package.json for improved modularity. - Updated tsconfig to include paths for the new AI core package, enhancing type resolution. - Refactored aiCore package to use source files directly, improving build efficiency. - Introduced a new AiSdkToChunkAdapter for converting AI SDK streams to Cherry Studio chunk format. - Implemented a modernized AI provider interface in index_new.ts, allowing fallback to legacy implementations. - Enhanced parameter transformation logic for better integration with AI SDK features. - Updated ApiService to utilize the new AI provider, streamlining chat completion requests.
23 lines
577 B
JSON
23 lines
577 B
JSON
{
|
|
"extends": "@electron-toolkit/tsconfig/tsconfig.web.json",
|
|
"include": [
|
|
"src/renderer/src/**/*",
|
|
"src/preload/*.d.ts",
|
|
"local/src/renderer/**/*",
|
|
"packages/shared/**/*",
|
|
"packages/aiCore/src/**/*"
|
|
],
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
"jsx": "react-jsx",
|
|
"baseUrl": ".",
|
|
"moduleResolution": "bundler",
|
|
"paths": {
|
|
"@renderer/*": ["src/renderer/src/*"],
|
|
"@shared/*": ["packages/shared/*"],
|
|
"@types": ["src/renderer/src/types/index.ts"],
|
|
"@cherry-studio/ai-core": ["packages/aiCore/src/"]
|
|
}
|
|
}
|
|
}
|