{"_id":"@byokey/openai","_rev":"3-4efb51082272f61853951a8bf4f92d56","name":"@byokey/openai","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.0":{"name":"@byokey/openai","version":"0.1.0","keywords":["byok","ai","llm","openai","typescript"],"license":"MIT","_id":"@byokey/openai@0.1.0","maintainers":[{"name":"aryanmehra","email":"aryanmehra.mains@gmail.com"}],"homepage":"https://github.com/themehraaryan/byokey","bugs":{"url":"https://github.com/themehraaryan/byokey/issues"},"dist":{"shasum":"15cb33cd0e1a9d6d8ac1f67b06f853cab944dd8b","tarball":"https://registry.npmjs.org/@byokey/openai/-/openai-0.1.0.tgz","fileCount":7,"integrity":"sha512-4Es6o8jgn//8TEC/XEXpdvJHaB5DmVnEgvq23FcxsfJ4JKoWUTvgo9gAeD39+6amqxK1ptXAQkGCh3YBthOWyA==","signatures":[{"sig":"MEYCIQDUPFpki5Cd4Rr5AdhdYjTClYefEDN++ayYvXwlLbf5VgIhALeUBt4eP9/q6txZ4PBlT8soEn37BWAx6ZBWN/Iu1fAz","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35631},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"a9d8d4d422264b04cd296a2e01fec361c2cc8b5f","scripts":{"build":"tsup","clean":"rimraf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"aryanmehra","email":"aryanmehra.mains@gmail.com"},"repository":{"url":"git+https://github.com/themehraaryan/byokey.git","type":"git","directory":"packages/openai"},"_npmVersion":"11.6.2","description":"OpenAI provider adapter for the BYOK Infrastructure Toolkit","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@byokey/types":"workspace:*"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.4.0"},"_npmOperationalInternal":{"tmp":"tmp/openai_0.1.0_1773600792547_0.12889688536407662","host":"s3://npm-registry-packages-npm-production"}},"0.1.1":{"name":"@byokey/openai","version":"0.1.1","keywords":["byok","ai","llm","openai","typescript"],"license":"MIT","_id":"@byokey/openai@0.1.1","maintainers":[{"name":"aryanmehra","email":"aryanmehra.mains@gmail.com"}],"homepage":"https://github.com/themehraaryan/byokey","bugs":{"url":"https://github.com/themehraaryan/byokey/issues"},"dist":{"shasum":"dfea084d0fcabc51e991072c3da578e330aabea1","tarball":"https://registry.npmjs.org/@byokey/openai/-/openai-0.1.1.tgz","fileCount":7,"integrity":"sha512-dFVX3NbqCMYktvhoOAPnCjYtIvFubCVBRQUXiHmimn9S551iGarR7RhGJgmZQYt0qpHHTTSdMoON/kSCdrYESg==","signatures":[{"sig":"MEQCIBC0bjwteDUP3ldbS8XSJ6tpfGbIqgFOzg6SetcxsrqTAiAwyGzIenOIgp4Iu5v0Uo9hBXO1YNozaeCdU5JroT0WIg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":35626},"main":"./dist/index.cjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"gitHead":"a9d8d4d422264b04cd296a2e01fec361c2cc8b5f","scripts":{"build":"tsup","clean":"rimraf dist","typecheck":"tsc --noEmit"},"_npmUser":{"name":"aryanmehra","email":"aryanmehra.mains@gmail.com"},"repository":{"url":"git+https://github.com/themehraaryan/byokey.git","type":"git","directory":"packages/openai"},"_npmVersion":"11.6.2","description":"OpenAI provider adapter for the BYOK Infrastructure Toolkit","directories":{},"_nodeVersion":"24.13.0","dependencies":{"@byokey/types":"^0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","typescript":"^5.4.0"},"_npmOperationalInternal":{"tmp":"tmp/openai_0.1.1_1773601980157_0.8522138765974743","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@byokey/openai","version":"0.2.0","description":"OpenAI provider adapter for the BYOK Infrastructure Toolkit","type":"module","main":"./dist/index.cjs","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.cjs"}},"dependencies":{"@byokey/types":"^0.2.0"},"devDependencies":{"tsup":"^8.0.0","typescript":"^5.4.0"},"license":"MIT","publishConfig":{"access":"public"},"keywords":["byok","ai","llm","openai","typescript"],"homepage":"https://github.com/themehraaryan/byokey","repository":{"type":"git","url":"git+https://github.com/themehraaryan/byokey.git","directory":"packages/openai"},"scripts":{"build":"tsup","typecheck":"tsc --noEmit","clean":"rimraf dist"},"_id":"@byokey/openai@0.2.0","bugs":{"url":"https://github.com/themehraaryan/byokey/issues"},"_integrity":"sha512-7OHSEanM+4Q2ineUMWIwyZl5zE0rbUm+6lymgRyMy/tDut6E+hr7i9cxtViA26ipW7CGxmFamMIVchiEWd+j6g==","_resolved":"C:\\Users\\ARYANM~1\\AppData\\Local\\Temp\\16f9002825542e8a694dc050488ed8a9\\byokey-openai-0.2.0.tgz","_from":"file:byokey-openai-0.2.0.tgz","_nodeVersion":"24.13.0","_npmVersion":"11.6.2","dist":{"integrity":"sha512-7OHSEanM+4Q2ineUMWIwyZl5zE0rbUm+6lymgRyMy/tDut6E+hr7i9cxtViA26ipW7CGxmFamMIVchiEWd+j6g==","shasum":"f04e052467c0be43124e02e223b7dad1c66bd92e","tarball":"https://registry.npmjs.org/@byokey/openai/-/openai-0.2.0.tgz","fileCount":9,"unpackedSize":37484,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIAIOPFyChqKXT61KgBJK++UdAAiidwlPgudP3MEv3fi1AiEAk5PDRXuh6znF37u30KMwww2jI+R3Mohva5v4W6vIFWE="}]},"_npmUser":{"name":"aryanmehra","email":"aryanmehra.mains@gmail.com"},"directories":{},"maintainers":[{"name":"aryanmehra","email":"aryanmehra.mains@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/openai_0.2.0_1774100940364_0.6007369887613443"},"_hasShrinkwrap":false}},"time":{"created":"2026-03-15T18:53:12.491Z","modified":"2026-03-21T13:49:00.647Z","0.1.0":"2026-03-15T18:53:12.699Z","0.1.1":"2026-03-15T19:13:00.312Z","0.2.0":"2026-03-21T13:49:00.510Z"},"bugs":{"url":"https://github.com/themehraaryan/byokey/issues"},"license":"MIT","homepage":"https://github.com/themehraaryan/byokey","keywords":["byok","ai","llm","openai","typescript"],"repository":{"type":"git","url":"git+https://github.com/themehraaryan/byokey.git","directory":"packages/openai"},"description":"OpenAI provider adapter for the BYOK Infrastructure Toolkit","maintainers":[{"name":"aryanmehra","email":"aryanmehra.mains@gmail.com"}],"readme":"# @byokey/openai\n\nOpenAI provider adapter for the BYOK Infrastructure Toolkit.\n\nSupports all OpenAI chat completion models including GPT-5.4, GPT-4.1, o3-mini, and o1.\n\n## Installation\n\n```bash\nnpm install @byokey/core @byokey/openai\n```\n\n## Usage\n\n```typescript\nimport { createClient } from '@byokey/core';\nimport { openai } from '@byokey/openai';\n\nconst client = createClient({ adapters: [openai()] });\n\nconst response = await client.execute({\n  provider: 'openai',\n  model: 'gpt-5.4',\n  credential: 'sk-...',\n  messages: [{ role: 'user', content: 'Hello!' }]\n});\n```\n\n## Configuration\n\n```typescript\nopenai({\n  baseUrl: 'https://api.openai.com/v1/chat/completions', // Custom endpoint\n  timeoutMs: 30000, // Request timeout\n});\n```\n\n## License\n\n[MIT](../../LICENSE)\n","readmeFilename":"README.md"}