{"_id":"@ai-toolkit/xai","name":"@ai-toolkit/xai","dist-tags":{"latest":"1.1.13"},"versions":{"1.1.13":{"name":"@ai-toolkit/xai","version":"1.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/xai@1.1.13","description":"The **[xAI Grok provider](https://sdk.khulnasoft.com/providers/ai-toolkit-providers/xai)** for the [AI TOOLKIT](https://sdk.khulnasoft.com/docs) contains language model support for the xAI chat and completion APIs.","_integrity":"sha512-NSW0Ha7DieVVSBfnAxYiDRim4PuBZMpMTBeTGPqlSBCV6MCi4CCU/hbibaICxo7m9FKPntxollh9JqRy+bWPLQ==","_resolved":"/tmp/99a3cf70f54fe13a86e878b03a7367d6/ai-toolkit-xai-1.1.13.tgz","_from":"file:ai-toolkit-xai-1.1.13.tgz","_nodeVersion":"22.13.1","_npmVersion":"10.9.2","dist":{"integrity":"sha512-NSW0Ha7DieVVSBfnAxYiDRim4PuBZMpMTBeTGPqlSBCV6MCi4CCU/hbibaICxo7m9FKPntxollh9JqRy+bWPLQ==","shasum":"d7411870beff7efe4d0f79e803fc4d50460af857","tarball":"https://registry.npmjs.org/@ai-toolkit/xai/-/xai-1.1.13.tgz","fileCount":9,"unpackedSize":21636,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDfHAjDdDIqj9SyqNXqFzgwBDLwG1CFfTsP02yYGNypowIhAOzz9h/KbT9aiH+CvIy6Ke6wrMduuOFa6m7KB1YWkTrP"}]},"_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/xai_1.1.13_1741546730534_0.7958434242943617"},"_hasShrinkwrap":false}},"time":{"created":"2025-03-09T18:58:50.418Z","1.1.13":"2025-03-09T18:58:50.689Z","modified":"2025-03-09T18:58:51.023Z"},"maintainers":[{"name":"khulnasoft-lab","email":"iconmamundentist@gmail.com"}],"description":"The **[xAI Grok provider](https://sdk.khulnasoft.com/providers/ai-toolkit-providers/xai)** for the [AI TOOLKIT](https://sdk.khulnasoft.com/docs) contains language model support for the xAI chat and completion APIs.","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 - xAI Grok Provider\n\nThe **[xAI Grok provider](https://sdk.khulnasoft.com/providers/ai-toolkit-providers/xai)** for the [AI TOOLKIT](https://sdk.khulnasoft.com/docs)\ncontains language model support for the xAI chat and completion APIs.\n\n## Setup\n\nThe xAI Grok provider is available in the `@ai-toolkit/xai` module. You can install it with\n\n```bash\nnpm i @ai-toolkit/xai\n```\n\n## Provider Instance\n\nYou can import the default provider instance `xai` from `@ai-toolkit/xai`:\n\n```ts\nimport { xai } from '@ai-toolkit/xai';\n```\n\n## Example\n\n```ts\nimport { xai } from '@ai-toolkit/xai';\nimport { generateText } from 'ai-toolkit';\n\nconst { text } = await generateText({\n  model: xai('grok-2-1212'),\n  prompt: 'Write a vegetarian lasagna recipe for 4 people.',\n});\n```\n\n## Documentation\n\nPlease check out the **[xAI Grok provider documentation](https://sdk.khulnasoft.com/providers/ai-toolkit-providers/xai)** for more information.\n","readmeFilename":"README.md","_rev":"1-218d20184cca336a89ed412659b9e2ec"}