{"_id":"@aihubmix/ai-sdk-provider","_rev":"19-bc3d6af45840f7d266aecb8b9c8b248c","name":"@aihubmix/ai-sdk-provider","dist-tags":{"latest":"2.2.1"},"versions":{"0.0.1":{"name":"@aihubmix/ai-sdk-provider","version":"0.0.1","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@0.0.1","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"84cee72266ab182dfe3de330f3924b1b53a9d27e","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-0.0.1.tgz","fileCount":10,"integrity":"sha512-GThSlsWesT0OK9ePs3EB/KohbXM8Y4yhX8VYOMKBD29QPkI/zVfh/t5A/NUASly86tOm1K366v+sQJsdQFwPxg==","signatures":[{"sig":"MEYCIQC5vKDy7pc783WDdjHh3MY7/5+nRMjpEMGGTAxyLg+DLgIhAIchObDI5Y53HRTJUv4+Nr3Wn5mmXAbq6HDNyCdQ1NXn","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":65406},"main":"./dist/index.js","_from":"file:aihubmix-ai-sdk-provider-0.0.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"},"./package.json":"./package.json"},"scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"_resolved":"/private/var/folders/dh/50gp5hyn4_b39637_fz_yh1m0000gq/T/83b71e4f8948071fa72bce4846ebd566/aihubmix-ai-sdk-provider-0.0.1.tgz","_integrity":"sha512-GThSlsWesT0OK9ePs3EB/KohbXM8Y4yhX8VYOMKBD29QPkI/zVfh/t5A/NUASly86tOm1K366v+sQJsdQFwPxg==","repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.8.2","description":"> **🎉 10% discount!** Added app-code; this way, requesting all models through ai-sdk offers a 10% discount.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.2","dependencies":{"@ai-sdk/google":"1.2.19","@ai-sdk/openai":"1.3.22","@ai-sdk/provider":"1.1.3","@ai-sdk/anthropic":"1.2.12","@ai-sdk/provider-utils":"2.2.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.23.8","tsup":"^8","jsdom":"^24.0.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"peerDependencies":{"zod":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.0.1_1753189150219_0.3385727893438337","host":"s3://npm-registry-packages-npm-production"}},"0.0.2":{"name":"@aihubmix/ai-sdk-provider","version":"0.0.2","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@0.0.2","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"6f79ecf4f3adb150fbccdd16d6b00f431da47088","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-0.0.2.tgz","fileCount":10,"integrity":"sha512-r1cvjFvTH4ZMBa9yoKfzoSgQAJEq0Uhp51/AldbL+N3X3HVY+iR80fpPnv+EKaEYx+SjxH14MzOdYDnQl7aLfw==","signatures":[{"sig":"MEUCIFQF9sY2k1M9RirIepUFHrEoRbDyQ77cmsXLmIlFtuBJAiEA/CYQCre3jFkBTDPLb3mqU7/mxbcJI+t5VxR3SWwe/v4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":66280},"main":"./dist/index.js","_from":"file:aihubmix-ai-sdk-provider-0.0.2.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"},"./package.json":"./package.json"},"scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"_resolved":"/private/var/folders/dh/50gp5hyn4_b39637_fz_yh1m0000gq/T/af2d4752d62c72516ba9de0503dec9cb/aihubmix-ai-sdk-provider-0.0.2.tgz","_integrity":"sha512-r1cvjFvTH4ZMBa9yoKfzoSgQAJEq0Uhp51/AldbL+N3X3HVY+iR80fpPnv+EKaEYx+SjxH14MzOdYDnQl7aLfw==","repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.8.2","description":"> **🎉 10% discount!** Added app-code; this way, requesting all models through ai-sdk offers a 10% discount.","directories":{},"sideEffects":false,"_nodeVersion":"20.19.2","dependencies":{"@ai-sdk/google":"2.0.0-beta.6","@ai-sdk/openai":"2.0.0-beta.3","@ai-sdk/provider":"2.0.0-beta.1","@ai-sdk/anthropic":"2.0.0-beta.3","@ai-sdk/provider-utils":"3.0.0-beta.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"^3.25.0","tsup":"^8","jsdom":"^24.0.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"peerDependencies":{"zod":"^3.25.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.0.2_1753195675191_0.7440239500670209","host":"s3://npm-registry-packages-npm-production"}},"0.0.3":{"name":"@aihubmix/ai-sdk-provider","version":"0.0.3","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@0.0.3","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"d66501c217cf4aa8b5a933efec0266b27cf6ce2e","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-0.0.3.tgz","fileCount":11,"integrity":"sha512-1nWFnXu1zHZAkhJbvPc4ESkNSr2SK3dEORwHR8Ssf6HBVZUohmg2YgHiJU47TUQbmU2rZPafC1w7kMbiGxbKyw==","signatures":[{"sig":"MEUCIQCUmKko8Jk+HG1sNnQ45DLPWcn7jxrzdcuSDD9uAAJq/AIgJx4PP0+DF+ByEjwoO80Krl/Wr2qbJIKty5tJydxQUi0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":73173},"main":"./dist/index.js","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"},"./package.json":"./package.json"},"gitHead":"aee7f8bba3720ebd75051ef1971e6f22ed092d7e","scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.9.2","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"22.17.1","dependencies":{"@ai-sdk/google":"2.0.15","@ai-sdk/openai":"2.0.32","@ai-sdk/provider":"2.0.0","@ai-sdk/anthropic":"2.0.17","@ai-sdk/provider-utils":"3.0.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.23.8","tsup":"^8","jsdom":"^24.0.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"peerDependencies":{"zod":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.0.3_1758510019629_0.7245596792538618","host":"s3://npm-registry-packages-npm-production"}},"0.0.4":{"name":"@aihubmix/ai-sdk-provider","version":"0.0.4","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@0.0.4","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"d170a09878e278fa9bfa91da6bc3ce6324019ea6","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-0.0.4.tgz","fileCount":11,"integrity":"sha512-5U4tCCPRR39Cd9Fcf9JO7VUbBni23Z7AfdkxBwjSrdel8TjWJMjfIxipl8j3Dj0/Nam33QhGDSOijl44uMeJXg==","signatures":[{"sig":"MEUCIAFdMtelLacHwR5fodzh9DMLLTwIBsj9gGTm37GpZC5nAiEApieLhD5Oe9lvVYum7neBuvjJpAFkh7En0rVvt74wA24=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":147670},"main":"./dist/index.js","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"},"./package.json":"./package.json"},"gitHead":"aee7f8bba3720ebd75051ef1971e6f22ed092d7e","scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.9.2","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"22.17.1","dependencies":{"@ai-sdk/google":"2.0.15","@ai-sdk/openai":"2.0.32","@ai-sdk/provider":"2.0.0","@ai-sdk/anthropic":"2.0.17","@ai-sdk/provider-utils":"3.0.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.23.8","tsup":"^8","jsdom":"^24.0.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"peerDependencies":{"zod":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.0.4_1758511569685_0.7381395673866931","host":"s3://npm-registry-packages-npm-production"}},"0.0.5":{"name":"@aihubmix/ai-sdk-provider","version":"0.0.5","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@0.0.5","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"e71ac6912440fce6076140145f2136004264cfb0","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-0.0.5.tgz","fileCount":11,"integrity":"sha512-gCfS1T+A5JJlW1ynNXhtN8X8G8CbzSQMISMPu+ZHUuaaBhO3UC6xRZ6qM27j7EuUKtKxYeGmvwZvNBwI7VWumA==","signatures":[{"sig":"MEYCIQDEN1KkhgVs/ut4xaFfJHeLsPUy9TeP23kaLVsd5VUaPwIhAKv7N+epU6lhAt9NlBtqKXqPP6FI1oUGUbA5SPtpy3h6","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":152385},"main":"./dist/index.js","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"},"./package.json":"./package.json"},"gitHead":"aee7f8bba3720ebd75051ef1971e6f22ed092d7e","scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.9.2","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"22.17.1","dependencies":{"zod":"^4.0.0","@ai-sdk/google":"2.0.15","@ai-sdk/openai":"2.0.32","@ai-sdk/provider":"2.0.0","@ai-sdk/anthropic":"2.0.17","@ai-sdk/provider-utils":"3.0.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","jsdom":"^24.0.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.0.5_1758514972542_0.7050251608698646","host":"s3://npm-registry-packages-npm-production"}},"0.0.6":{"name":"@aihubmix/ai-sdk-provider","version":"0.0.6","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@0.0.6","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"2704d813a2859e1e107f84d6d104bb15b9cc6e3e","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-0.0.6.tgz","fileCount":11,"integrity":"sha512-S2l2VkRPc8+2ul2ej0QQN6/0IhFqW8JRikj04EBu+q9iPYSazci9i/WhGX+RV9QgqfwKKP5jLMMryIIUWGK32g==","signatures":[{"sig":"MEUCIDEabkVSOLT0z9BGXLriJKpexyrBiBbEKQxk3NqvDdOwAiEAn5yRCsXrJJXLiHjCcZWZspGi4mdsf2RsbU50vp/sDlk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":154005},"main":"./dist/index.js","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"},"./package.json":"./package.json"},"gitHead":"e9361b67c1a57bdf7eb70ad7a74fb5b25facd715","scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.8.2","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"20.19.2","dependencies":{"zod":"^4.0.0","@ai-sdk/google":"2.0.15","@ai-sdk/openai":"2.0.32","@ai-sdk/provider":"2.0.0","@ai-sdk/anthropic":"2.0.17","@ai-sdk/provider-utils":"3.0.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","jsdom":"^24.0.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_0.0.6_1761202997306_0.7008581680622827","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@aihubmix/ai-sdk-provider","version":"1.0.0","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@1.0.0","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"dae3e2ca8975004bb34cfcb6b551a387f6b7e3e2","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-1.0.0.tgz","fileCount":11,"integrity":"sha512-149cVCmDi0jT6uSzr+rQHQa5xMLv0B6nJHUFdpj3kpZgdFj7QrZFbUcnMxeVBuATm7svm8difnSCgB+Su3XVcQ==","signatures":[{"sig":"MEUCIDsZS/QhHtd4UlnFck0nfyoJCm2Ha5sYfc3+ACkzXWvYAiEAxRvHSo8G34Biyt8d73lufuc5PfycdK5+82DK3RoS1MM=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":154240},"main":"./dist/index.js","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"},"./package.json":"./package.json"},"gitHead":"2bd2a8c59ffe3fcb69dee7476d8bd991be5faccb","scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.8.2","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","dependencies":{"zod":"^4.0.0","@ai-sdk/google":"^3.0.0","@ai-sdk/openai":"^3.0.0","@ai-sdk/provider":"^3.0.0","@ai-sdk/anthropic":"^3.0.0","@ai-sdk/provider-utils":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","jsdom":"^24.0.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.0_1766908181675_0.4201667284236954","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@aihubmix/ai-sdk-provider","version":"1.0.1","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@1.0.1","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"5d7ab71d03fda0bb4d871eccd3339d7ff865f9d0","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-1.0.1.tgz","fileCount":11,"integrity":"sha512-z4VIND5xkPNgKUpdncPhJmZ45fMrKgZUVus3p9wkbVXteia7MNQch4mw6ma/hjmeTcAW4Ym7m7HCy3gFhwWArQ==","signatures":[{"sig":"MEQCIFVXFCjtUugv1wPLfzyRfUZE2o4amWxPB/xmNxITO6iYAiBvhD85U/YhD33rVSXNjoEVscRIZiJPrUE9sRl4nnl2ug==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":155760},"main":"./dist/index.js","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"},"./package.json":"./package.json"},"gitHead":"2bd2a8c59ffe3fcb69dee7476d8bd991be5faccb","scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.8.2","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","dependencies":{"zod":"^4.0.0","@ai-sdk/google":"^3.0.0","@ai-sdk/openai":"^3.0.0","@ai-sdk/provider":"^3.0.0","@ai-sdk/anthropic":"^3.0.0","@ai-sdk/provider-utils":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","jsdom":"^24.0.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.1_1766908463767_0.7564645261833154","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@aihubmix/ai-sdk-provider","version":"1.0.2","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@1.0.2","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"11788c10ee4588bdf2b08fc40f6c2e4890ead260","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-1.0.2.tgz","fileCount":11,"integrity":"sha512-t2+iJAxL8FI9EFpMJiBR1ljkc+ST3ayoqE1FkfOzMfQ/bofS1PN924EJBf1t2tE6oHksZ9R3wk5oANx2+1bKPQ==","signatures":[{"sig":"MEYCIQC9Js6rYfoSwb9az/xzkYvPrdExRSMAx0MBq2T8BNFyIwIhAK3z4ugkX0deuHBWG8AhUN2Vgo5xLYDs03bzSxWTDB6R","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":156201},"main":"./dist/index.js","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"},"./package.json":"./package.json"},"gitHead":"2dc97a3a4fdfe3f4abb9ad619610e569f8254bfb","scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.9.4","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{"zod":"^4.0.0","@ai-sdk/google":"^3.0.0","@ai-sdk/openai":"^3.0.0","@ai-sdk/provider":"^3.0.0","@ai-sdk/anthropic":"^3.0.0","@ai-sdk/provider-utils":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","jsdom":"^24.0.0","vitest":"^4.0.17","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.2_1768980036344_0.4094737438441556","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@aihubmix/ai-sdk-provider","version":"1.0.3","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@1.0.3","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"af9a4cdaf654cf57c18d92a59089f711ff2c3e51","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-1.0.3.tgz","fileCount":12,"integrity":"sha512-6YSu/3rLkPlY7fqSHTwq6LMiK+0BLVZsbsi/28w+og2MrpUYPNaBhkj7F80K79NE28+HFOqIJROFgAUFmaoh6w==","signatures":[{"sig":"MEUCIBXUfyHZ5zGADZO+/OFWCK495lvAhSqqtT26qDf6CnifAiEA7DxR7d30DXUU/+e5Uh5nmuxf8G1scsHUIOUyilbgcZ0=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":167923},"main":"./dist/index.js","_from":"file:aihubmix-ai-sdk-provider-1.0.3.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"},"./package.json":"./package.json"},"scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"_resolved":"/private/var/folders/7k/hgbqzhxj70z_lnvks8xqbrhc0000gn/T/1dfede7f818371344cdc772e473f1d7e/aihubmix-ai-sdk-provider-1.0.3.tgz","_integrity":"sha512-6YSu/3rLkPlY7fqSHTwq6LMiK+0BLVZsbsi/28w+og2MrpUYPNaBhkj7F80K79NE28+HFOqIJROFgAUFmaoh6w==","repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.9.4","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{"zod":"3.25.76","@ai-sdk/google":"^3.0.0","@ai-sdk/openai":"^3.0.0","@ai-sdk/provider":"^3.0.0","@ai-sdk/anthropic":"^3.0.0","@ai-sdk/provider-utils":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","jsdom":"^24.0.0","vitest":"^4.0.17","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"peerDependencies":{"zod":"^3.25.76 || ^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_1.0.3_1768981753562_0.47746138361650803","host":"s3://npm-registry-packages-npm-production"}},"2.0.0":{"name":"@aihubmix/ai-sdk-provider","version":"2.0.0","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@2.0.0","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"fd35ecee352fa5019ca5ebc48ea75340fd9d7e08","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-2.0.0.tgz","fileCount":12,"integrity":"sha512-9BCbfvq0wB9k7Pt9gJTpohkS/B1fMoSoVdaEAH6wZ3VJMd9PeTb7g8Y8h6F9Qw4nLaasbuBXaTj7AHAGmh+PHw==","signatures":[{"sig":"MEUCIFQKSGfO2UeAre9Vb0BA4wfH5QudkeqAOPQb+XQ5vdv6AiEAxuZDZ5c9UQzly7fs3OEwmqMQvcFavVVcwxMZBCM73Mo=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":206053},"main":"./dist/index.js","_from":"file:aihubmix-ai-sdk-provider-2.0.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"},"./package.json":"./package.json"},"scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"_resolved":"/private/var/folders/cb/fhpf9vn568nfgb006_2p2_yr0000gn/T/5576a39ea55212cbeab1de59854ac203/aihubmix-ai-sdk-provider-2.0.0.tgz","_integrity":"sha512-9BCbfvq0wB9k7Pt9gJTpohkS/B1fMoSoVdaEAH6wZ3VJMd9PeTb7g8Y8h6F9Qw4nLaasbuBXaTj7AHAGmh+PHw==","repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.8.2","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","dependencies":{"zod":"^4.0.0","@ai-sdk/google":"^3.0.0","@ai-sdk/openai":"^3.0.0","@ai-sdk/provider":"^3.0.0","@ai-sdk/anthropic":"^3.0.0","@ai-sdk/provider-utils":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","jsdom":"^24.0.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_2.0.0_1769938858590_0.6538731290257811","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@aihubmix/ai-sdk-provider","version":"2.0.2","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@2.0.2","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"a9035e86aa83465ad9e67f752fcfb50e8cdd5454","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-2.0.2.tgz","fileCount":12,"integrity":"sha512-UYdDcjgmFXLK5CFpljf49GZEEzzWf9RO+/Cl8zZYXALK29wmb0xGcdpwMvJR0L9PGhhibALSwuKqwu1WtvtiZA==","signatures":[{"sig":"MEYCIQCNR455iDft0rJ/b2QwHTVp/Fy2CpZtSyybRQKZnDXOTAIhANh4ehe6JbHs2wRi7TAXhP5oaNzWcGywMhWJW73yccPa","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":205472},"main":"./dist/index.js","_from":"file:aihubmix-ai-sdk-provider-2.0.2.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"},"./package.json":"./package.json"},"scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"_resolved":"/private/var/folders/cb/fhpf9vn568nfgb006_2p2_yr0000gn/T/f750cf0d9ad28fb533164d675b07dd1c/aihubmix-ai-sdk-provider-2.0.2.tgz","_integrity":"sha512-UYdDcjgmFXLK5CFpljf49GZEEzzWf9RO+/Cl8zZYXALK29wmb0xGcdpwMvJR0L9PGhhibALSwuKqwu1WtvtiZA==","repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.8.2","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","dependencies":{"zod":"^3.25.76","@ai-sdk/google":"^3.0.0","@ai-sdk/openai":"^3.0.0","@ai-sdk/provider":"^3.0.0","@ai-sdk/anthropic":"^3.0.0","@ai-sdk/provider-utils":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","jsdom":"^24.0.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_2.0.2_1769942720651_0.4601866629920195","host":"s3://npm-registry-packages-npm-production"}},"2.0.3":{"name":"@aihubmix/ai-sdk-provider","version":"2.0.3","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@2.0.3","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"1ee17d0eb9f73564b521fb207e73a9a98998064a","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-2.0.3.tgz","fileCount":12,"integrity":"sha512-RH4e95LOGOv5PN432qOpc65rxS33g9aDk5sYGN8qp7WDyJWonIpbmTsZ6XjNDRsCVdKVpy+2WZPKiCpWEvy0ww==","signatures":[{"sig":"MEYCIQDozqu3syD4Lv7noQSC8YYLqYoBPvVOknoF6YeRilfnAwIhAMxnk+VDJOfbw/Z/2009rrPUfVokOLBYMJuflMjrQACH","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":204825},"main":"./dist/index.js","_from":"file:aihubmix-ai-sdk-provider-2.0.3.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"},"./package.json":"./package.json"},"scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"_resolved":"/private/var/folders/cb/fhpf9vn568nfgb006_2p2_yr0000gn/T/d8db2a65e523a92fa1496e88cf6c4bda/aihubmix-ai-sdk-provider-2.0.3.tgz","_integrity":"sha512-RH4e95LOGOv5PN432qOpc65rxS33g9aDk5sYGN8qp7WDyJWonIpbmTsZ6XjNDRsCVdKVpy+2WZPKiCpWEvy0ww==","repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.8.2","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","dependencies":{"zod":"^3.25.76","@ai-sdk/google":"^3.0.0","@ai-sdk/openai":"^3.0.0","@ai-sdk/provider":"^3.0.0","@ai-sdk/anthropic":"^3.0.0","@ai-sdk/provider-utils":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","jsdom":"^24.0.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_2.0.3_1769945659151_0.5828747087561479","host":"s3://npm-registry-packages-npm-production"}},"2.0.4":{"name":"@aihubmix/ai-sdk-provider","version":"2.0.4","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@2.0.4","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/inferera/aihubmix/issues"},"dist":{"shasum":"f0279e956a9f03877a36c590b7562f5edfaa7cba","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-2.0.4.tgz","fileCount":12,"integrity":"sha512-b54vl8oYpdMvzZ2NWuo8ck2ljJ6ndSF4Hb0b6g51VBgI9EqqDaR5nqvaEovj6J8N+0Wf761FqJJX9U/j4eSJ/A==","signatures":[{"sig":"MEQCIGBbvUiGTgDc3BF3xlM6c3R6ZRjNxBXNd4mHmWRRRXwAAiA00GnoTkN1vV9U4d8RAt2Sxp0RC+UuGhPOZrBpPpY9PA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":205472},"main":"./dist/index.js","_from":"file:aihubmix-ai-sdk-provider-2.0.4.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"},"./package.json":"./package.json"},"scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"_resolved":"/private/var/folders/cb/fhpf9vn568nfgb006_2p2_yr0000gn/T/dfd14e25d2c47a79470e05c2cefc8258/aihubmix-ai-sdk-provider-2.0.4.tgz","_integrity":"sha512-b54vl8oYpdMvzZ2NWuo8ck2ljJ6ndSF4Hb0b6g51VBgI9EqqDaR5nqvaEovj6J8N+0Wf761FqJJX9U/j4eSJ/A==","repository":{"url":"git+https://github.com/inferera/aihubmix.git","type":"git"},"_npmVersion":"10.8.2","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","dependencies":{"zod":"^3.25.76","@ai-sdk/google":"^3.0.0","@ai-sdk/openai":"^3.0.0","@ai-sdk/provider":"^3.0.0","@ai-sdk/anthropic":"^3.0.0","@ai-sdk/provider-utils":"^4.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8","jsdom":"^24.0.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@edge-runtime/vm":"^2.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_2.0.4_1769946145750_0.7542981232405437","host":"s3://npm-registry-packages-npm-production"}},"2.0.5":{"name":"@aihubmix/ai-sdk-provider","version":"2.0.5","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@2.0.5","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/AIhubmix/ai-sdk-provider/issues"},"dist":{"shasum":"378bbe7ec10d849390285d3e0976450298a94001","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-2.0.5.tgz","fileCount":11,"integrity":"sha512-vwbQ30bJa1iWEMqL+fUC682sVWxEyBDIHouBw9gPKWEy9F26oS7ntwzyCnvTi39hdo28kKwxzv/0CTPdTXlxGA==","signatures":[{"sig":"MEQCIEeVU/Jd9U6RXqSw7OXGeFiBmRjuow242ngSjUAyQ9eRAiBzBw1wmlASjduM7uyKs6Bu2pV2KS8+vePtZ8qSchRXVw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":150974},"main":"./dist/index.js","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"},"./package.json":"./package.json"},"gitHead":"6e4da64a1fe55e62a663ac1132f754375032d7f2","scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"repository":{"url":"git+https://github.com/AIhubmix/ai-sdk-provider.git","type":"git"},"_npmVersion":"10.9.4","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{"@ai-sdk/google":"^3.0.0","@ai-sdk/openai":"^3.0.0","@ai-sdk/provider":"^3.0.0","@ai-sdk/anthropic":"^3.0.0","@ai-sdk/provider-utils":"^4.0.0","@ai-sdk/openai-compatible":"^2.0.37"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.28.0","devDependencies":{"msw":"^2.7.0","zod":"^3.25.0","tsup":"^8","jsdom":"^24.0.0","turbo":"^2.5.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@changesets/cli":"^2.29.0","@edge-runtime/vm":"^2.0.0"},"peerDependencies":{"zod":"^3.25.0 || ^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_2.0.5_1774891148413_0.5137682218235631","host":"s3://npm-registry-packages-npm-production"}},"2.0.6":{"name":"@aihubmix/ai-sdk-provider","version":"2.0.6","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@2.0.6","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/AIhubmix/ai-sdk-provider/issues"},"dist":{"shasum":"152e8f774a211b2829a732d52cbca15943e95b9b","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-2.0.6.tgz","fileCount":11,"integrity":"sha512-mJ54fPI5OCvjdh9Lw1VpW8wIOz2PPNQD3m5wlYq3+RbXyIeidx0Egh+8UqZp+jD/IUGWS4E1gH8WwwMZDGQB8Q==","signatures":[{"sig":"MEYCIQDqfrE1winsamG7qf0EzJy1xfI4Xm5d2hStTvE5BkJEEAIhAJOo8E03oomMHWA3HSkH+xyhKElqcLgkGT/ffdD3Hk2z","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":151672},"main":"./dist/index.js","_from":"file:aihubmix-ai-sdk-provider-2.0.6.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"},"./package.json":"./package.json"},"scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"_resolved":"/private/var/folders/7k/hgbqzhxj70z_lnvks8xqbrhc0000gn/T/961e1619a1b69b5b9346e2ab2c89b63c/aihubmix-ai-sdk-provider-2.0.6.tgz","_integrity":"sha512-mJ54fPI5OCvjdh9Lw1VpW8wIOz2PPNQD3m5wlYq3+RbXyIeidx0Egh+8UqZp+jD/IUGWS4E1gH8WwwMZDGQB8Q==","repository":{"url":"git+https://github.com/AIhubmix/ai-sdk-provider.git","type":"git"},"_npmVersion":"10.9.4","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"22.21.1","dependencies":{"@ai-sdk/google":"^3.0.0","@ai-sdk/openai":"^3.0.0","@ai-sdk/provider":"^3.0.0","@ai-sdk/anthropic":"^3.0.0","@ai-sdk/provider-utils":"^4.0.0","@ai-sdk/openai-compatible":"^2.0.37"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"msw":"^2.7.0","zod":"^3.25.0","tsup":"^8","jsdom":"^24.0.0","turbo":"^2.5.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@changesets/cli":"^2.29.0","@edge-runtime/vm":"^2.0.0"},"peerDependencies":{"zod":"^3.25.0 || ^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_2.0.6_1777369937846_0.47019697550291784","host":"s3://npm-registry-packages-npm-production"}},"2.1.0":{"name":"@aihubmix/ai-sdk-provider","version":"2.1.0","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@2.1.0","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/AIhubmix/ai-sdk-provider/issues"},"dist":{"shasum":"4ca182bdd511598c2e27f0fd594d961a39ec3cbe","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-2.1.0.tgz","fileCount":11,"integrity":"sha512-AqK10PV5B4zWFBav5PRUhrWGYTHjC0s6cIbd4v9hBo6D9SqKv5o41B+dkl6IeIPrnZrMGLEE9Mn5R+VaEkhbdg==","signatures":[{"sig":"MEYCIQDNvwJyoA3fDhg/kKXSIH+2PIk3bF48sLW7f2SgFToZJwIhAJSlGEQoLFl3uiPaJDaM3jQ7UNcEGVoye1KPimO//A1V","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":153201},"main":"./dist/index.js","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"},"./package.json":"./package.json"},"gitHead":"dbdac800b681b7254be9ac3dbe620e1a226985af","scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"repository":{"url":"git+https://github.com/AIhubmix/ai-sdk-provider.git","type":"git"},"_npmVersion":"10.9.8","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"22.22.3","dependencies":{"@ai-sdk/google":"^3.0.0","@ai-sdk/openai":"^3.0.0","@ai-sdk/provider":"^3.0.0","@ai-sdk/anthropic":"^3.0.0","@ai-sdk/provider-utils":"^4.0.0","@ai-sdk/openai-compatible":"^2.0.37"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.28.0","devDependencies":{"msw":"^2.7.0","zod":"^3.25.0","tsup":"^8","jsdom":"^24.0.0","turbo":"^2.5.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@changesets/cli":"^2.29.0","@edge-runtime/vm":"^2.0.0"},"peerDependencies":{"zod":"^3.25.0 || ^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_2.1.0_1781175665905_0.40757719714055063","host":"s3://npm-registry-packages-npm-production"}},"2.2.0":{"name":"@aihubmix/ai-sdk-provider","version":"2.2.0","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"license":"Apache-2.0","_id":"@aihubmix/ai-sdk-provider@2.2.0","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"homepage":"https://aihubmix.com","bugs":{"url":"https://github.com/AIhubmix/ai-sdk-provider/issues"},"dist":{"shasum":"47e381c7a3de33ed0e234e9dcc1119077391d1c6","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-2.2.0.tgz","fileCount":11,"integrity":"sha512-5pBM1jyuQj1srGXOtoD/Z+GXPlw21PX60+SC2r2vk18Ve4tJJNsGt7JU5CBgE/lXjqGT+Y+nFTRFZmm9mLe5QA==","signatures":[{"sig":"MEQCIHlRFx5MgNs74w4/heC4BxL31ivVkU/cJo1peZWifEOtAiBPICa/vC3a/5y2e+S0ISB+UKUcYa8kUf9c6KD3iL8+Sg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":157656},"main":"./dist/index.js","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"},"./package.json":"./package.json"},"gitHead":"bad70ba60ae1916fb13b47efa83aac60cdac3681","scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","type-check":"tsc --noEmit","build:watch":"tsup --watch","prettier-check":"prettier --check \"./**/*.ts*\" --write","test:node:watch":"vitest --config vitest.node.config.js"},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"repository":{"url":"git+https://github.com/AIhubmix/ai-sdk-provider.git","type":"git"},"_npmVersion":"10.9.8","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","directories":{},"sideEffects":false,"_nodeVersion":"22.22.3","dependencies":{"@ai-sdk/google":"^3.0.0","@ai-sdk/openai":"^3.0.0","@ai-sdk/provider":"^3.0.0","@ai-sdk/anthropic":"^3.0.0","@ai-sdk/provider-utils":"^4.0.0","@ai-sdk/openai-compatible":"^2.0.37"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"packageManager":"pnpm@10.28.0","devDependencies":{"msw":"^2.7.0","zod":"^3.25.0","tsup":"^8","jsdom":"^24.0.0","turbo":"^2.5.0","vitest":"^2.0.0","typescript":"5.6.3","@types/node":"20.17.24","@changesets/cli":"^2.29.0","@edge-runtime/vm":"^2.0.0"},"peerDependencies":{"zod":"^3.25.0 || ^4.0.0"},"_npmOperationalInternal":{"tmp":"tmp/ai-sdk-provider_2.2.0_1781190145726_0.2447779708245934","host":"s3://npm-registry-packages-npm-production"}},"2.2.1":{"name":"@aihubmix/ai-sdk-provider","version":"2.2.1","license":"Apache-2.0","packageManager":"pnpm@10.28.0","sideEffects":false,"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","scripts":{"build":"tsup","build:watch":"tsup --watch","clean":"rm -rf dist","lint":"eslint \"./**/*.ts*\"","type-check":"tsc --noEmit","prettier-check":"prettier --check \"./**/*.ts*\" --write","test":"pnpm test:node && pnpm test:edge","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","test:node:watch":"vitest --config vitest.node.config.js"},"exports":{"./package.json":"./package.json",".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"dependencies":{"@ai-sdk/anthropic":"^3.0.0","@ai-sdk/google":"^3.0.0","@ai-sdk/openai":"^3.0.0","@ai-sdk/openai-compatible":"^2.0.37","@ai-sdk/provider":"^3.0.0","@ai-sdk/provider-utils":"^4.0.0"},"peerDependencies":{"zod":"^3.25.0 || ^4.0.0"},"devDependencies":{"@changesets/cli":"^2.29.0","@edge-runtime/vm":"^2.0.0","@types/node":"20.17.24","jsdom":"^24.0.0","msw":"^2.7.0","tsup":"^8","turbo":"^2.5.0","typescript":"5.6.3","vitest":"^2.0.0","zod":"^3.25.0"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"homepage":"https://aihubmix.com","repository":{"type":"git","url":"git+https://github.com/AIhubmix/ai-sdk-provider.git"},"bugs":{"url":"https://github.com/AIhubmix/ai-sdk-provider/issues"},"keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"_id":"@aihubmix/ai-sdk-provider@2.2.1","gitHead":"ec4b737bf9f945f4c17ae0e230121cf81d0154f1","description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","_nodeVersion":"22.22.3","_npmVersion":"10.9.8","dist":{"integrity":"sha512-VUkSYFbrigs5ZF44LRSHEI/q1fZyLkExWvrgBG4w0ysGEE/XXt7fi9NgMG9UH1PQVBgnc/PP03CUhTM1nhmGxQ==","shasum":"987de9051da6b339ab82eafc2701257c77902c02","tarball":"https://registry.npmjs.org/@aihubmix/ai-sdk-provider/-/ai-sdk-provider-2.2.1.tgz","fileCount":11,"unpackedSize":159730,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIExNae2xdpsZGPAbFGt6whqKQMaOVDi1e5w7h6V4JnRZAiAQvhsQ8R++jN5maA+bw8DNpueSkgR2EUYOFS7E0HX5uQ=="}]},"_npmUser":{"name":"chenxue","email":"450907240@qq.com"},"directories":{},"maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/ai-sdk-provider_2.2.1_1781190774537_0.13251010931593887"},"_hasShrinkwrap":false}},"time":{"created":"2025-07-22T12:59:10.138Z","modified":"2026-06-11T15:12:54.903Z","0.0.1":"2025-07-22T12:59:10.412Z","0.0.2":"2025-07-22T14:47:55.381Z","0.0.3":"2025-09-22T03:00:19.825Z","0.0.4":"2025-09-22T03:26:09.854Z","0.0.5":"2025-09-22T04:22:52.741Z","0.0.6":"2025-10-23T07:03:17.505Z","1.0.0":"2025-12-28T07:49:41.822Z","1.0.1":"2025-12-28T07:54:23.904Z","1.0.2":"2026-01-21T07:20:36.506Z","1.0.3":"2026-01-21T07:49:13.716Z","2.0.0":"2026-02-01T09:40:58.743Z","2.0.2":"2026-02-01T10:45:20.821Z","2.0.3":"2026-02-01T11:34:19.378Z","2.0.4":"2026-02-01T11:42:25.894Z","2.0.5":"2026-03-30T17:19:08.549Z","2.0.6":"2026-04-28T09:52:17.998Z","2.1.0":"2026-06-11T11:01:06.070Z","2.2.0":"2026-06-11T15:02:25.934Z","2.2.1":"2026-06-11T15:12:54.751Z"},"bugs":{"url":"https://github.com/AIhubmix/ai-sdk-provider/issues"},"license":"Apache-2.0","homepage":"https://aihubmix.com","keywords":["ai","aihubmix","ai-sdk-provider","ai-sdk"],"repository":{"type":"git","url":"git+https://github.com/AIhubmix/ai-sdk-provider.git"},"description":"<div align=\"center\">   <a href=\"README.md\">🇺🇸 English</a> |    <a href=\"README.zh.md\">🇨🇳 中文</a> |    <a href=\"README.ja.md\">🇯🇵 日本語</a> </div>","maintainers":[{"name":"chenxue","email":"450907240@qq.com"}],"readme":"# AI SDK - Aihubmix Provider\n\n<div align=\"center\">\n  <a href=\"README.md\">🇺🇸 English</a> | \n  <a href=\"README.zh.md\">🇨🇳 中文</a> | \n  <a href=\"README.ja.md\">🇯🇵 日本語</a>\n</div>\n\n> **🎉 10% 折扣！**\n已内置app-code，使用此方式请求所有模型可享受 10% 折扣。\n\n**[Aihubmix 官方网站](https://aihubmix.com/)** | **[模型广场](https://aihubmix.com/models)**\n\n**[Aihubmix provider](https://sdk.vercel.ai/providers/community-providers/aihubmix)** 适用于 [AI SDK](https://ai-sdk.dev/docs)\n一个网关，无限模型；一站式请求：OpenAI、Claude、Gemini、DeepSeek、Qwen 以及超过 500 个 AI 模型。\n\n## 安装 AI SDK v6 版本\n\n```bash\nnpm i @aihubmix/ai-sdk-provider\n```\n\n### （旧版）安装 AI SDK v5 版本\n\n```bash\nnpm i @aihubmix/ai-sdk-provider@0.0.6\n```\n\n## 支持的功能\n\nAihubmix provider 支持以下 AI 功能：\n\n- **文本生成**：使用各种模型进行聊天完成\n- **流式文本**：实时文本流式传输\n- **图像生成**：从文本提示创建图像\n- **嵌入**：单个和批量文本嵌入\n- **对象生成**：使用模式的结构化数据生成\n- **流式对象**：实时结构化数据流式传输\n- **语音合成**：文本转语音转换\n- **转录**：语音转文本转换\n- **工具**：网络搜索和其他工具\n\n## Provider 实例\n\n您可以从 `@aihubmix/ai-sdk-provider` 导入默认的 provider 实例 `aihubmix`：\n\n```ts\nimport { aihubmix } from '@aihubmix/ai-sdk-provider';\n```\n\n## 配置\n\n将您的 Aihubmix API 密钥设置为环境变量：\n\n```bash\nexport AIHUBMIX_API_KEY=\"your-api-key-here\"\n```\n\n或直接传递给 provider：\n\n```ts\nimport { createAihubmix } from '@aihubmix/ai-sdk-provider';\n\nconst aihubmix = createAihubmix({\n  apiKey: 'your-api-key-here',\n});\n```\n\n### `appCode`（可选）\n\n每个请求都会携带 `APP-Code` 请求头。默认使用本包内置的值，因此**通常无需设置**。如果你有自己的 app code，可传入 `appCode` 覆盖默认值：\n\n```ts\nimport { createAihubmix } from '@aihubmix/ai-sdk-provider';\n\nconst aihubmix = createAihubmix({\n  apiKey: 'your-api-key-here',\n  appCode: 'YOUR-APP-CODE', // 可选；不传时回退到内置默认值\n});\n```\n\n### `baseURL`（可选）\n\n默认所有请求发往 `https://aihubmix.com`。若要走自建网关或代理，可传入 `baseURL`（末尾斜杠会自动去除）。`/v1`、`/gemini/v1beta` 等路径会自动拼接：\n\n```ts\nimport { createAihubmix } from '@aihubmix/ai-sdk-provider';\n\nconst aihubmix = createAihubmix({\n  apiKey: 'your-api-key-here',\n  baseURL: 'https://your-gateway.example.com', // 可选；默认 https://aihubmix.com\n});\n```\n\n### 自定义 `fetch`\n\n可传入自定义 `fetch` 实现（用于代理、日志或测试）。它会透传给所有模型 —— OpenAI 兼容、Claude、Gemini、Responses、转录与语音：\n\n```ts\nconst aihubmix = createAihubmix({\n  apiKey: 'your-api-key-here',\n  fetch: myCustomFetch,\n});\n```\n\n## 使用\n\n首先，导入必要的函数：\n\n```ts\nimport { createAihubmix } from '@aihubmix/ai-sdk-provider';\nimport { \n  generateText, \n  streamText, \n  experimental_generateImage as generateImage, \n  embed, \n  embedMany, \n  generateObject, \n  streamObject, \n  experimental_generateSpeech as generateSpeech, \n  experimental_transcribe as transcribe \n} from 'ai';\nimport { z } from 'zod';\n```\n\n> **注意**：`generateImage`、`generateSpeech` 和 `transcribe` 等 API 在 AI SDK v6 中仍为实验性功能。\n\n### 生成文本\n\n```ts\nimport { aihubmix } from '@aihubmix/ai-sdk-provider';\nimport { generateText } from 'ai';\n\nconst { text } = await generateText({\n  model: aihubmix('o4-mini'),\n  prompt: '为4个人写一个素食千层面食谱。',\n});\n```\n\n### Claude 模型\n\n```ts\nimport { aihubmix } from '@aihubmix/ai-sdk-provider';\nimport { generateText } from 'ai';\n\nconst { text } = await generateText({\n  model: aihubmix('claude-3-7-sonnet-20250219'),\n  prompt: '用简单的术语解释量子计算。',\n});\n```\n\n### Gemini 模型\n\n```ts\nimport { aihubmix } from '@aihubmix/ai-sdk-provider';\nimport { generateText } from 'ai';\n\nconst { text } = await generateText({\n  model: aihubmix('gemini-2.5-flash'),\n  prompt: '创建一个Python脚本来对数字列表进行排序。',\n});\n```\n\n### 图像生成\n\n```ts\nimport { aihubmix } from '@aihubmix/ai-sdk-provider';\nimport { generateImage } from 'ai';\n\nconst { image } = await generateImage({\n  model: aihubmix.image('gpt-image-1'),\n  prompt: '山间美丽的日落',\n});\n```\n\n### 嵌入\n\n```ts\nimport { aihubmix } from '@aihubmix/ai-sdk-provider';\nimport { embed } from 'ai';\n\nconst { embedding } = await embed({\n  model: aihubmix.embedding('text-embedding-ada-002'),\n  value: '你好，世界！',\n});\n```\n\n### 转录\n\n```ts\nimport { aihubmix } from '@aihubmix/ai-sdk-provider';\nimport { transcribe } from 'ai';\n\nconst { text } = await transcribe({\n  model: aihubmix.transcription('whisper-1'),\n  audio: audioFile,\n});\n```\n\n### 流式文本\n\n```ts\nimport { aihubmix } from '@aihubmix/ai-sdk-provider';\nimport { streamText } from 'ai';\n\nconst result = streamText({\n  model: aihubmix('gpt-3.5-turbo'),\n  prompt: '写一个关于机器人学习绘画的短故事。',\n  maxOutputTokens: 256,\n  temperature: 0.3,\n  maxRetries: 3,\n});\n\nlet fullText = '';\nfor await (const textPart of result.textStream) {\n  fullText += textPart;\n  process.stdout.write(textPart);\n}\n\nconsole.log('\\n使用情况:', await result.usage);\nconsole.log('完成原因:', await result.finishReason);\n```\n\n### 生成对象\n\n```ts\nimport { aihubmix } from '@aihubmix/ai-sdk-provider';\nimport { generateObject } from 'ai';\nimport { z } from 'zod';\n\nconst result = await generateObject({\n  model: aihubmix('gpt-4o-mini'),\n  schema: z.object({\n    recipe: z.object({\n      name: z.string(),\n      ingredients: z.array(\n        z.object({\n          name: z.string(),\n          amount: z.string(),\n        }),\n      ),\n      steps: z.array(z.string()),\n    }),\n  }),\n  prompt: '生成一个千层面食谱。',\n});\n\nconsole.log(JSON.stringify(result.object.recipe, null, 2));\nconsole.log('Token使用情况:', result.usage);\nconsole.log('完成原因:', result.finishReason);\n```\n\n### 流式对象\n\n```ts\nimport { aihubmix } from '@aihubmix/ai-sdk-provider';\nimport { streamObject } from 'ai';\nimport { z } from 'zod';\n\nconst result = await streamObject({\n  model: aihubmix('gpt-4o-mini'),\n  schema: z.object({\n    recipe: z.object({\n      name: z.string(),\n      ingredients: z.array(\n        z.object({\n          name: z.string(),\n          amount: z.string(),\n        }),\n      ),\n      steps: z.array(z.string()),\n    }),\n  }),\n  prompt: '生成一个千层面食谱。',\n});\n\nfor await (const objectPart of result.partialObjectStream) {\n  console.log(objectPart);\n}\n\nconsole.log('Token使用情况:', result.usage);\nconsole.log('最终对象:', result.object);\n```\n\n### 批量嵌入\n\n```ts\nimport { aihubmix } from '@aihubmix/ai-sdk-provider';\nimport { embedMany } from 'ai';\n\nconst { embeddings, usage } = await embedMany({\n  model: aihubmix.embedding('text-embedding-3-small'),\n  values: [\n    '海滩上的晴天',\n    '城市里的雨天下午',\n    '山间的雪夜',\n  ],\n});\n\nconsole.log('嵌入向量:', embeddings);\nconsole.log('使用情况:', usage);\n```\n\n### 语音合成\n\n```ts\nimport { aihubmix } from '@aihubmix/ai-sdk-provider';\nimport { generateSpeech } from 'ai';\n\nconst { audio } = await generateSpeech({\n  model: aihubmix.speech('tts-1'),\n  text: '你好，这是语音合成的测试。',\n});\n\n// 保存音频文件\nawait saveAudioFile(audio);\nconsole.log('音频生成成功:', audio);\n```\n\n### 工具\n\nAihubmix provider 支持各种工具，包括网络搜索：\n\n```ts\nimport { aihubmix } from '@aihubmix/ai-sdk-provider';\nimport { generateText } from 'ai';\n\nconst { text } = await generateText({\n  model: aihubmix('gpt-4'),\n  prompt: 'AI的最新发展是什么？',\n  tools: {\n    webSearchPreview: aihubmix.tools.webSearchPreview({\n      searchContextSize: 'high',\n    }),\n  },\n});\n```\n\n## 附加资源\n\n- [Aihubmix Provider 仓库](https://github.com/AIhubmix/ai-sdk-provider)\n- [Aihubmix 文档](https://docs.aihubmix.com/en)\n- [Aihubmix 控制台](https://aihubmix.com)\n- [Aihubmix 商务合作](mailto:business@aihubmix.com) \n","readmeFilename":"README.zh.md"}