{"_id":"@ai-toolkit/cerebras","name":"@ai-toolkit/cerebras","dist-tags":{"latest":"0.1.13"},"versions":{"0.1.13":{"name":"@ai-toolkit/cerebras","version":"0.1.13","license":"Apache-2.0","sideEffects":false,"main":"./dist/index.js","module":"./dist/index.mjs","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"dependencies":{"@ai-toolkit/openai-compatible":"0.1.13","@ai-toolkit/provider":"1.0.10","@ai-toolkit/provider-utils":"2.1.11"},"devDependencies":{"@types/node":"^18","tsup":"^8","typescript":"5.6.3","zod":"3.23.8","@khulnasoft/ai-tsconfig":"0.0.0"},"peerDependencies":{"zod":"^3.0.0"},"engines":{"node":">=18"},"publishConfig":{"access":"public"},"homepage":"https://sdk.khulnasoft.com/docs","repository":{"type":"git","url":"git+https://github.com/khulnasoft/ai-toolkit.git"},"bugs":{"url":"https://github.com/khulnasoft/ai-toolkit/issues"},"keywords":["ai-toolkit"],"scripts":{"build":"tsup","build:watch":"tsup --watch","clean":"rm -rf dist","lint":"eslint \"./**/*.ts*\"","type-check":"tsc --noEmit","prettier-check":"prettier --check \"./**/*.ts*\"","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"},"_id":"@ai-toolkit/cerebras@0.1.13","description":"The **Cerebras provider** for the [AI TOOLKIT](https://sdk.khulnasoft.com/docs) contains language model support for [Cerebras](https://cerebras.ai), offering high-speed AI model inference powered by Cerebras Wafer-Scale Engines and CS-3 systems.","_integrity":"sha512-KuqknHFBQw/Xw/5ITSS6MbdnAT7k0JhEbHa8u/Y0h5+gg733BWWj1CQ/EHoyUvNIdO9RLurf+FQYcAHXGHVojQ==","_resolved":"/tmp/4146409636d461f3d225d91237fb99ec/ai-toolkit-cerebras-0.1.13.tgz","_from":"file:ai-toolkit-cerebras-0.1.13.tgz","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-KuqknHFBQw/Xw/5ITSS6MbdnAT7k0JhEbHa8u/Y0h5+gg733BWWj1CQ/EHoyUvNIdO9RLurf+FQYcAHXGHVojQ==","shasum":"7cb310004218692ab39ec74b6232271a9dcd046f","tarball":"https://registry.npmjs.org/@ai-toolkit/cerebras/-/cerebras-0.1.13.tgz","fileCount":9,"unpackedSize":21179,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDAjtNMLveFrlevZ0wpLwgGNQKogvndM5HcWKGhPf9dmQIhANBsUVVV99rDAelT6f8zH3oOmda4buvqZ7IsGcJC8Zdt"}]},"_npmUser":{"name":"khulnasoft-lab","email":"iconmamundentist@gmail.com"},"directories":{},"maintainers":[{"name":"khulnasoft-lab","email":"iconmamundentist@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/cerebras_0.1.13_1741546702012_0.403153075226935"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-09T18:58:21.931Z","0.1.13":"2025-03-09T18:58:22.206Z","modified":"2025-03-09T18:58:22.457Z"},"maintainers":[{"name":"khulnasoft-lab","email":"iconmamundentist@gmail.com"}],"description":"The **Cerebras provider** for the [AI TOOLKIT](https://sdk.khulnasoft.com/docs) contains language model support for [Cerebras](https://cerebras.ai), offering high-speed AI model inference powered by Cerebras Wafer-Scale Engines and CS-3 systems.","homepage":"https://sdk.khulnasoft.com/docs","keywords":["ai-toolkit"],"repository":{"type":"git","url":"git+https://github.com/khulnasoft/ai-toolkit.git"},"bugs":{"url":"https://github.com/khulnasoft/ai-toolkit/issues"},"license":"Apache-2.0","readme":"# AI TOOLKIT - Cerebras Provider\n\nThe **Cerebras provider** for the [AI TOOLKIT](https://sdk.khulnasoft.com/docs) contains language model support for [Cerebras](https://cerebras.ai), offering high-speed AI model inference powered by Cerebras Wafer-Scale Engines and CS-3 systems.\n\n## Setup\n\nThe Cerebras provider is available in the `@ai-toolkit/cerebras` module. You can install it with\n\n```bash\nnpm i @ai-toolkit/cerebras\n```\n\n## Provider Instance\n\nYou can import the default provider instance `cerebras` from `@ai-toolkit/cerebras`:\n\n```ts\nimport { cerebras } from '@ai-toolkit/cerebras';\n```\n\n## Available Models\n\nCurrently, Cerebras offers two models:\n\n### Llama 3.1 8B\n\n- Model ID: `llama3.1-8b`\n- 8 billion parameters\n- Knowledge cutoff: March 2023\n- Context Length: 8192\n- Training Tokens: 15 trillion+\n\n### Llama 3.3 70B\n\n- Model ID: `llama-3.3-70b`\n- 70 billion parameters\n- Knowledge cutoff: December 2023\n- Context Length: 8192\n- Training Tokens: 15 trillion+\n\n## Example\n\n```ts\nimport { cerebras } from '@ai-toolkit/cerebras';\nimport { generateText } from 'ai-toolkit';\n\nconst { text } = await generateText({\n  model: cerebras('llama3.1-8b'),\n  prompt: 'Write a JavaScript function that sorts a list:',\n});\n```\n\n## Documentation\n\nFor more information about Cerebras' high-speed inference capabilities and API documentation, please visit:\n\n- [Cerebras Inference Documentation](https://inference-docs.cerebras.ai/introduction)\n- [Cerebras Website](https://cerebras.ai)\n\nNote: Due to high demand in the early launch phase, context windows are temporarily limited to 8192 tokens in the Free Tier.\n","readmeFilename":"README.md","_rev":"1-ecfce701d7f93f472033d49cd3111684"}