{"name":"@ai-sdk/openai","version":"1.0.12","keywords":["ai"],"license":"Apache-2.0","_id":"@ai-sdk/openai@1.0.12","maintainers":[{"name":"jaredpalmer","email":"jared@palmer.net"},{"name":"vercel-release-bot","email":"infra+release@vercel.com"}],"homepage":"https://sdk.vercel.ai/docs","bugs":{"url":"https://github.com/vercel/ai/issues"},"dist":{"shasum":"1dfbe5ab5c3448a70756f9cc8524e035c6d9c3f7","tarball":"http://registry-npm.ywwl.com/@ai-sdk/openai/download/@ai-sdk/openai-1.0.12.tgz","fileCount":16,"integrity":"sha512-w/fe7UJLbTAnSYO/o0phdVYC/Xzt/N75I6H4CRj5Zx+etbnNgTrfgFxYNxUY2kEhAeZZvuSm4xwVzWPKX741rw==","signatures":[{"sig":"MEQCIAy5dSS9vY1uFttkeGBsFL0b5uuu3n0cov02U0yWstp9AiAuOFIFmR9mQN1xJptiwoay1cOOlpwFY1wueVD96bBeYg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":610749,"size":105638,"noattachment":false,"key":"/@ai-sdk/openai/-/@ai-sdk/openai-1.0.12.tgz"},"main":"./dist/index.js","_from":"file:ai-sdk-openai-1.0.12.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":"./internal/dist/index.d.ts","import":"./internal/dist/index.mjs","module":"./internal/dist/index.mjs","require":"./internal/dist/index.js"},"./package.json":"./package.json"},"scripts":{"lint":"eslint \"./**/*.ts*\"","test":"pnpm test:node && pnpm test:edge","build":"tsup","clean":"rm -rf dist && rm -rf internal/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*\""},"_npmUser":{"name":"vercel-release-bot","email":"infra+release@vercel.com"},"_resolved":"/tmp/b3be88a836f5defefbbd75d19dbaf52f/ai-sdk-openai-1.0.12.tgz","_integrity":"sha512-w/fe7UJLbTAnSYO/o0phdVYC/Xzt/N75I6H4CRj5Zx+etbnNgTrfgFxYNxUY2kEhAeZZvuSm4xwVzWPKX741rw==","repository":{"url":"git+https://github.com/vercel/ai.git","type":"git"},"_npmVersion":"10.8.2","description":"The **[OpenAI provider](https://sdk.vercel.ai/providers/ai-sdk-providers/openai)** for the [AI SDK](https://sdk.vercel.ai/docs) contains language model support for the OpenAI chat and completion APIs and embedding model support for the OpenAI embeddings A","directories":{},"sideEffects":false,"_nodeVersion":"18.20.5","dependencies":{"@ai-sdk/provider":"1.0.3","@ai-sdk/provider-utils":"2.0.5"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"zod":"3.23.8","tsup":"^8","typescript":"5.6.3","@types/node":"^18","@vercel/ai-tsconfig":"0.0.0"},"peerDependencies":{"zod":"^3.0.0"},"_npmOperationalInternal":{"tmp":"tmp/openai_1.0.12_1735810784601_0.3466943450705855","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":1735810784764,"_cnpm_publish_time":1735810784764,"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"}}