{"_id":"@cherrystudio/ai-sdk-provider","_rev":"8-f220af74fb8901d51f50804bd5f3ddc8","name":"@cherrystudio/ai-sdk-provider","dist-tags":{"beta":"1.2.1-beta.1","latest":"0.1.6"},"versions":{"1.2.1-beta.0":{"name":"@cherrystudio/ai-sdk-provider","version":"1.2.1-beta.0","keywords":["ai"],"license":"Apache-2.0","_id":"@cherrystudio/ai-sdk-provider@1.2.1-beta.0","maintainers":[{"name":"cherry.ai","email":"dev@cherry-ai.com"},{"name":"dejeune","email":"sy20010504@gmail.com"},{"name":"eeee_007","email":"chentao020717Private@outlook.com"},{"name":"whatprototype","email":"daoquqiexing@gmail.com"},{"name":"eurfelux","email":"eurfelux@gmail.com"}],"homepage":"https://github.com/CherryHQ/ai-sdk-provider","bugs":{"url":"https://github.com/CherryHQ/ai-sdk-provider/issues"},"dist":{"shasum":"c50fc8e74ed00d3cf3e9a543934f85c13a91620b","tarball":"https://registry.npmjs.org/@cherrystudio/ai-sdk-provider/-/ai-sdk-provider-1.2.1-beta.0.tgz","fileCount":15,"integrity":"sha512-XNa1EHXJQ8+Kk/0LAnY8/7i+TM7SnKKuheCdptEi8q7nDzRzzwCZEy4ksZoh30SJ3f17df8ZpL210GA6lsZXew==","signatures":[{"sig":"MEUCIQD2ktvuPywBHD6bxUS0hvHU/znwYhAxfGm3bCyYBsNXJAIgML0maMp6RgCuzhJTsvkroN8VqrYtzL1QFJliDQ5mq+c=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cherrystudio%2fai-sdk-provider@1.2.1-beta.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1724885},"main":"./dist/index.js","_from":"file:cherrystudio-ai-sdk-provider-1.2.1-beta.0.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./internal":{"types":"./dist/internal/index.d.ts","import":"./dist/internal/index.mjs","module":"./dist/internal/index.mjs","require":"./dist/internal/index.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","lint":"biome lint","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist && rm -rf internal/dist","format":"biome format --write","test:e2e":"vitest --config vitest.e2e.config.ts --run","test:edge":"vitest --config vitest.edge.config.ts --run","test:node":"vitest --config vitest.node.config.ts --run","typecheck":"tsc --noEmit","prepublish":"pnpm run build"},"_npmUser":{"name":"dejeune","email":"sy20010504@gmail.com"},"_resolved":"/tmp/42ae39be7a5e86df3ab2e9ccf51081f6/cherrystudio-ai-sdk-provider-1.2.1-beta.0.tgz","_integrity":"sha512-XNa1EHXJQ8+Kk/0LAnY8/7i+TM7SnKKuheCdptEi8q7nDzRzzwCZEy4ksZoh30SJ3f17df8ZpL210GA6lsZXew==","repository":{"url":"git+https://github.com/CherryHQ/ai-sdk-provider.git","type":"git"},"_npmVersion":"10.8.2","description":"fork @OpenRouter/ai-sdk-provider","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"ai":"6.0.0-beta.66","msw":"^2.11.6","zod":"3.25.76","tsup":"8.5.0","dotenv":"17.2.1","vitest":"3.2.4","typescript":"5.9.2","@types/node":"24.2.0","@biomejs/biome":"2.1.3","@ai-sdk/provider":"3.0.0-beta.8","@edge-runtime/vm":"5.0.0","@ai-sdk/test-server":"1.0.0-beta.1","vite-tsconfig-paths":"5.1.4","@ai-sdk/provider-utils":"4.0.0-beta.20"},"peerDependencies":{"ai":"^5.0.0","zod":"^3.24.1 || ^v4"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.2.1-beta.0_1761177098478_0.7978097597544345","host":"s3://npm-registry-packages-npm-production"}},"1.2.1-beta.1":{"name":"@cherrystudio/ai-sdk-provider","version":"1.2.1-beta.1","keywords":["ai"],"license":"Apache-2.0","_id":"@cherrystudio/ai-sdk-provider@1.2.1-beta.1","maintainers":[{"name":"cherry.ai","email":"dev@cherry-ai.com"},{"name":"dejeune","email":"sy20010504@gmail.com"},{"name":"eeee_007","email":"chentao020717Private@outlook.com"},{"name":"whatprototype","email":"daoquqiexing@gmail.com"},{"name":"eurfelux","email":"eurfelux@gmail.com"}],"homepage":"https://github.com/CherryHQ/ai-sdk-provider","bugs":{"url":"https://github.com/CherryHQ/ai-sdk-provider/issues"},"dist":{"shasum":"c9856ed1c03b17fd7cb1ecee94d6e125ff1b4143","tarball":"https://registry.npmjs.org/@cherrystudio/ai-sdk-provider/-/ai-sdk-provider-1.2.1-beta.1.tgz","fileCount":15,"integrity":"sha512-L/tNQxk5EsdvFOfeSjuVFqa6j0+ri+L9Vix+IBxAsBNnT2sXbjsVknHfa3t8eW4c0bSGojBdV2MLD8BhExef1Q==","signatures":[{"sig":"MEUCIBsXesmgBgGoM/0RZ/MBMd0y/UOac49CM39RGurq6AfxAiEAr8PF/Dz0jjXm+4cMIPEKcVbec6DHIPfK+vdMLV0yUFY=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@cherrystudio%2fai-sdk-provider@1.2.1-beta.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":1747341},"main":"./dist/index.js","_from":"file:cherrystudio-ai-sdk-provider-1.2.1-beta.1.tgz","types":"./dist/index.d.ts","module":"./dist/index.mjs","engines":{"node":">=18"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"},"./internal":{"types":"./dist/internal/index.d.ts","import":"./dist/internal/index.mjs","module":"./dist/internal/index.mjs","require":"./dist/internal/index.js"},"./package.json":"./package.json"},"scripts":{"dev":"tsup --watch","lint":"biome lint","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist && rm -rf internal/dist","format":"biome format --write","test:e2e":"vitest --config vitest.e2e.config.ts --run","test:edge":"vitest --config vitest.edge.config.ts --run","test:node":"vitest --config vitest.node.config.ts --run","typecheck":"tsc --noEmit","prepublish":"pnpm run build"},"_npmUser":{"name":"dejeune","email":"sy20010504@gmail.com"},"_resolved":"/tmp/aa0bda54a64c462d0299a623bec4333d/cherrystudio-ai-sdk-provider-1.2.1-beta.1.tgz","_integrity":"sha512-L/tNQxk5EsdvFOfeSjuVFqa6j0+ri+L9Vix+IBxAsBNnT2sXbjsVknHfa3t8eW4c0bSGojBdV2MLD8BhExef1Q==","repository":{"url":"git+https://github.com/CherryHQ/ai-sdk-provider.git","type":"git"},"_npmVersion":"10.8.2","description":"fork @OpenRouter/ai-sdk-provider","directories":{},"sideEffects":false,"_nodeVersion":"20.19.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"ai":"6.0.0-beta.66","msw":"^2.11.6","zod":"3.25.76","tsup":"8.5.0","dotenv":"17.2.1","vitest":"3.2.4","typescript":"5.9.2","@types/node":"24.2.0","@biomejs/biome":"2.1.3","@ai-sdk/provider":"3.0.0-beta.8","@edge-runtime/vm":"5.0.0","@ai-sdk/test-server":"1.0.0-beta.1","vite-tsconfig-paths":"5.1.4","@ai-sdk/provider-utils":"4.0.0-beta.20"},"peerDependencies":{"ai":"^6.0.0","zod":"^3.24.1 || ^v4","effect":"^3.18.4","arktype":"^2.1.22","@valibot/to-json-schema":"^1.3.0"},"peerDependenciesMeta":{"effect":{"optional":true},"arktype":{"optional":true},"@valibot/to-json-schema":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.2.1-beta.1_1761178804720_0.9418805705988549","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@cherrystudio/ai-sdk-provider","version":"0.1.1","keywords":["ai-sdk","provider","cherryin","vercel-ai-sdk","cherry-studio"],"author":"Cherry Studio","license":"MIT","_id":"@cherrystudio/ai-sdk-provider@0.1.1","maintainers":[{"name":"defi-failure","email":"verc20.dev@proton.me"},{"name":"cherry.ai","email":"dev@cherry-ai.com"},{"name":"dejeune","email":"sy20010504@gmail.com"},{"name":"eeee_007","email":"chentao020717Private@outlook.com"},{"name":"whatprototype","email":"daoquqiexing@gmail.com"},{"name":"eurfelux","email":"eurfelux@gmail.com"}],"homepage":"https://github.com/CherryHQ/cherry-studio","bugs":{"url":"https://github.com/CherryHQ/cherry-studio/issues"},"dist":{"shasum":"c529ff819b94b8c586c92c06d87f9a69c03532fb","tarball":"https://registry.npmjs.org/@cherrystudio/ai-sdk-provider/-/ai-sdk-provider-0.1.1.tgz","fileCount":2,"integrity":"sha512-P4N2Ea4gQpT8SAVgjsBX/FMWuysrQN2XkjlJOI0U+yKQ6SwtTbTTIiWQa29gvB0H8YaBnvg0NKusRs09heuK7g==","signatures":[{"sig":"MEUCIQDByrPOk6XJaDUTbpVKh6yeyHKVCJosVL99muFsb6emrQIgDqWJIJlh/6hLRisdIqy1ipncF2lBe1zE6hqd5GRHLls=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3042},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"20f62eea809198e23b0e0189f2424603375d493f","scripts":{"dev":"tsc -w","test":"vitest run","build":"tsdown","clean":"rm -rf dist","test:watch":"vitest"},"_npmUser":{"name":"dejeune","email":"sy20010504@gmail.com"},"deprecated":"deprecated because of wrong build","repository":{"url":"git+https://github.com/CherryHQ/cherry-studio.git","type":"git","directory":"packages/ai-sdk-provider"},"description":"Cherry Studio AI SDK provider bundle with CherryIN routing.","directories":{},"sideEffects":false,"dependencies":{"@ai-sdk/provider":"^2.0.0","@ai-sdk/provider-utils":"^3.0.12"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.13.3","vitest":"^3.2.4","typescript":"^5.8.2"},"peerDependencies":{"ai":"^5.0.26","@ai-sdk/google":"^2.0.23","@ai-sdk/openai":"^2.0.64","@ai-sdk/anthropic":"^2.0.29"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.1.1_1763544151397_0.1252552992534619","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@cherrystudio/ai-sdk-provider","version":"0.1.2","keywords":["ai-sdk","provider","cherryin","vercel-ai-sdk","cherry-studio"],"author":"Cherry Studio","license":"MIT","_id":"@cherrystudio/ai-sdk-provider@0.1.2","maintainers":[{"name":"defi-failure","email":"verc20.dev@proton.me"},{"name":"cherry.ai","email":"dev@cherry-ai.com"},{"name":"dejeune","email":"sy20010504@gmail.com"},{"name":"eeee_007","email":"chentao020717Private@outlook.com"},{"name":"whatprototype","email":"daoquqiexing@gmail.com"},{"name":"eurfelux","email":"eurfelux@gmail.com"}],"homepage":"https://github.com/CherryHQ/cherry-studio","bugs":{"url":"https://github.com/CherryHQ/cherry-studio/issues"},"dist":{"shasum":"47da49b4b59bcc3a19c9598157bc7bc11b39b205","tarball":"https://registry.npmjs.org/@cherrystudio/ai-sdk-provider/-/ai-sdk-provider-0.1.2.tgz","fileCount":6,"integrity":"sha512-o+SHdXGR1shFrITprJz43Pv0Yxuhl5Ref/C+5UHSswVsX5A0SqJLGKoRL0Ys7OnRQtixTXR6xPuSVRRXzhHodg==","signatures":[{"sig":"MEYCIQDO6eK40Zh8rHdLZLVGLtXJWx29CtdP9yiGZJBexhR1WAIhAMeNHF0uFXC6SzS11CITJ2zMn4m54NKVMFMWJpBvTyeA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":23649},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"9168202b64398033dfbd5a3dabb9d29e80a1fd3c","scripts":{"dev":"tsc -w","test":"vitest run","build":"tsdown","clean":"rm -rf dist","test:watch":"vitest"},"_npmUser":{"name":"dejeune","email":"sy20010504@gmail.com"},"repository":{"url":"git+https://github.com/CherryHQ/cherry-studio.git","type":"git","directory":"packages/ai-sdk-provider"},"description":"Cherry Studio AI SDK provider bundle with CherryIN routing.","directories":{},"sideEffects":false,"dependencies":{"@ai-sdk/provider":"^2.0.0","@ai-sdk/provider-utils":"^3.0.12"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.13.3","vitest":"^3.2.4","typescript":"^5.8.2"},"peerDependencies":{"ai":"^5.0.26","@ai-sdk/google":"^2.0.23","@ai-sdk/openai":"^2.0.64","@ai-sdk/anthropic":"^2.0.29"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.1.2_1763553529069_0.7553514535321528","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@cherrystudio/ai-sdk-provider","version":"0.1.3","keywords":["ai-sdk","provider","cherryin","vercel-ai-sdk","cherry-studio"],"author":"Cherry Studio","license":"MIT","_id":"@cherrystudio/ai-sdk-provider@0.1.3","maintainers":[{"name":"defi-failure","email":"verc20.dev@proton.me"},{"name":"cherry.ai","email":"dev@cherry-ai.com"},{"name":"dejeune","email":"sy20010504@gmail.com"},{"name":"eeee_007","email":"chentao020717Private@outlook.com"},{"name":"whatprototype","email":"daoquqiexing@gmail.com"},{"name":"eurfelux","email":"eurfelux@gmail.com"}],"homepage":"https://github.com/CherryHQ/cherry-studio","bugs":{"url":"https://github.com/CherryHQ/cherry-studio/issues"},"dist":{"shasum":"d5240775acc355ca05055b28d5b077a0ca31320a","tarball":"https://registry.npmjs.org/@cherrystudio/ai-sdk-provider/-/ai-sdk-provider-0.1.3.tgz","fileCount":6,"integrity":"sha512-UKm3/OqUEQZ0kB/hgD9Ab113SC87xbNwOx3L2HZVlqLwV5nBITXRUxZAQVUsjZONUxnt1XS4R8fL6gaRL9vBjQ==","signatures":[{"sig":"MEQCIBJmMmJZpyahtG16st2SwsRJ5Cjnl8LdaXlm5gl46fNkAiB/1FX/HfFmbv/N4UJIjKXEuo2C4VwNgVR0avm16q2Xmw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":25282},"main":"dist/index.cjs","type":"module","types":"dist/index.d.ts","module":"dist/index.js","engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"e6b4f004e931ced5a7790019bc41b08c405af937","scripts":{"dev":"tsc -w","test":"vitest run","build":"tsdown","clean":"rm -rf dist","test:watch":"vitest"},"_npmUser":{"name":"defi-failure","email":"verc20.dev@proton.me"},"repository":{"url":"git+https://github.com/CherryHQ/cherry-studio.git","type":"git","directory":"packages/ai-sdk-provider"},"description":"Cherry Studio AI SDK provider bundle with CherryIN routing.","directories":{},"sideEffects":false,"dependencies":{"@ai-sdk/provider":"^2.0.0","@ai-sdk/provider-utils":"^3.0.12"},"_hasShrinkwrap":false,"devDependencies":{"tsdown":"^0.13.3","vitest":"^3.2.4","typescript":"^5.8.2"},"peerDependencies":{"ai":"^5.0.26","@ai-sdk/google":"^2.0.23","@ai-sdk/openai":"^2.0.64","@ai-sdk/anthropic":"^2.0.29"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.1.3_1763611120835_0.9256874487825015","host":"s3://npm-registry-packages-npm-production"}},"0.1.6":{"name":"@cherrystudio/ai-sdk-provider","version":"0.1.6","description":"Cherry Studio AI SDK provider bundle with CherryIN routing.","keywords":["ai-sdk","provider","cherryin","vercel-ai-sdk","cherry-studio"],"author":{"name":"Cherry Studio"},"license":"MIT","homepage":"https://github.com/CherryHQ/cherry-studio","repository":{"type":"git","url":"git+https://github.com/CherryHQ/cherry-studio.git","directory":"packages/ai-sdk-provider"},"bugs":{"url":"https://github.com/CherryHQ/cherry-studio/issues"},"type":"module","main":"dist/index.cjs","module":"dist/index.mjs","types":"dist/index.d.mts","peerDependencies":{"@ai-sdk/anthropic":"^3.0.58","@ai-sdk/google":"^3.0.43","@ai-sdk/openai":"^3.0.41","@ai-sdk/openai-compatible":"^2.0.35"},"dependencies":{"@ai-sdk/provider":"^3.0.8","@ai-sdk/provider-utils":"^4.0.19"},"devDependencies":{"tsdown":"^0.20.3","typescript":"^5.8.2","vitest":"^3.2.4"},"sideEffects":false,"engines":{"node":">=18.0.0"},"exports":{".":{"types":"./dist/index.d.mts","import":"./dist/index.mjs","require":"./dist/index.cjs","default":"./dist/index.mjs"}},"scripts":{"build":"tsdown","dev":"tsc -w","clean":"rm -rf dist","test":"vitest run","test:watch":"vitest"},"_id":"@cherrystudio/ai-sdk-provider@0.1.6","_integrity":"sha512-MBXvna+sELchhIVm6NppWDZz1u7R+gXl/qPq2stid6PNkrPmmGlyIbwOhM5Wk096mX7+GGRE4qfey/nT8Lzlcg==","_resolved":"/tmp/b41fce6f0bef1015a8b1454f157562b3/cherrystudio-ai-sdk-provider-0.1.6.tgz","_from":"file:cherrystudio-ai-sdk-provider-0.1.6.tgz","_nodeVersion":"24.11.1","_npmVersion":"11.6.2","dist":{"integrity":"sha512-MBXvna+sELchhIVm6NppWDZz1u7R+gXl/qPq2stid6PNkrPmmGlyIbwOhM5Wk096mX7+GGRE4qfey/nT8Lzlcg==","shasum":"0c24a7555c789b9a374a11bcd475718b1d0e2c2c","tarball":"https://registry.npmjs.org/@cherrystudio/ai-sdk-provider/-/ai-sdk-provider-0.1.6.tgz","fileCount":7,"unpackedSize":58240,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQCyfE7K1r47mvkViYLAdolTA03y6QJQPMwRBm0TbXZe7wIhAILAVcKqrS8K3q9+8L8oVL9BwHWSB0To7GmSXpKSA49T"}]},"_npmUser":{"name":"cherry.ai","email":"dev@cherry-ai.com"},"directories":{},"maintainers":[{"name":"defi-failure","email":"verc20.dev@proton.me"},{"name":"cherry.ai","email":"dev@cherry-ai.com"},{"name":"dejeune","email":"sy20010504@gmail.com"},{"name":"eeee_007","email":"chentao020717Private@outlook.com"},{"name":"whatprototype","email":"daoquqiexing@gmail.com"},{"name":"eurfelux","email":"eurfelux@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai-sdk-provider_0.1.6_1775891680458_0.8117130473644041"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-22T23:51:38.340Z","modified":"2026-04-11T07:14:40.812Z","1.2.1-beta.0":"2025-10-22T23:51:38.823Z","1.2.1-beta.1":"2025-10-23T00:20:05.046Z","0.1.1":"2025-11-19T09:22:31.639Z","0.1.2":"2025-11-19T11:58:49.255Z","0.1.3":"2025-11-20T03:58:41.034Z","0.1.6":"2026-04-11T07:14:40.661Z"},"bugs":{"url":"https://github.com/CherryHQ/cherry-studio/issues"},"author":{"name":"Cherry Studio"},"license":"MIT","homepage":"https://github.com/CherryHQ/cherry-studio","keywords":["ai-sdk","provider","cherryin","vercel-ai-sdk","cherry-studio"],"repository":{"type":"git","url":"git+https://github.com/CherryHQ/cherry-studio.git","directory":"packages/ai-sdk-provider"},"description":"Cherry Studio AI SDK provider bundle with CherryIN routing.","maintainers":[{"name":"defi-failure","email":"verc20.dev@proton.me"},{"name":"cherry.ai","email":"dev@cherry-ai.com"},{"name":"dejeune","email":"sy20010504@gmail.com"},{"name":"eeee_007","email":"chentao020717Private@outlook.com"},{"name":"whatprototype","email":"daoquqiexing@gmail.com"},{"name":"eurfelux","email":"eurfelux@gmail.com"}],"readme":"# @cherrystudio/ai-sdk-provider\n\nCherryIN provider bundle for the [Vercel AI SDK](https://ai-sdk.dev/).  \nIt exposes the CherryIN OpenAI-compatible entrypoints and dynamically routes Anthropic and Gemini model ids to their CherryIN upstream equivalents.\n\n## Installation\n\n```bash\nnpm install ai @cherrystudio/ai-sdk-provider @ai-sdk/anthropic @ai-sdk/google @ai-sdk/openai\n# or\npnpm add ai @cherrystudio/ai-sdk-provider @ai-sdk/anthropic @ai-sdk/google @ai-sdk/openai\n```\n\n> **Note**: This package requires peer dependencies `ai`, `@ai-sdk/anthropic`, `@ai-sdk/google`, and `@ai-sdk/openai` to be installed.\n\n## Usage\n\n```ts\nimport { createCherryIn, cherryIn } from '@cherrystudio/ai-sdk-provider'\n\nconst cherryInProvider = createCherryIn({\n  apiKey: process.env.CHERRYIN_API_KEY,\n  // optional overrides:\n  // baseURL: 'https://open.cherryin.net/v1',\n  // anthropicBaseURL: 'https://open.cherryin.net/anthropic',\n  // geminiBaseURL: 'https://open.cherryin.net/gemini/v1beta',\n})\n\n// Chat models will auto-route based on the model id prefix:\nconst openaiModel = cherryInProvider.chat('gpt-4o-mini')\nconst anthropicModel = cherryInProvider.chat('claude-3-5-sonnet-latest')\nconst geminiModel = cherryInProvider.chat('gemini-2.0-pro-exp')\n\nconst { text } = await openaiModel.invoke('Hello CherryIN!')\n```\n\nThe provider also exposes `completion`, `responses`, `embedding`, `image`, `transcription`, and `speech` helpers aligned with the upstream APIs.\n\nSee [AI SDK docs](https://ai-sdk.dev/providers/community-providers/custom-providers) for configuring custom providers.\n","readmeFilename":"README.md"}