mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-27 04:31:27 +08:00
- Added a new package `@cherry-studio/ai-core` that provides a unified interface for various AI providers based on the Vercel AI SDK. - Implemented core components including `ApiClientFactory`, `UniversalAiSdkClient`, and a provider registry for dynamic imports. - Included TypeScript support and a lightweight design for improved developer experience. - Documented architecture and usage examples in `AI_SDK_ARCHITECTURE.md` and `README.md`. - Updated `package.json` to include dependencies for supported AI providers. This package aims to streamline the integration of multiple AI providers while ensuring type safety and modularity.
118 lines
2.4 KiB
JSON
118 lines
2.4 KiB
JSON
{
|
|
"name": "@cherry-studio/ai-core",
|
|
"version": "1.0.0",
|
|
"description": "Cherry Studio AI Core - Unified AI Provider Interface Based on Vercel AI SDK",
|
|
"main": "dist/index.js",
|
|
"types": "dist/index.d.ts",
|
|
"scripts": {
|
|
"build": "tsc",
|
|
"dev": "tsc -w",
|
|
"clean": "rm -rf dist"
|
|
},
|
|
"keywords": [
|
|
"ai",
|
|
"sdk",
|
|
"openai",
|
|
"anthropic",
|
|
"google",
|
|
"cherry-studio",
|
|
"vercel-ai-sdk"
|
|
],
|
|
"author": "Cherry Studio",
|
|
"license": "MIT",
|
|
"dependencies": {
|
|
"@ai-sdk/amazon-bedrock": "^2.2.10",
|
|
"@ai-sdk/anthropic": "^1.2.12",
|
|
"@ai-sdk/azure": "^1.3.23",
|
|
"@ai-sdk/cerebras": "^0.2.14",
|
|
"@ai-sdk/cohere": "^1.2.10",
|
|
"@ai-sdk/deepinfra": "^0.2.15",
|
|
"@ai-sdk/deepseek": "^0.2.14",
|
|
"@ai-sdk/fal": "^0.1.12",
|
|
"@ai-sdk/fireworks": "^0.2.14",
|
|
"@ai-sdk/google": "^1.2.19",
|
|
"@ai-sdk/google-vertex": "^2.2.24",
|
|
"@ai-sdk/groq": "^1.2.9",
|
|
"@ai-sdk/mistral": "^1.2.8",
|
|
"@ai-sdk/openai": "^1.3.22",
|
|
"@ai-sdk/perplexity": "^1.1.9",
|
|
"@ai-sdk/replicate": "^0.2.8",
|
|
"@ai-sdk/togetherai": "^0.2.14",
|
|
"@ai-sdk/vercel": "^0.0.1",
|
|
"@ai-sdk/xai": "^1.2.16",
|
|
"ai": "^4.3.16"
|
|
},
|
|
"peerDependenciesMeta": {
|
|
"@ai-sdk/amazon-bedrock": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/anthropic": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/azure": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/cerebras": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/cohere": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/deepinfra": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/deepseek": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/fal": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/fireworks": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/google": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/google-vertex": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/groq": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/mistral": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/openai": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/perplexity": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/replicate": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/together": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/vercel": {
|
|
"optional": true
|
|
},
|
|
"@ai-sdk/xai": {
|
|
"optional": true
|
|
}
|
|
},
|
|
"devDependencies": {
|
|
"typescript": "^5.0.0"
|
|
},
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"types": "./dist/index.d.ts",
|
|
"import": "./dist/index.js",
|
|
"require": "./dist/index.js"
|
|
}
|
|
}
|
|
}
|