{"name":"@ai-sdk/openai","version":"2.0.0-beta.10","keywords":["ai"],"license":"Apache-2.0","_id":"@ai-sdk/openai@2.0.0-beta.10","maintainers":[{"name":"jaredpalmer","email":"jared@palmer.net"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"}],"homepage":"https://ai-sdk.dev/docs","bugs":{"url":"https://github.com/vercel/ai/issues"},"dist":{"shasum":"0784ac2235078b44b8727d090c1cfcee9dc0b370","tarball":"http://registry-npm.ywwl.com/@ai-sdk/openai/download/@ai-sdk/openai-2.0.0-beta.10.tgz","fileCount":17,"integrity":"sha512-Arrd6rwughV76lGvmoR+Nns5X6QTBOFN7IBUoC9zozekVGln09cQRn8Lo4KEE8coFtN85/668S4NI3Z7xV/mBw==","signatures":[{"sig":"MEQCIAKgHSCeycR8MU+hGDWMoMFFYJ9BdOLWZNtoPhNci00mAiBQ+0nfiAWX8Zndkx7jmTvI0DLc/n/T+6O6042TJsTfLA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":1280926,"size":228107,"noattachment":false,"key":"/@ai-sdk/openai/-/@ai-sdk/openai-2.0.0-beta.10.tgz"},"main":"./dist/index.js","_from":"file:ai-sdk-openai-2.0.0-beta.10.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":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"pnpm clean && tsup --tsconfig tsconfig.build.json","clean":"rm -rf dist *.tsbuildinfo","test:edge":"vitest --config vitest.edge.config.js --run","test:node":"vitest --config vitest.node.config.js --run","test:watch":"vitest --config vitest.node.config.js","type-check":"tsc --build","build:watch":"pnpm clean && tsup --watch","test:update":"pnpm test:node -u","prettier-check":"prettier --check \"./**/*.ts*\""},"_npmUser":{"name":"vercel-release-bot","email":"infra+release@vercel.com"},"_resolved":"/tmp/70ba4dd6e7dbac992b4872df4482e20d/ai-sdk-openai-2.0.0-beta.10.tgz","_integrity":"sha512-Arrd6rwughV76lGvmoR+Nns5X6QTBOFN7IBUoC9zozekVGln09cQRn8Lo4KEE8coFtN85/668S4NI3Z7xV/mBw==","repository":{"url":"git+https://github.com/vercel/ai.git","type":"git"},"_npmVersion":"10.9.2","description":"The **[OpenAI provider](https://ai-sdk.dev/providers/ai-sdk-providers/openai)** for the [AI SDK](https://ai-sdk.dev/docs) contains language model support for the OpenAI chat and completion APIs and embedding model support for the OpenAI embeddings API.","directories":{},"sideEffects":false,"_nodeVersion":"22.17.0","dependencies":{"@ai-sdk/provider":"2.0.0-beta.1","@ai-sdk/provider-utils":"3.0.0-beta.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"zod":"3.25.76","tsup":"^8","typescript":"5.8.3","@types/node":"20.17.24","@vercel/ai-tsconfig":"0.0.0"},"peerDependencies":{"zod":"^3.25.76 || ^4"},"_npmOperationalInternal":{"tmp":"tmp/openai_2.0.0-beta.10_1752759741428_0.5940729041515493","host":"s3://npm-registry-packages-npm-production"},"readme":"# AI SDK - OpenAI Provider\n\nThe **[OpenAI provider](https://ai-sdk.dev/providers/ai-sdk-providers/openai)** for the [AI SDK](https://ai-sdk.dev/docs)\ncontains language model support for the OpenAI chat and completion APIs and embedding model support for the OpenAI embeddings API.\n\n> **Deploying to Vercel?** With Vercel's AI Gateway you can access OpenAI (and hundreds of models from other providers) — no additional packages, API keys, or extra cost. [Get started with AI Gateway](https://vercel.com/ai-gateway).\n\n## Setup\n\n```bash\nnpm i ai @ai-sdk/openai\n```\n\n## Skill for Coding Agents\n\nIf you use coding agents such as Claude Code or Cursor, we highly recommend adding the AI SDK skill to your repository:\n\n```shell\nnpx skills add vercel/ai\n```\n\n## Usage\n\n```ts\nimport { openai } from '@ai-sdk/openai';\nimport { generateText } from 'ai';\n\nconst { text } = await generateText({\n  model: openai('gpt-6-luna'),\n  prompt: 'Write a vegetarian lasagna recipe for 4 people.',\n});\n```\n\nSee the [OpenAI Provider documentation](https://ai-sdk.dev/providers/ai-sdk-providers/openai) for more information.\n","publish_time":1752759741650,"_cnpm_publish_time":1752759741650,"dist-tags":{"ai-v5":"2.0.141","ai-v6":"3.0.139","alpha":"2.0.0-alpha.15","beta":"4.0.0-beta.77","canary":"4.0.0-canary.73","latest":"4.0.111","snapshot":"0.0.0-f1630544-20260811180950"}}