{"_id":"@anygpt/openai","_rev":"11-a03b259e5bdb8796d351f5ab11af4dd2","name":"@anygpt/openai","dist-tags":{"latest":"2.0.2"},"versions":{"0.1.0":{"name":"@anygpt/openai","version":"0.1.0","keywords":["openai","connector","ai","gpt","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","_id":"@anygpt/openai@0.1.0","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"homepage":"https://github.com/genai-tools/anygpt#readme","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"dist":{"shasum":"f571296276725384d3a9b93be5cfe5279d87ddda","tarball":"https://registry.npmjs.org/@anygpt/openai/-/openai-0.1.0.tgz","fileCount":6,"integrity":"sha512-rHbEBkSYoysEjbCazCfLFSLLz/hWQeJiH6BAudrsYtYJ1f0H3mc3V5/rPFtcJuiZgmxaoeGnP2mIGpAT+OnLGQ==","signatures":[{"sig":"MEUCIEPTrC7Ym/gg2Y/Pppx8Sq4BCy/DEUiiLEpRyjACexIOAiEAnlY+dD4qQYLaQuN94KLTX8oJjuX6T45dBDeEBanqCvk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anygpt%2fopenai@0.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":61082},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"2fd94ce4107cbaaec0807d0e6afac3c1da845b07","_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"repository":{"url":"git+https://github.com/genai-tools/anygpt.git","type":"git","directory":"packages/connectors/openai"},"_npmVersion":"10.9.3","description":"OpenAI connector for AnyGPT - integrates OpenAI API with the router","directories":{},"_nodeVersion":"22.20.0","dependencies":{"openai":"^6.0.0","@anygpt/router":"0.1.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/openai_0.1.0_1759608708428_0.6478494453948267","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@anygpt/openai","version":"0.1.3","keywords":["openai","connector","ai","gpt","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","_id":"@anygpt/openai@0.1.3","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"homepage":"https://github.com/genai-tools/anygpt#readme","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"dist":{"shasum":"24abea226fd6c86c68423dd6956e3c882b0157f8","tarball":"https://registry.npmjs.org/@anygpt/openai/-/openai-0.1.3.tgz","fileCount":6,"integrity":"sha512-lBt1d1A6UVM8kj4NW/T0yxtKL3qQEnTuPs9nvzMnfKBaAr5PvdafNjkqkL32bAYdhf5bANgGCywhSJyLkSCtdg==","signatures":[{"sig":"MEYCIQCVJWwbWXJ+32Av+sW91m2ldVPTbxc5WEdUET6fwMLeQwIhAOGl44LtyhapBI5qcdUXkkAOKbaoD1wqWpJw7VACg6ON","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@anygpt%2fopenai@0.1.3","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":44965},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"7afca831e7f4bc95133539e174c81f7003db1f8a","_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"repository":{"url":"git+https://github.com/genai-tools/anygpt.git","type":"git","directory":"packages/connectors/openai"},"_npmVersion":"10.9.3","description":"OpenAI connector for AnyGPT - integrates OpenAI API with the router","directories":{},"_nodeVersion":"22.20.0","dependencies":{"openai":"^6.0.0","@anygpt/router":"0.2.2"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/openai_0.1.3_1759619530544_0.5749077674073304","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@anygpt/openai","version":"0.1.4","keywords":["openai","connector","ai","gpt","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","_id":"@anygpt/openai@0.1.4","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"homepage":"https://github.com/genai-tools/anygpt#readme","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"dist":{"shasum":"53adcce71cd1238d89af21903e13078a69eaa1ea","tarball":"https://registry.npmjs.org/@anygpt/openai/-/openai-0.1.4.tgz","fileCount":6,"integrity":"sha512-5N/CpJ1tR3QlweUIH39oF8CyvNmyNmmjyf9R9BKy6qDNj9GhGakJynw7I320P8S/nlgqB7YrjzUNI5CHH8Dyaw==","signatures":[{"sig":"MEUCIBQS2ifKTuYzLsq5RNLvutvO0mJsQMIyze0/y19ao2TFAiEAqMSC0Bytb+j3r9bvvwl/uoegDHVGeDOOpztvJTiOfrw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":44965},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"d7cf5764e5689d60076447b0f9234b0649c989be","_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"repository":{"url":"git+https://github.com/genai-tools/anygpt.git","type":"git","directory":"packages/connectors/openai"},"_npmVersion":"11.6.0","description":"OpenAI connector for AnyGPT - integrates OpenAI API with the router","directories":{},"_nodeVersion":"24.9.0","dependencies":{"openai":"^6.0.0","@anygpt/router":"0.2.3"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/openai_0.1.4_1759754272201_0.7474940655173967","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@anygpt/openai","version":"0.2.0","keywords":["openai","connector","ai","gpt","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","_id":"@anygpt/openai@0.2.0","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"homepage":"https://github.com/genai-tools/anygpt#readme","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"dist":{"shasum":"195b7f20b72299b6807327b94d63643632fa2f64","tarball":"https://registry.npmjs.org/@anygpt/openai/-/openai-0.2.0.tgz","fileCount":6,"integrity":"sha512-gXluqBqDRruQpmjesZKDSWKgDU22T08E/OR1b7dfKAg+xRoFdHt7UidH6pA4xj9Yzg9y0rmzSiLSAhIwukR09Q==","signatures":[{"sig":"MEYCIQDy5mNj8TFSHX3tPYdwiQE5obWoImx7qiJ75c7Rymf3CgIhAOWrt4s8yxIF33WokSPWCLo2NHHBixC7Fug6PVaAWZ9A","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47055},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"ad7eeecae0068b43d2f7e702bd88a65d1cfbfc03","_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"repository":{"url":"git+https://github.com/genai-tools/anygpt.git","type":"git","directory":"packages/connectors/openai"},"_npmVersion":"11.6.0","description":"OpenAI connector for AnyGPT - integrates OpenAI API with the router","directories":{},"_nodeVersion":"24.9.0","dependencies":{"openai":"^6.0.0","@anygpt/router":"0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/openai_0.2.0_1759769370736_0.42878158832497393","host":"s3://npm-registry-packages-npm-production"}},"0.3.0":{"name":"@anygpt/openai","version":"0.3.0","keywords":["openai","connector","ai","gpt","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","_id":"@anygpt/openai@0.3.0","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"homepage":"https://github.com/genai-tools/anygpt#readme","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"dist":{"shasum":"96e29adf9a39f4c07e3cccfdecdfaacf56efe2d1","tarball":"https://registry.npmjs.org/@anygpt/openai/-/openai-0.3.0.tgz","fileCount":6,"integrity":"sha512-X1jrhoCUsqB5l3fl/DlBn6DS4zHj1VlVOW8zqaYK0ebuD5a5y03XYYF2S6mO4X47K4wXLMRUG8NwaZD5RF4CZQ==","signatures":[{"sig":"MEUCIDDI4UN3aXn4V4XLMOSzBEyYgs55T0JLrDLEOeoFI6ayAiEAowHKCPvKlN6e4XebRdXGefEv5qfpiRdU1CRX6SQzspc=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":47411},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"78be2eb5ba7ad9b823874031009dacee7133133f","_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"repository":{"url":"git+https://github.com/genai-tools/anygpt.git","type":"git","directory":"packages/connectors/openai"},"_npmVersion":"11.6.0","description":"OpenAI connector for AnyGPT - integrates OpenAI API with the router","directories":{},"_nodeVersion":"24.9.0","dependencies":{"openai":"^6.0.0","@anygpt/router":"0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/openai_0.3.0_1759848107944_0.3740968113325045","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@anygpt/openai","version":"0.3.1","keywords":["openai","connector","ai","gpt","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","_id":"@anygpt/openai@0.3.1","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"homepage":"https://github.com/genai-tools/anygpt#readme","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"dist":{"shasum":"a1a7dcbd94af8789a4b0809b74b46f7161429de0","tarball":"https://registry.npmjs.org/@anygpt/openai/-/openai-0.3.1.tgz","fileCount":6,"integrity":"sha512-ZQ6gY6o6n9cGFUthLfmQNukU9dKp9qK/65TPR+EDR6zzcIFPrtHUSMKvHxTQ1wW2PEDKHUSAmcLuvDpCZvqWOQ==","signatures":[{"sig":"MEUCIEnMD06cNKmj0CpGOcxUlplWwWEXglQmq18qZk662OXeAiEA6Y+PW1w7DHZL/JdrGIBmcauSWdmnybss0PQlTwPNzGw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":48425},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"459adc4bfe025048b6651c480c93334d18691233","_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"repository":{"url":"git+https://github.com/genai-tools/anygpt.git","type":"git","directory":"packages/connectors/openai"},"_npmVersion":"11.6.0","description":"OpenAI connector for AnyGPT - integrates OpenAI API with the router","directories":{},"_nodeVersion":"24.9.0","dependencies":{"openai":"^6.0.0","@anygpt/router":"0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/openai_0.3.1_1759909930952_0.2511033721081597","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@anygpt/openai","version":"0.3.2","keywords":["openai","connector","ai","gpt","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","_id":"@anygpt/openai@0.3.2","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"homepage":"https://github.com/genai-tools/anygpt#readme","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"dist":{"shasum":"62ac015115f7ca2121ec08e16993813e43ee3738","tarball":"https://registry.npmjs.org/@anygpt/openai/-/openai-0.3.2.tgz","fileCount":6,"integrity":"sha512-GYDfdap5oZryEqVHg0gPVUO37tZjKbuWZZWbEbA1ST2Nswf6IMdOX6S54htq0G++JVu8OSHfjkRQhP4arukOXg==","signatures":[{"sig":"MEUCIQDbtMEj/gY7QsHrL2UHpQyf2xTESMa5M0GkIX9SVqw8oQIgA7nw6yfcjz+ohtj3KP3oqU5IXqW8QjghygoUQ6MarWg=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":48412},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"56db327063ac86c0a1e37f8f97c23d089943ed30","_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"repository":{"url":"git+https://github.com/genai-tools/anygpt.git","type":"git","directory":"packages/connectors/openai"},"_npmVersion":"11.6.0","description":"OpenAI connector for AnyGPT - integrates OpenAI API with the router","directories":{},"_nodeVersion":"24.9.0","dependencies":{"openai":"^6.0.0","@anygpt/router":"0.3.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/openai_0.3.2_1759934431653_0.9792226194086417","host":"s3://npm-registry-packages-npm-production"}},"1.0.0":{"name":"@anygpt/openai","version":"1.0.0","keywords":["openai","connector","ai","gpt","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","_id":"@anygpt/openai@1.0.0","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"homepage":"https://github.com/genai-tools/anygpt#readme","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"dist":{"shasum":"c08a7f2f4acecc495805a579fbee7077f703dc21","tarball":"https://registry.npmjs.org/@anygpt/openai/-/openai-1.0.0.tgz","fileCount":6,"integrity":"sha512-rqquOCjVfEXs88PpNWCnTwz7/5Pvmk7casS31nqOXKqgQ1Si2CLpgkNV4UJ1ZB7WdhTya2TNhwv33Yo2OAqHGg==","signatures":[{"sig":"MEQCIFfRdg9dW3JN07mTz9Zy9wCv4x4BqR1wWfjZv/oQYD00AiAV1V1Al9WUMs8EMOfJvo0CBSaK9lnyNFa/OD17ZmKjcw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":48412},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"23f2c0034f0e09fcced1adcc0a354a4bf03bb9ba","_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"repository":{"url":"git+https://github.com/genai-tools/anygpt.git","type":"git","directory":"packages/connectors/openai"},"_npmVersion":"11.6.0","description":"OpenAI connector for AnyGPT - integrates OpenAI API with the router","directories":{},"_nodeVersion":"24.9.0","dependencies":{"openai":"^6.0.0","@anygpt/router":"0.3.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/openai_1.0.0_1760004026255_0.31495138877581197","host":"s3://npm-registry-packages-npm-production"}},"1.1.0":{"name":"@anygpt/openai","version":"1.1.0","keywords":["openai","connector","ai","gpt","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","_id":"@anygpt/openai@1.1.0","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"homepage":"https://github.com/genai-tools/anygpt#readme","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"dist":{"shasum":"2567979d7fd2ee758a97bb62c1429437e0090918","tarball":"https://registry.npmjs.org/@anygpt/openai/-/openai-1.1.0.tgz","fileCount":6,"integrity":"sha512-EQF/Qkwx5zlKwsITPlYkP0/cEcKiwZolNCOr+DGdIromQukO/eWJ4yheSEp1x7PSVciecWRFcqDKo6/vcxJVLg==","signatures":[{"sig":"MEUCIQClS/JCvpXTGIdJ2DR6UZBRK9YPTzOBKugadR2Ba0JcvgIgZVhZ3NI+GtsFixXpOy4fZXuXxYYUuBmkVVmu8l4oSAk=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":61021},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"a6449019274244c118f478b3c2e182e9a3503d02","_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"repository":{"url":"git+https://github.com/genai-tools/anygpt.git","type":"git","directory":"packages/connectors/openai"},"_npmVersion":"11.6.0","description":"OpenAI connector for AnyGPT - integrates OpenAI API with the router","directories":{},"_nodeVersion":"24.9.0","dependencies":{"openai":"^6.0.0","@anygpt/router":"0.4.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/openai_1.1.0_1760222998163_0.9693383893773744","host":"s3://npm-registry-packages-npm-production"}},"1.3.0":{"name":"@anygpt/openai","version":"1.3.0","keywords":["openai","connector","ai","gpt","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","_id":"@anygpt/openai@1.3.0","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"homepage":"https://github.com/genai-tools/anygpt#readme","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"dist":{"shasum":"6823057a653cfadad159af9c8d651616a9e4945f","tarball":"https://registry.npmjs.org/@anygpt/openai/-/openai-1.3.0.tgz","fileCount":6,"integrity":"sha512-GTgpBsVg4VQys4Mn/9L7zlVlfbfK+p2f1CaMXAHwbyEAReSYk2md6ccHYdg/vSNortEQ5aUyna7hkqdGiSJvgA==","signatures":[{"sig":"MEUCIQC+ZF5/GYr3HYUEEcyytMkLn/yQbtDrK/8QJ/M2ZZGrdwIgG0sXwVTJYnl1iL6SvVO6YeIBhgXRPl9lIckd1jN2grQ=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":74719},"main":"./dist/index.js","type":"module","types":"./dist/index.d.ts","module":"./dist/index.js","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"},"./package.json":"./package.json"},"gitHead":"6cd81e0e51813dca22fe3fd30f707d7b42a52e15","_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"repository":{"url":"git+https://github.com/genai-tools/anygpt.git","type":"git","directory":"packages/connectors/openai"},"_npmVersion":"11.6.1","description":"OpenAI connector for AnyGPT - integrates OpenAI API with the router","directories":{},"_nodeVersion":"24.10.0","dependencies":{"openai":"^6.0.0","@anygpt/router":"0.5.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/openai_1.3.0_1760436827035_0.8201804935706338","host":"s3://npm-registry-packages-npm-production"}},"2.0.2":{"name":"@anygpt/openai","version":"2.0.2","description":"OpenAI connector for AnyGPT - integrates OpenAI API with the router","type":"module","main":"./dist/index.js","module":"./dist/index.js","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":{"types":"./dist/index.d.ts","import":"./dist/index.js","default":"./dist/index.js"}},"repository":{"type":"git","url":"git+https://github.com/genai-tools/anygpt.git","directory":"packages/connectors/openai"},"keywords":["openai","connector","ai","gpt","llm"],"author":{"name":"AnyGPT Contributors"},"license":"MIT","bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"homepage":"https://github.com/genai-tools/anygpt#readme","publishConfig":{"access":"public"},"dependencies":{"@anygpt/router":"0.6.1","openai":"^6.3.0","@anygpt/types":"2.0.1"},"gitHead":"694856d0f9aa5bafc05fbf934367a8add2fddb59","_id":"@anygpt/openai@2.0.2","_nodeVersion":"24.10.0","_npmVersion":"11.6.1","dist":{"integrity":"sha512-ffgRxzKg5H4b5sLx++AifSYbkU9Jh4KoKl4uZ1zUD7u0a+9AEBdHsi9T5jHA0+G2MeDzl34PyP1mdCRiONZQ2w==","shasum":"3f51a57ada125bc46d2654b0f9300a14eeeb7f52","tarball":"https://registry.npmjs.org/@anygpt/openai/-/openai-2.0.2.tgz","fileCount":6,"unpackedSize":72287,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIETXgM3eCaN8ju3r8ovlOOyYYJpSj+CLuxLecvwv9z8CAiBMKS65Fv9CavIRbShAslD/tPQ2yG59+Zb6qWudcQruzw=="}]},"_npmUser":{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"},"directories":{},"maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/openai_2.0.2_1761046514683_0.26037463752038503"},"_hasShrinkwrap":false}},"time":{"created":"2025-10-04T20:11:48.314Z","modified":"2025-10-21T11:35:15.112Z","0.1.0":"2025-10-04T20:11:48.623Z","0.1.3":"2025-10-04T23:12:10.736Z","0.1.4":"2025-10-06T12:37:52.395Z","0.2.0":"2025-10-06T16:49:30.931Z","0.3.0":"2025-10-07T14:41:48.119Z","0.3.1":"2025-10-08T07:52:11.195Z","0.3.2":"2025-10-08T14:40:31.836Z","1.0.0":"2025-10-09T10:00:26.432Z","1.1.0":"2025-10-11T22:49:58.355Z","1.3.0":"2025-10-14T10:13:47.218Z","2.0.2":"2025-10-21T11:35:14.865Z"},"bugs":{"url":"https://github.com/genai-tools/anygpt/issues"},"author":{"name":"AnyGPT Contributors"},"license":"MIT","homepage":"https://github.com/genai-tools/anygpt#readme","keywords":["openai","connector","ai","gpt","llm"],"repository":{"type":"git","url":"git+https://github.com/genai-tools/anygpt.git","directory":"packages/connectors/openai"},"description":"OpenAI connector for AnyGPT - integrates OpenAI API with the router","maintainers":[{"name":"theplenkov-npm","email":"petr.plenkov@gmail.com"}],"readme":"# @anygpt/openai\n\nOpenAI connector for the AnyGPT router system. This package provides a connector implementation that allows the router to communicate with OpenAI and OpenAI-compatible APIs.\n\n## Features\n\n- **OpenAI API Support**: Full support for OpenAI's Chat Completions API\n- **OpenAI-Compatible APIs**: Works with any OpenAI-compatible endpoint (Ollama, LocalAI, etc.)\n- **Hook System**: Transform requests and responses without modifying code\n- **Response API Fallback**: Automatically falls back to Chat Completions API when Response API is not available\n- **Flexible Configuration**: Support for custom base URLs and API keys\n- **Type Safety**: Full TypeScript support with proper type definitions\n\n## Installation\n\n```bash\nnpm install @anygpt/openai @anygpt/router\n```\n\n## Usage\n\n```typescript\nimport { OpenAIConnector, OpenAIConnectorFactory } from '@anygpt/openai';\nimport { ConnectorRegistry } from '@anygpt/router';\n\n// Register the connector\nconst registry = new ConnectorRegistry();\nregistry.registerConnector(new OpenAIConnectorFactory());\n\n// Create a connector instance\nconst connector = registry.createConnector('openai', {\n  apiKey: 'your-api-key',\n  baseURL: 'https://api.openai.com/v1', // Optional: for custom endpoints\n});\n\n// Use the connector\nconst response = await connector.chatCompletion({\n  model: 'gpt-3.5-turbo',\n  messages: [{ role: 'user', content: 'Hello!' }],\n});\n```\n\n## Configuration\n\nThe OpenAI connector accepts the following configuration options:\n\n- `apiKey`: Your OpenAI API key (optional for some compatible APIs)\n- `baseURL`: Custom API endpoint URL (useful for Ollama, LocalAI, etc.)\n- `timeout`: Request timeout in milliseconds (default: 30000)\n- `maxRetries`: Maximum number of retries (default: 3)\n- `logger`: Custom logger instance\n- `hooks`: Transform functions for requests and responses (see [Hook System](./docs/hooks.md))\n\n## OpenAI-Compatible APIs\n\nThis connector works with various OpenAI-compatible APIs:\n\n- **Ollama**: `baseURL: 'http://localhost:11434/v1'`\n- **LocalAI**: `baseURL: 'http://localhost:8080/v1'`\n- **Together AI**: `baseURL: 'https://api.together.xyz/v1'`\n- **Anyscale**: `baseURL: 'https://api.endpoints.anyscale.com/v1'`\n\n## Hook System\n\nThe connector supports a powerful hook system for transforming requests and responses:\n\n```typescript\nimport { openai } from '@anygpt/openai';\n\nconst connector = openai({\n  baseURL: 'https://api.example.com',\n  hooks: {\n    'chat:request': (body, context) => {\n      // Transform the request before sending\n      return { ...body, custom_param: 'value' };\n    },\n  },\n});\n```\n\nSee the [Hook System Guide](./docs/hooks.md) for detailed documentation and examples.\n\n## Dependencies\n\nThis package depends on:\n\n- `@anygpt/router`: Provides the base connector class and types\n- `openai`: Official OpenAI SDK for API communication\n","readmeFilename":"README.md"}