mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 06:30:10 +08:00
* feat: add @cherrystudio/ai-sdk-provider package and integrate with CherryIN - Introduced the @cherrystudio/ai-sdk-provider package, providing a CherryIN routing solution for AI SDKs. - Updated configuration files to include the new provider. - Enhanced provider initialization to support CherryIN as a new AI provider. - Added README and documentation for usage instructions. * chore: remove deprecated @ai-sdk/google dependency and clean up package files - Removed the @ai-sdk/google dependency from package.json and yarn.lock as it is no longer needed. - Simplified the createGeminiModel function in index.ts for better readability and maintainability. * feat: update CherryIN provider integration and dependencies - Updated @ai-sdk/anthropic and @ai-sdk/google dependencies to their latest versions in package.json and yarn.lock. - Introduced a new CherryInProvider implementation in cherryin-provider.ts, enhancing support for CherryIN API. - Refactored provider initialization to include CherryIN as a supported provider in schemas.ts and options.ts. - Updated web search plugin to utilize the new CherryIN provider capabilities. - Cleaned up and organized imports across various files for better maintainability. * chore: clean up tsconfig and remove unnecessary nullish coalescing in CherryIn provider - Simplified tsconfig.json by consolidating exclude and include arrays. - Removed nullish coalescing in cherryin-provider.ts for cleaner header handling in model initialization. * fix: remove console.log from webSearchPlugin to clean up code - Eliminated unnecessary console.log statement in the webSearchPlugin to enhance code clarity and maintainability. * fix(i18n): Auto update translations for PR #10715 * chore: update yarn.lock with new package versions and dependencies - Added new versions for @ai-sdk/anthropic, @ai-sdk/google, @ai-sdk/provider-utils, and eventsource-parser. - Updated dependencies and peerDependencies for the newly added packages. * feat: enhance CherryIn provider with chat model support and custom fetch logic - Introduced CherryInOpenAIChatLanguageModel to handle chat-specific configurations. - Updated createChatModel to support CherryIn chat models. - Modified webSearchPlugin to accommodate both 'cherryin' and 'cherryin-chat' provider IDs. - Added 'cherryin-chat' provider ID to schemas and provider configurations. - Adjusted provider factory to correctly set provider ID for chat mode. - Enhanced web search utility to handle CherryIn chat models. * 🐛 fix: resolve cherryin provider lint errors and web search config - Add fetch global variable declaration for ai-sdk-provider in oxlintrc - Fix endpoint_type mapping fallback logic in cherryin provider - Add error handling comment for better code readability * chore(dependencies): update AI SDK packages and patches - Added new versions for @ai-sdk/anthropic, @ai-sdk/google, and @ai-sdk/provider-utils in yarn.lock. - Updated @ai-sdk/openai dependency to use a patch version in package.json. - Included @cherrystudio/ai-sdk-provider as a new dependency in the workspace. * chore(dependencies): update peer dependencies and installation instructions - Removed specific versions of @ai-sdk/anthropic and @ai-sdk/google from package.json and yarn.lock. - Updated peer dependencies in package.json to include @ai-sdk/anthropic, @ai-sdk/google, and @ai-sdk/openai. - Revised installation instructions in README.md to reflect the new dependencies. --------- Co-authored-by: GitHub Action <action@github.com>
39 lines
1.5 KiB
JSON
39 lines
1.5 KiB
JSON
{
|
|
"extends": "@electron-toolkit/tsconfig/tsconfig.web.json",
|
|
"include": [
|
|
"src/renderer/src/**/*",
|
|
"src/preload/*.d.ts",
|
|
"local/src/renderer/**/*",
|
|
"packages/shared/**/*",
|
|
"tests/__mocks__/**/*",
|
|
"packages/mcp-trace/**/*",
|
|
"packages/aiCore/src/**/*",
|
|
"src/main/integration/cherryai/index.js",
|
|
"packages/extension-table-plus/**/*",
|
|
"packages/ai-sdk-provider/**/*"
|
|
],
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
"incremental": true,
|
|
"tsBuildInfoFile": ".tsbuildinfo/tsconfig.web.tsbuildinfo",
|
|
"jsx": "react-jsx",
|
|
"moduleResolution": "bundler",
|
|
"paths": {
|
|
"@logger": ["./src/renderer/src/services/LoggerService"],
|
|
"@renderer/*": ["./src/renderer/src/*"],
|
|
"@shared/*": ["./packages/shared/*"],
|
|
"@types": ["./src/renderer/src/types/index.ts"],
|
|
"@mcp-trace/*": ["./packages/mcp-trace/*"],
|
|
"@cherrystudio/ai-core/provider": ["./packages/aiCore/src/core/providers/index.ts"],
|
|
"@cherrystudio/ai-core/built-in/plugins": ["./packages/aiCore/src/core/plugins/built-in/index.ts"],
|
|
"@cherrystudio/ai-core/*": ["./packages/aiCore/src/*"],
|
|
"@cherrystudio/ai-core": ["./packages/aiCore/src/index.ts"],
|
|
"@cherrystudio/extension-table-plus": ["./packages/extension-table-plus/src/index.ts"],
|
|
"@cherrystudio/ai-sdk-provider": ["./packages/ai-sdk-provider/src/index.ts"]
|
|
},
|
|
"experimentalDecorators": true,
|
|
"emitDecoratorMetadata": true,
|
|
"useDefineForClassFields": true
|
|
}
|
|
}
|