{"_id":"nextjs-openai","_rev":"94-9f74979605c3c91007fb0bfbbf333872","name":"nextjs-openai","dist-tags":{"latest":"7.2.0","canary":"6.9.1-canary.1"},"versions":{"0.0.1":{"name":"nextjs-openai","version":"0.0.1","license":"MIT","type":"module","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","dev":"next dev","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.26.0","@types/node":"^18.11.18","@types/react":"^18.0.23","@types/react-dom":"^18.0.7","@typescript-eslint/eslint-plugin":"^5.48.2","@typescript-eslint/parser":"^5.48.2","autoprefixer":"^10.4.13","ava":"^5.1.1","cssnano":"^5.1.14","eslint":"^8.32.0","eslint-config-next":"^13.1.2","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.4","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.0.5","react":"^18.2.0","react-dom":"^18.2.0"},"description":"API + Frontend integration for completion streams.","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@0.0.1","dist":{"shasum":"9a6e3b021e803010ed3448b90069e166561ee36d","integrity":"sha512-6eS9YS4vg2pmGLQ598VTIjo9klroso7EXXWjOimFThGHuBi0dH1lvPg2CmmW1zNZaUp+QQcde+AjKyxXiY5lAw==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-0.0.1.tgz","fileCount":53,"unpackedSize":24411,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFKBuw3AYzcuDZhyGj60L/rRZsL6QFQQYx66PwaBndP+AiBaevGMJsIblrozmmApJ0iAL8+Lm09VT5Yjbgu1gAvxAg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6J1YACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrrSA/7ByQt7KnKm99aDqdVtOg3Xd8FJICNiaSlqiViVCQN1wm5wDNW\r\nYUrY0QNEgIC+NLhS2kUI/f8X8c3iK2lODOFPnsiGbNM3CP2FQaGrWIuVpXuf\r\nlyKc4cos6xxA82gMrwpSMONNaQsM8t0huKvMWuWDUNGG27YLds58m5qOXvXY\r\nH3x0DRbQYFe/5oTghQk/l97jwQHIpfBaAeRgGQwX/bKBX8qwm7/B1OXID2/S\r\np1cojsLyiYBvrb0TZrAUrFbOHkYmC6cYbFGpSzvAQ3d05zsWvUr8oIPNe03C\r\nFwi33a6a2kk+s7S8AW3cyaVLYHXnHN1R9Foif/AffogVUJn1+5+5XI1Dgx0J\r\nkwF06BXtP1kEm/GKadxv4IRjvhw1NPl3HmIVt4mZ92yr6OfZlx+3TqEnKVRO\r\njtdFPN4KFkdMBsd3u7JaiU8mrjMDlNxQehAKN+4PoigcO9fcWmNK8u26Tpqe\r\nKPrUukRZQie3GxUhInwo3bQSeYh2CW+EajJX6z3Eh4FIRXUrYkrd1XmVS2Ho\r\nLW+wKe5jNrlGfv1je4MdvJJmOs4Gl2o/Ro5HKZhTWwMCqL3hHkA1Pwg4pgON\r\n6fmn99to8b0zzgQS/y6lpFjvTag7kLsJuS/mI+Hep/DTwQoLDUK6hdL3mj7N\r\nVdShki5MGxGBEJbK+bsoKRVdZix5/m7/4Ic=\r\n=49XX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_0.0.1_1676189015818_0.38030534395660287"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.0.0":{"name":"nextjs-openai","version":"1.0.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","dev":"next dev","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.26.0","@types/node":"^18.11.18","@types/react":"^18.0.23","@types/react-dom":"^18.0.7","@typescript-eslint/eslint-plugin":"^5.48.2","@typescript-eslint/parser":"^5.48.2","autoprefixer":"^10.4.13","ava":"^5.1.1","cssnano":"^5.1.14","eslint":"^8.32.0","eslint-config-next":"^13.1.2","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.4","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.0.5","react":"^18.2.0","react-dom":"^18.2.0"},"description":"API + Frontend integration for completion streams.","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.0.0","dist":{"shasum":"cd7966a42936936a7e3e376e964669a8beef1314","integrity":"sha512-eV0U81iACJaHPziwpBKDhrb7Wd7X1yvaafv9AOIAnVEudNHcnZkWw0BHixAbAM+6P6ShTiHSKRiMdos1VA3xnA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.0.0.tgz","fileCount":34,"unpackedSize":9241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtRgNYt9Oo3FpI/iLfB2WmzXQWB9ZmOalLVu/SfG23QwIgE97k6OLye3NSNa+rXNQnuy4cAySmhviS6ksyY2gaoLU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6J9uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpfMhAApBhgJWnmy6KyjpqoYttPWI3rPDWm5fS6XaltthJqXbHXVe1H\r\n68iUqKl7w+Ap5h0FIxg0CG6qyVg9vxB0uJgymBbrE56sN9GPqnckVH1NQCl6\r\nU1J01zveYqsveIGx74eqhZfcivz4WNRqkrX6mpcQUMkjn7Mpu5ho+Lu4XVUj\r\nZlopKcsyoEQaFPu/CjVAFLMsFWWdYgYXfd6tOdCNrHT9u050cTE+Chr/P+ua\r\nvG6J5ATb8W2QR8F4o/BEws+jy4Wa9Q8ZMT9RLcb4Jy/tkfTJ1fnN0teqXntN\r\nvmVliJ2ae54p2roH7F6GSSx6/2VXefQIAft5nJuZrpfzAlylhvpmAzP8DLis\r\nRX9uhxOYZzj/CAjfIL3ErFOJnflJ16Y9vNvolI0REaPwe+VrPnPurNMN/bDC\r\nU+zARVhNPX858At3/g4SSaM7G+z3JPtijxs8/SN0kmoXVb4V+wOsJ7qiqG/u\r\nfB/s15UpuRX1dtfc532B+VRyLkZdIu8WjLCtLrVeX366ZN1OdmIx9/E3wEtW\r\nblX1ryko1zX3R7hxsc7uAfZ7COMF2R33Ee5sM4A4hwqbhR77vhZb8WidXKmd\r\njqRJtdWjmp0tara1TL0oQIvAZh+20/QDeWOrBe07aT+sD7i97Wew7LgoH1YL\r\npTb2W/4dPjD9PSnRujUT2Y8GsYdl2VDuyrE=\r\n=Mktq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.0.0_1676189549888_0.2167688530442815"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.1.0":{"name":"nextjs-openai","version":"1.1.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","dev":"next dev","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.26.0","@types/node":"^18.11.18","@types/react":"^18.0.23","@types/react-dom":"^18.0.7","@typescript-eslint/eslint-plugin":"^5.48.2","@typescript-eslint/parser":"^5.48.2","autoprefixer":"^10.4.13","ava":"^5.1.1","cssnano":"^5.1.14","eslint":"^8.32.0","eslint-config-next":"^13.1.2","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.4","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.0.5","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^1.0.0"},"description":"API + Frontend integration for completion streams.","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.1.0","dist":{"shasum":"2a0f20c5833c7bd3e9593b81062f3a39d8257744","integrity":"sha512-Im1VZ3InYAofJ/ovTTc8Na5GDkqwc7RrHCEQmZW6NS7l+iq9CHVYUpFbdsADNnJZ9m0anTfJoJ5foPaa7rzZVg==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.1.0.tgz","fileCount":36,"unpackedSize":8622,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEe9N62BBm8ThfCloT9Jand5LByp0h4VYfS0atS9LlugIhANePAN3D7oy8Q4AE/7wIbHSEn2So1LUnyndHS+DHTo7f"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6gxwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmocNhAAg/pR2/jMMPfaffwucqUlQhilDlC/w/N3AjNKPRPKFcnUmDPt\r\n405Tkh9voySyfTLg1bGusDXKgrs/HWCYKaiDMniIyBlG4bTHv25EadPk3w/x\r\nr4uWj3HlVnQ4txRfg4+SMRj/g+JAHrZmgYN5jRQgEffvyrJ9RKK7w7jbt3j5\r\nADFTGaLcqnZIv5XWPMjRsIda+K1I3qmBECNYAvIKLmPxGqMeTkEzbRzQn44U\r\nirn8leFRNQMKnyAtxzftCdK6oEoVOYKikGdtpAlsochhWNEecfffNrwLJ4ix\r\nQroqpayJTwQRBKD3O8ioZLUNxrKty3PdrChTydtcSwKwbFubVX3gOkJma+m8\r\nawycK+ziufetWJVoXl1RajFaNBHilKXVAvttGtb5ESoARt2qK7ochq36Uupz\r\neM43AoWGZN4FXZEHCyFN3dQufXkKQngkX/VIFYgxLoFgRflI+5F15OiczXu/\r\nwVI3R7NeTTMj2apmnQPCz8inCe6WSrFkIHKcHdZ0P0Q2cqr3sAYm9a7/bHjM\r\nwpQGK/hSemmb11HAtrKGaCFsy7PFrn7C2AARNmw30l6Vpi1Kmy2WLyPzEk0B\r\nZPZSD7nheUGr06cqLOYcYOm33URzsoHGbiC+pKk2ldYzThu79DX1rD5TkW7E\r\nNpVZ60Z3n/k1NR7u7Bp0RL6hziL83rQY0nw=\r\n=V3t6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.1.0_1676282991836_0.9370726927899691"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.1.1":{"name":"nextjs-openai","version":"1.1.1","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","dev":"next dev","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.26.0","@types/node":"^18.11.18","@types/react":"^18.0.23","@types/react-dom":"^18.0.7","@typescript-eslint/eslint-plugin":"^5.48.2","@typescript-eslint/parser":"^5.48.2","autoprefixer":"^10.4.13","ava":"^5.1.1","cssnano":"^5.1.14","eslint":"^8.32.0","eslint-config-next":"^13.1.2","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.4","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.0.5","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^1.0.0"},"description":"API + Frontend integration for completion streams.","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.1.1","dist":{"shasum":"ed26ef6f143b1df66a5c8db43929032893d4c047","integrity":"sha512-LAXgMVeZeDFr7vULbg4Qcg9S5EgXN60xPR8fcKKIuMEVsieOqZJGGXzjfYa9tPA/FPqXVKBb6oKw86L3gnwmfQ==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.1.1.tgz","fileCount":36,"unpackedSize":8622,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcAnN+R2z8308pm2IwG0avzmqBoRsWwIonqQ5tzX4PfwIhAPjzcABn405Dsbf/CUP3IhuH8cprKinjpGEwt9KusN56"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6gypACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmreKw/+Nauc2HhdcRkBJ3CrRin5Pr3iUBw5PW6yEZrwDNLdwX9EPn/h\r\nlDH/zSkNodrHWnIG1AC0dmM9p9YYi7wA6ivkYxMRZxBHFIqQ4OSRl1xZhM1c\r\nypkhrIPyzJHJR4DuG1oK7vDE1UoEd++jq2zMdclTcYRK2teJDmmLLdMjLjOG\r\nebUOPWaVeBpCJDP01vAMPXP7iLzmp55BXlchbhaWvHluk2wLT8gTxkj1gs/7\r\nraIE5/cBORanbLPNqstwQtvAOdOonD0bi4SF8cRZsH3Q1ck/lh/8ufkJGoIr\r\nE/VFHZ7+qN+MPbH7uyjbbbhHndYLnUsbBjlAVunMAXqFKfHJ8Y53qW6GXuyD\r\n5ZQGaVm5xMQyeR4bizHU4n95hl08pBQYqmgExDC5psLyQDu29jHFQIEGOVJK\r\nOqAENTMTNK37yb7XXmmH2JdIoS0aIp0PFjTtNgpgWgzeNtYSvwcon/X0CSNi\r\nE+vK4IVxSNRIS1BFzjuRP8IsqJCbRU3Ksp06C/AyqYAcaT8sJgTX30x1Tr0z\r\n0RZj3TODO7qLooz3QC308ezYxAaHiuxuSSevW3AUga8T02iR0AdifaP9C52/\r\npIJUvx0950h4bkjU2gSqBIZJNkjWJ+qMc+hbsjUhQhcaYrITWFYwOSwy4SWJ\r\npvtvhWA++nUbQHX4Zol9deGGCqwD0x9vY3M=\r\n=uyIB\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.1.1_1676283048979_0.46913982887027306"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.1.2":{"name":"nextjs-openai","version":"1.1.2","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","dev":"next dev","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.26.0","@types/node":"^18.11.18","@types/react":"^18.0.23","@types/react-dom":"^18.0.7","@typescript-eslint/eslint-plugin":"^5.48.2","@typescript-eslint/parser":"^5.48.2","autoprefixer":"^10.4.13","ava":"^5.1.1","cssnano":"^5.1.14","eslint":"^8.32.0","eslint-config-next":"^13.1.2","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.4","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.0.5","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^1.0.0"},"description":"API + Frontend integration for completion streams.","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.1.2","dist":{"shasum":"ca25c6e72fb20745c9920f99ca7f754d68546a33","integrity":"sha512-gLgwETequOLITvlxrScY6QXzT/Wtlo0VAG+qcoWKcIUMrzJ5MfSKUR4ZAYfbyyL9R3H/8Ei5LYtnxrKRfX3hfw==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.1.2.tgz","fileCount":37,"unpackedSize":8729,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICuAII+60bYOi7FJnZ3rlEkcjDjHie/yk+ZvKAhcpTy4AiEA2d4TvoW/WAYKAg1dsbKzmu6humN5MDtVTdJsVCD9KyE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj6hB0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpZrw/9FvdmqQN9ACoZvSjDadeenlvuZ023hCiWUhUBakW6c5qAAO82\r\nUC5P6VKADPKgJ8vFfnE5pP8joKnO+1OtrDERnGUEW6iSsz8A1PZ+jXppXlyw\r\nrrS8GZ+kWy8dOzdzgsWq+7n3p/ybXKNEXkBp6eMsdZHcwFYWiBFqzUHj57i2\r\nAbPEYHhp+BSIAS+JGzDzBCTIENVZ05QyM48rkeIDaZaMUYVJywNQFILODAsD\r\nJ0qDGeDs3n7vRECRf7pjwopaoXwpZPbmmthxHomAXH4x+l9V36+H5Um9t484\r\nsOcVSqqso0uBIlU2E0xfde7Mt+sBNj7v52/R5AU0Zq+gXKsbAtdytPqzLtfJ\r\n5mso+K0UN/BfewfiA72e3ycT3Q/7ZpGSCLbSEzbsGYpdGxEfozFxeCr/o8Qr\r\nYlufl/U9S4YsUooHSa6PWlTQ4q+MBv5w/Aj1wLAoyGSY1yNY2W5B5e9sJz9Z\r\nLN03pSx3y7o0KYnnVa1QiUlw3PV2e4szyKSbRLEdP5u9PdgpJD3+QIqExUwe\r\ndNdo1fMCop1TWTe74xkIaaWjg+Izs4bk4aVsJEIajR1ErG1N5SuyuoaGlUE/\r\nvHadjaDT1JzLFS52AQ25nEtgoWHCb4P6vJakyvN/KyVTjE0rNIV62isoNKfZ\r\nfXO6puBTjNQKMlFJndBpCpnufDAW5CzcP7o=\r\n=I4oH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.1.2_1676284020802_0.007097902745820006"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.1.3":{"name":"nextjs-openai","version":"1.1.3","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.26.0","@types/node":"^18.11.18","@types/react":"^18.0.23","@types/react-dom":"^18.0.7","@typescript-eslint/eslint-plugin":"^5.48.2","@typescript-eslint/parser":"^5.48.2","autoprefixer":"^10.4.13","ava":"^5.1.1","cssnano":"^5.1.14","eslint":"^8.32.0","eslint-config-next":"^13.1.2","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.4","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.0.5","openai-streams":"^1.0.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^1.0.0"},"description":"#### Demo: https://nextjs-openai.vercel.app #### Docs: https://nextjs-openai.vercel.app/docs","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.1.3","dist":{"shasum":"bf214c4dc46d3ed3430694f217ecc4ddf9a20364","integrity":"sha512-QeOYQzEtsbBdkNqy8kq9Sl/d83i28swikg9k7UK8IhAa3q1I0F/ijO8zLhmCowkYWtpswzuJtXa+W6xJ9fllWQ==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.1.3.tgz","fileCount":28,"unpackedSize":7460,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG8xQjijOeCgbZeTRYHusyR22Ua8Lt7ujeapNEj1k6bPAiAUspt2CNCvm22qaPodBpLSLn5r8zioI6BSS1wFU5Jlyw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7ENUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrQBg//X3UsqYnxHLPQgAGdmCxOlRscoiDdCxW6b/wd0b5LiGxYf11y\r\nreTmOfJcH8C8MIvv4M3V3vA5MKozgOGc8rx/u7CeF26sdBNe95nknmJrLW8r\r\ndZCnRIvTK4LgLI4bn9S1Bbe12QbW1evuMT8xN479DB6+Ks06kziZ/PfxsmNO\r\nHk/7kV2J25sb4NmrapWUwZWkD1I/MxnheYXdD16ckxcUtz/OqwjkX7GQmAwB\r\nwYQZTin0sN0gUnbfquHNOoD1xSa2SlTq5OpF0XIy3w4EjmDExVqV4kGkcaVi\r\nM3e++DAKWCLlI/Qk0Weo2FbTYG3NdbbpBaxQE5YoruPGFbYSzfhXmt79KV9O\r\nEwFBAqxaSGSOkEZr2QD2bNSpsPyGm8bX+mQjcDQDL5ldUR9nKlNPjhBgxEmy\r\n+9qC2u6lKFbGL0Zp5Rc411UBeKBrPfzsxCHCFeFyb/pwWQ2Qn0r2IBq8aiPS\r\nMgyfUCVLGJtbAHp03zapOVt+rmD7yRaf5Ks2E8WNxOWW/sC5X0FEyc36eD8C\r\n8EmanDoq0FCVAayfheSOsFf92fHo36q5RavX+cSolslXBgAvKqmMySLiD4DW\r\n6Bnlpf75560xlUsJk/klx825uTupsN4DNnT2GPHN4HvDrrGk1uXgl6bDWK/b\r\nCnaaALeksVlAVGq8JFKzAGjqqHpJ0Cc7DCs=\r\n=dHxk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.1.3_1676428115903_0.34839973314029504"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.1.4":{"name":"nextjs-openai","version":"1.1.4","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.26.0","@types/node":"^18.11.18","@types/react":"^18.0.23","@types/react-dom":"^18.0.7","@typescript-eslint/eslint-plugin":"^5.48.2","@typescript-eslint/parser":"^5.48.2","autoprefixer":"^10.4.13","ava":"^5.1.1","cssnano":"^5.1.14","eslint":"^8.32.0","eslint-config-next":"^13.1.2","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.4","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.0.5","openai-streams":"^1.0.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^1.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"#### Demo: https://nextjs-openai.vercel.app #### Docs: https://nextjs-openai.vercel.app/docs","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.1.4","dist":{"shasum":"83f785a4254d373438fb9f0e0120e0a2402a18c3","integrity":"sha512-J4u8mSZ/cU9uRzEJyZWrd+RDJfX1U7NGFu/ixpwhKVyw0RJYBGfhmuTJT/rO2sPl/lSmSl7H5Nxs6BIoZuSgxw==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.1.4.tgz","fileCount":28,"unpackedSize":7606,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBx1/2S+EGi8tCjywtkF66yTRPxy3fOx3ghio5KirPa+AiBKjFDHQ52vIphwrFMih+f5xYkInrq3YYH9xOU/B0f8ig=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7EPTACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqOXRAAklQIUBlgTmm97lUBuC286/PV60sO1+VFWhI57OSdr3isjIXj\r\neXpAdwBw7fIm+dyyyG8o7udqEpY7JzrW9v0jgdoKwliSvEEHq9ALcSLREy0A\r\nTYGZLePha4IcZoA2OcHzzN+SXxesbwGwqagHPpFnBXRSwtsBRk5rUwDNbrA5\r\nJRWLp4CrPc7qx7WJ4wOifYkcdJzDv0uOUgR3Ng+EatzTyKjQGY6QcXIMj2p1\r\n/InBSn/dLPDI39G+1FvsjGpRdnsTetW5Zv9mFF6XwDqGo64qfIn5tMzFtYpt\r\nl2BkbJHQI7NrgXvaVH3XQMSa94a1U31G8C6hNx+W4RmWQrHACvwSV/gt/wy8\r\nQ7L5kMnBDPLw2zNZGjO30A4jMSsIzQXW/xbDCqabzPFEeq1npuYpAOZcV8V8\r\n7XqUSaZYWuLJNrC0w/bh6pucbqYXHaq3PGqJcMbmw8JJ15S3tc1v1G0Ax9ZZ\r\nOuTPKgzjitp8g65t93SK1E/wCfsOR0cbSsWtavPg07/6vqovpB4leq4fKQVa\r\nMqPiV2n77zJtAXLWbdT2Mo3C6M7sQ+hSB/YuhG2AhEQIs1cpIM+oezmURVz3\r\nG6LIgJpXApTIJ9lImGMUD6EKQIK695BuNWtCvLo/8NVFZvP4v9WWY/sA5Dab\r\nxDaH7bpADpMHnbBPkjlmHMj0OpvzuTHpz8w=\r\n=vEaC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.1.4_1676428242950_0.7126561048692222"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.1.5":{"name":"nextjs-openai","version":"1.1.5","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.26.0","@types/node":"^18.11.18","@types/react":"^18.0.23","@types/react-dom":"^18.0.7","@typescript-eslint/eslint-plugin":"^5.48.2","@typescript-eslint/parser":"^5.48.2","autoprefixer":"^10.4.13","ava":"^5.1.1","cssnano":"^5.1.14","eslint":"^8.32.0","eslint-config-next":"^13.1.2","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.4","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.0.5","openai-streams":"^1.0.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^1.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"- **Demo: https://nextjs-openai.vercel.app** - **Docs: https://nextjs-openai.vercel.app/docs**","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.1.5","dist":{"shasum":"b544c11fed02d74b1a3a9d1a7f3c41371483018e","integrity":"sha512-DhwEntxZBKNxVNeKkFCYSIe5WCRAXwXUD2K3Km3isZTfBHOc2Xk3Dc7d4ZehQGRg51P3XmRUi+QZVq+HyhtCKQ==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.1.5.tgz","fileCount":28,"unpackedSize":8009,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCQOYHluDyAgzaOVyYlZooVQdDdLMlC+OqNKvY4x52XKgIgaY2MXoWdfpNUJt3WQ9L6WDAS8UcbKGpbGYDiDAO19nk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7EYWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrGFQ/8DIHBBcTghQKPEZ2TU5tGoLoJW/z7qa1MiuyoPEgKmdRq65+3\r\n1YCsYJwkUHB35HSmuhAjR8qWaa5qArmsd099N/Hlp/1YSNYhau42uojE0qSy\r\n69o/CcA3Q12OLqCL3Y5CTHxVrVkvwva89qtDEKYtYIVWFvj+TxZhE59nne+0\r\n6CwjYQb8pEZ3VnJqNZdmaBzRSSH+oQZfUVapaGmoF2IxBlM+zTaAuC996Svy\r\n4mM5yPnQF+FPA4Fa2j5aAEWS2S2Y4EKT0biyM4Ov6YDkCutAUoU/OCfg1kG0\r\nIvV8VLPJechWf2DYOxFTZRHcu8KMaU5Q8RZ6W2/WqmrvFWVRTBt4zLLyYaVD\r\nC+VrhNXB9+rIoQazZbczzJtOt/ONvqWRE7EAnDuSwUin+hp97EpWit5yKS4s\r\n1WxIo+T89fc0szHVTND0B94/cbPOnM+1OC28cPZJUd3nBZOYDxKEHniKooUU\r\ngqYBTFB21/yxiNVsk0tm1oOHTqGAMmWTz7bC1BpWHMvrlueAvBoux8zbnH1E\r\nV9j40PWgSXjM6bPZQ0xP1hxLUAjlcbxCKw+7EiAghSoQVSw0NgLtw3R9cuEb\r\nYNiosccq/ndkkq3nnGN/LtxK+/25+xUwL+KTfPRSy8sHjg6HzKoFdspn/ycA\r\n69pIG2ODxkoYVIr8Ayrg3zm3+tGjEycj4TY=\r\n=IWMh\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.1.5_1676428822650_0.39184711547506823"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.1.6":{"name":"nextjs-openai","version":"1.1.6","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.26.0","@types/node":"^18.11.18","@types/react":"^18.0.23","@types/react-dom":"^18.0.7","@typescript-eslint/eslint-plugin":"^5.48.2","@typescript-eslint/parser":"^5.48.2","autoprefixer":"^10.4.13","ava":"^5.1.1","cssnano":"^5.1.14","eslint":"^8.32.0","eslint-config-next":"^13.1.2","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.4","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.0.5","openai-streams":"^1.0.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^1.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"- **Demo: https://nextjs-openai.vercel.app** - **Docs: https://nextjs-openai.vercel.app/docs**","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.1.6","dist":{"shasum":"5cf88db4fbe3c5765b696b9331165cebcbf85c5d","integrity":"sha512-zWvBXDTTXhoHCCFc2KiXgXhrGlk16Qz3fNSJPJGKDxVh2CBzuTpVE/3WC1RINirFfbpm+BTHuf1iPHsJq5UV9Q==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.1.6.tgz","fileCount":28,"unpackedSize":8067,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFYTBiqOcidQqWUhukQeX/SQf5FYKkJZ/8G65JoshDWhAiASIB7xuD4sbuqXEa3yQAC0jwNg0wAcbv1VIZHNYBtptA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7E5EACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoUUxAAnoKKExtfokDQSvqUTnkCyZzME9mkQLXQL3Pxq0m4M80hG8Wt\r\n9bOVxV98rbeoRW54F7p29Wlyk1eDoRSBTte1vxxL6Wmq1Abwe7uVVLhYNvqh\r\n+s/y3Zb16Bxm9ZMhmTDf7yBkFCnMFPgt4VbhkQlS06OcwRuSPHMKDdHUeQeB\r\n1aP+3i7TpNx82wtTEj2gEYRm4wEoayXN1sgzxgm/PsF1DKwA72sdGswb05Jc\r\nlU8/mPbxBFPnPRTAsesQ4m6DUAXfI6CDQZuY8M5+p45K65EVsXzryuSC9hLO\r\nwSFOV0PcMprMtWis7uFACSSSiasCNJWnU3JL+Lx/bgo4oa+0QID6RwzIAROS\r\naJqyNqS9kuiZ+lZN9+2irbq4fbL4vCf9pdeRnX0NQDd4l7HOMiqkIg/t5AvT\r\n5qGK8oor569dm9tQjZ/8lnFCJGmCNeZpldx32Md+RNUCdDasoKJf5eogdmxJ\r\ndE4b+srOnYlAOg8gtyNGbj//78LQXYPnJGfQEBNFAqC99M/+Or01sLSmGRWt\r\nlt+w82zvOZXh8+NYU/Kd2tV4zBDVy9dlN6RzoPLVxdqFIzqWFagj3if9Z/Ps\r\nc1W+wsGerOB/ljUHL7gnP9KfB8aIfca3XfQEVFCLT/QeVSfvUCc3N0wJD6Yx\r\nchqKHhAsFGtfa+wHnv4QAnx7YJeV6+rI+BM=\r\n=Wt5H\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.1.6_1676430915899_0.6903153580457517"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.1.7":{"name":"nextjs-openai","version":"1.1.7","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.14","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.6","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.5","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^1.0.3"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"- **Demo: https://nextjs-openai.vercel.app** - **Docs: https://nextjs-openai.vercel.app/docs**","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.1.7","dist":{"shasum":"dda43586945e381aca26d794bfacca254b705904","integrity":"sha512-vZW6YxF2oZ0Yr66Y02h4rM3g5NikKtBUGWGHMwmjsaTzoLez3aQ4ikEZoWznccTTC/KmXbXwu03Vs6xzbpTYwA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.1.7.tgz","fileCount":28,"unpackedSize":8067,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCrFNYe5yrLP643/dhH5TRQHt+dMSKaum8YNH4/icSLfwIgZqOAfjSIaduh1bA+NDax7S96Cms5jgftpgNZDoF2LyY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7GY1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIug//aJYGiIbEspnYLgB9STtneLVLoD18ea3zqvBEhOj5MXuui/ur\r\npwcIoii/4y1rO5IOphVfTpaGAXym0Pnyn2NgueoS8dT7kJ51UH504shHZKuv\r\nq+bi4PHeoJk2ysiySSWOLPHxpq8znLR9GKQo0OEC+WaiOAQOFUvz0rRCj792\r\nGv0tVxosg5YQdpH7NVtH0dlf76MtrInGDtPCLbVJ/2hUDMuDRwZz5kRJn7G9\r\nm7ccy3FCrZTV2Ef1vmEKN4BA2CD1o+FD+uFD/DRGNGA6zvJRNnZMrv77Gk1b\r\nPOoDsWVJymmfhny8FxRVBrNo5hpdgGsrC3QZs1x+3bjFFPNfGHM5F8jtSqFl\r\nCW6mdLxO7YaOBMaTfP9xvvGVnxD4GMijf/2r5BC5MzeDIIziRE/TnNwg1QXX\r\nRLO3bPYytQcrOlL/NnWZ1Br7RU/rz5H6xQp/XatFUTnRH5/WXG4A6KkacGu3\r\nV4gZBOJl1+hAo7sYkut6fANknRIzW/gYKle5oyoP7cTrFmJ73/0ptQm+BYDj\r\nJv7lytZi6jfclLvX9G/iIBZ+zvzU/VEQNkK1d1XkkHuEXf5/L4ROqD5rHL6A\r\nd1u9sWntJ8DcCvJemrpRwzDlduD07P5G62FX1IAPsRmhI24DvFsrDX69aeFq\r\ntqe+LnDTJ3GxfJlByjKxMsr7VY6wC7kzmGU=\r\n=TA0N\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.1.7_1676437045092_0.8135698787270507"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.1.8":{"name":"nextjs-openai","version":"1.1.8","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.14","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.6","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.5","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^1.0.3"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"- **Demo: https://nextjs-openai.vercel.app** - **Docs: https://nextjs-openai.vercel.app/docs**","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.1.8","dist":{"shasum":"ec59305765dd7dfedf0a4340cba10ee8d680f814","integrity":"sha512-N3BRZ3ph/QyOqhfrR3wvLIBEKxR7XPezRWjcz272uYvXYGxbVTJi6Idpq8n/DLOKyJfwNliBwC2XolyezmW4wA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.1.8.tgz","fileCount":28,"unpackedSize":8707,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8g4hVvdl+a/s/+s6NMEsi5VLDyJeS+n06IG1o8aPAmgIgLNBZvLYlIwJo7dPgncp0gMV8DiHcB/gN+7mYVZ2nV0c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7KbzACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZ5xAAk7SjSMqg4x/fW+944qI6KI+qnG1FJiSYgXiTh94IA0UFNnD3\r\nQg3MDgEJyxy8IAxSnXU/pS2VqoBaG17BdXnUcapf6djVQvLTw0BRB1i9QcPa\r\ndpA3Mrae6O9Y9MD+tmTd1hE+gQkmfOQFbt3iBg/1BNE5ZGKH5DKjmdXgNQS6\r\nPkW+EevO6RBKVa3KWmLBz6aZuaR1/Olc3FH6hS2fdiog45ZmU18zTZO176S1\r\nS4sV3GtaBgUvAOMb+fFzQqciwjM5dAVFwp/1XokXr6vdXq/NtTeTM2D8Nt+z\r\n0do44Ia1kzTnD5hWPTcVXaBR125zVtWCOWjF9NNpgs3LtAigP7kjjwB7rpbf\r\n2kRe9VI8pa0lFgp+u6jxda2/l1wIURDx8izEvPqJc4jvCoWENoBO8d6owOOd\r\nm5jA1NH6/E+z3BF4MCGzc+hF2yy8L40fAh3fCfmGFEhO4QLX1Bo+qBFsaLKo\r\nqhmbDLJQ862rU7fAMl15Fypllogp7kbpsPJ41yOe54OP+XxKg70eRAPRYhox\r\n4CcAu6ULWUDdzMWMqWIKc4tU20osHfH1X4VuV5OS7tac7obXxYo/9XFbKvgo\r\nV6IuriQbmXoZsbBLf5rBFd4HQi1iQOA2jhaxLDC1CpABzNCa1zOKGfdrXyjL\r\nL5H355HkGGwBC41QNASEumuTM5I6LWvu6XE=\r\n=w3ge\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.1.8_1676453619225_0.9816631973067951"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.1.9":{"name":"nextjs-openai","version":"1.1.9","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.14","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.6","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.5","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.3"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"- **Demo: https://nextjs-openai.vercel.app** - **Docs: https://nextjs-openai.vercel.app/docs**","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.1.9","dist":{"shasum":"5ac048c78d51396c7b62f42092d8e115005deb09","integrity":"sha512-OsyO28NyTNKiGk5BGwn57Z1d4vaOApzhYe8NKFnioYDGLUS0E/3/XcddrVIQtyaCKS7lArQf3II3ullriUsTlw==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.1.9.tgz","fileCount":28,"unpackedSize":8707,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAxVR92PygCDzX0sjnBklC2TG2ie8zlfMokr5OxsfoAmAiEAjvOCAgZokBTSOuOssAQ7lnHj2tbFz2/4KRxGAvfzSA0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7rMsACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+PQ/8Cs+ZQP09PLsRPLxQLqSSO9+Bufg76aR8Joqk+NWEXZy63L9l\r\nuwa0PMZXJKadN69Fkj0N1Bm+tkWJXhZEahHKMLpHXRGk+6vAiC3Qh6b8qfVA\r\nhtUmAttvj/j+bv8Y5Ehmro0+S/Xd/l055w2o3P3/t43UjMedAf8Mf2LFIhiY\r\nBkhjK08GGYGLuYsh91rwPg9t82FLDEcPMIgC1IeGXC8m+sjM5RV4MjtPJqQm\r\nIAdzUq9Eg+xus/Bh//xotOqDWOKWVznYfIlYVMowUyi/Sd4hydwo8c1ABhqI\r\nUcCadfQOU8AnS2fpbGftLcPSMDCckIdRwIuBo/yVV0VUg9RQFUgIhrSAqiJ7\r\nBdNuYvQoRVsyWEEvpan/pz9thogxxq40dAeW7spOTkC5ba+cLDteEmrKhE1t\r\n//UveEhPYx5WTcYj2wto3BLJhPiML3NMCl+pmOBLimi7lTf2xueZeY/IfTbm\r\nuCXoIF21tU55R8ZFYxZ+fvXbTtUw/xQ0iIk+3Sa7IrPPyEmAVDqYwxspqb8v\r\no7O//hMnytOL/RNvE+KS3xJPI9Rkf8VLxZ7bJAathsySxJ/tSEpD8PEX+Y9X\r\nqaX/7f9eWcup0DDVkz1wlK0Xo1SPEWUxDIvHLGmKd+vi5tfAPQxY++wnBli4\r\n0Pu59eVv9gNUocchhH2B2CQmi3Cpzhg96b0=\r\n=Hfsf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.1.9_1676587820328_0.46797020179169113"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.1.10":{"name":"nextjs-openai","version":"1.1.10","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.6","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.3"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"- **Demo: https://nextjs-openai.vercel.app** - **Docs: https://nextjs-openai.vercel.app/docs**","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.1.10","dist":{"shasum":"3c7a27a557466027ff39c7b2b6767e1b5a8b93d1","integrity":"sha512-9UupIDKZfdIwlNEn3tEVIR8q903vcK3KlLoB1TNX3CNT8EeqxQc/c/81E2Ioi0QeQv/qZ5mz352xRUgQz0jLeQ==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.1.10.tgz","fileCount":28,"unpackedSize":8708,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICwWJjfs6gFr2AnLReOiXroeA7VeGqP0jpwV/vw6g53lAiBiOrP8ffGIYn5b/6EyOKUAGEMeWnR+6cLb7dwVlDZfZg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7rPPACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrVLg//QizVG6H0GisJkH0l/k05jpxX4vRhiQScXM1AxL1ytUAcfCja\r\nQcD3b92fB4xh3SMLyXyJOvthIg9Atlyv9JDYQOSqEXR+xBpMiI93yXYViCLW\r\nWkMGyH0f3WJD1jtdWgSQEo7PLo/K+fiSH7QFMKSBt3gK2rLW0Qwbpzt2Q/RF\r\nkXdeOIjIRMFyFitJM2qrLE6XYfbMBm6UFHTs+W8dV5dYUgOGYLKRrXkKFqET\r\nCmMYGm0c8+LIqoBn2VRjFjHZkfdvAPLUxL6gEUFDYil0huLGIWesx0hCdibe\r\nmKpwEC4bNHvkLGiUuHYf0tTc4a4cBTSxWyjRfP3c3E0+eIlXRnxMG9jelpX2\r\nDNbUwh03uJwRm9KFVoTYviWSd+bo1Y6oI1lIekawomD4LHxLUz4I181CLwOv\r\nBfiPIkRt5gG5ISitcfJWVsADHnnAaiWpwSBFoGTt/qyMzafiY8aASaxEDV5N\r\nIEqWbRlocjPAcnsTANCl34cNkff0D9rdzqIds2C+SFN4axqbXebm9u82WZl8\r\nnRuMAoGzH7B6nvHA7Pf38o6d6RLIR/sP2QN8hl2elOKDa9IZ6bOCIawqRrxU\r\nf0j4Mu7Hm/pRLRruRABC2GdXdOUhRjl+qdMfmGnCS+381DyQCKh8HNEqzhUd\r\n2G3cn2T4KnVrcXAmDZncxzeLkTawbOsLfUM=\r\n=4PRU\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.1.10_1676587982865_0.08418116803331577"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.1.11":{"name":"nextjs-openai","version":"1.1.11","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.7","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"- **Demo: https://nextjs-openai.vercel.app** - **Docs: https://nextjs-openai.vercel.app/docs**","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.1.11","dist":{"shasum":"ff0e6c18d6a7309d887b7eff071316015529d9be","integrity":"sha512-jKuTnoblzIMSS267ESVhZwwOYZa/h/SBWmpqB1sRbqXeDjukVnl2G/HKTfcCiueCa93fwoyj4b2k9oazalBoZA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.1.11.tgz","fileCount":28,"unpackedSize":8708,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDKjYH7UXdnqI5U8sReIgkP5SmEbt1wsO3qUUsAxhCXEwIhAIBy5TSLKjWKT0fxayGuJE53BJSE44Aubegpi6pszJ1w"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7rdIACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpBNQ//eOw6NwoNwTn9EGO3Usj7sd0vXx5XHe5z2QMY+cYHuxB4oPKO\r\n4jcOppDj0T3Y1OqIffU3+YRmf1wN3Xpj3O9bX5mAterp9yDeBVyEhZD4TlPV\r\n22Rgq3FbKqt4OZWqR6CHjYJGSA9l3krLk4HEgljrPtEWnDP7kUM47rcU//ME\r\nZ2bC6bfnC9VqIQg0vyfSXgyZBiiQRnjAUXYV0pxHNuKA9CKwcSdFsyR7FKzX\r\nXrN2lCLbtEpRiQXrxf7qETjjKhWzwsj4jvy7FqQZvDCgonOs7trdoYUDjZSQ\r\nDhidKPl93VVh9ciSxsoFlSHwY11St1PFNl7Y5akf1KSBm/9AOHM+jR8ou3zc\r\n0wuX7PEtHSUCAGqopsfqPKQYO3HY2Stc5XnZIG5ABJV6Cci+unAyXfx5yrOh\r\nshGAdjMtpXskvg1MfliD5wV3dP72L4o4H3npUJ5R//VdywKPNN8gM6PCXXqj\r\nK1H09hAyjYDAPcoIrZ3iNsmc1AOgQDLCjen6pTLRKfN0UWsWTWv/tFnyhg8C\r\ndgAfdpLevUYqQBqDli000A1DaZcY5rn3I9q08dkfg0EYujLQc1HPUoY318sj\r\nIDR1jLIyHuhFRiYMC2OVwndzmynfDXDcdZ+bLyYBOxh6zljWnlt9UKBJJ1EY\r\n2UlZEFmcop0kaG+2QvO7GDA0UyB3PCKkJeI=\r\n=L0WE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.1.11_1676588872413_0.7848365716740946"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.0":{"name":"nextjs-openai","version":"1.2.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.7","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"<sub>[**Github**](https://github.com/gptlabs/nextjs-openai)</sub> <sub>[**Demo**](https://nextjs-openai.vercel.app)</sub> <sub>[**Docs**](https://nextjs-openai.vercel.app/docs)</sub>","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.0","dist":{"shasum":"921a70385389f8c64152258e761a8ca6c8d014e2","integrity":"sha512-gmCXOOBg7GnKsCRzDg3XuKhtHasiD4ToiM1rm3CvSlOSZ8D572Hh2MfQ1Kaguu/UWvQ7+I3DVTrm5EuenYSIOA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.0.tgz","fileCount":28,"unpackedSize":9036,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCl+xXvc9G1XX0U9o99BA372jXxxe1sMLiWW+5jJGt/hQIhAOYr5FY6UGCekrSQ1JDB9xzI5yBRq2yLSSyusRFAx8az"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7tVUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmosbxAAkL5OCX9l3RPA2WD9Q88rbgIeox0lfo47KWzFIJLW2p+qb9Tf\r\npgoadzMV+fbMyUR0pvRM6wk2UEnajZc6VaFR8mxJYwT1cIvbaJ2NurCLsDHb\r\nni7WaNshakMbuDRhjYcMjzX94mPedWW5SmLJiqhzH2uXZ82edqp042ikmUWU\r\n4VqixoMhxX+3Iw9TCovuXTY9ylxyL0r1DgbdKYMHgOuVDXdfi2YrrJTE5JyF\r\n015HOv29U2sabzV94uQ7c4GssqowjNR2az+BcRYxalk7GRUalvfPXV93C8rz\r\nal5c2KgM/NCKEqKhFldJeKht/KRgd5bFw4RmEstkg3hG/OvHNJdX2jYUM2id\r\nD53N64FnUXrPBWbPNck13raOzwfxg0RBnlIAzlj89mpVZICVQ9FheETKaWlq\r\n0AX9RPT2bjuKjmdzrVoJjdQtepdgr2taMBmRoWR2u7Syt6pW9Z0wJRpoEP7D\r\ntlWhyddWkcX74cDiiA5DFslJo8W278pUb9hA1DQJWmjjKSpBfpCZrxZ0vl5N\r\nJM6+zo2Keznn0Z6BLezMnCrTwgQjC09paqtUdli2ufjUKRvlYsRVtMsfU7Ke\r\ndn+U5ST82Ynppp9sPT0aSqcTyXg6gYkOkZHrpWDA3d7ex0XEH5Yt26k7U6Ht\r\nGoVDnX3sE81LgReaAx+mrZhtj2GOlhrlLMQ=\r\n=INWN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.0_1676596563875_0.873680825145817"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.1":{"name":"nextjs-openai","version":"1.2.1","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.7","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"[**Github**](https://github.com/gptlabs/nextjs-openai) [**Demo**](https://nextjs-openai.vercel.app) [**Docs**](https://nextjs-openai.vercel.app/docs)","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.1","dist":{"shasum":"fae78e6609bdaf034237e8e31c233afa937de30d","integrity":"sha512-hi88xsT7xWBDJVXTHD9IYBlPHiXP9R1PUUOY6KRuPzSWgQPvS7GEOPag3ip+PsDB9QVTxl9w6S8Q3eTcv2NkNQ==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.1.tgz","fileCount":28,"unpackedSize":9003,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFObfzSKIzthqx/lUiI+wXtcr+hz1FSDs402FARejU9ZAiAjTl3mZLc3plyFHK87ZO35nwm78pdSxDGJCrcAoTd/eQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7tdCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzahAAoEbkQsC5TbIz5/3x0Z3+WxtpW8X7FGdLXQAY6TFqkVkIIOOp\r\nEC3l/ZDZvw0XpPXRMJE1lJl0MyXoZeDG0DnMUPdAWDZMs0O1ulI5fcIANduo\r\nyzj4lHRPDq5ZRthcY6ssfGp6YThHDRf/vwEW9v0EWVbBNxs5BfsvTa4/pJMP\r\n2Oqr/HGbt3M4b0MpycBsWiTBftepAtXuGJOIYzjAvHGm4Ob/sOKy5sNnyazZ\r\nnkL4wU5SGb/eVF0BXjWvknfuDtnBM+k1cScv7JALXLCAQ0U6AiNjGCqj1Ukn\r\nUn4FSuLdza9HSEm0xgB/pbNI/CI5YKmZ2NmlgoVvzoZFov9Ca4C+J05m4T0F\r\n+IxQQERRkA9mrbVJqG7MYbSg+nbW15hRggQZU+frM24nsrJaBQghKxbQ0yyU\r\n1L4lxZpHRh2XfDy5kQYZMSgRms/Nz5FJIJPrGp7zZjSgZT7kC1PEILLGhQyt\r\nwdR/Sj6mm4kwGQImUma6nQK8SqO81KczwIR6ZwOZe9SW2lpHc57kwLiwXN7B\r\nLGWxnktr2sWnX74DFh3meKTBAtMZMhm5cDN63pRzkHdUzaZPsr8lsMMdGJiU\r\ntHbYQAgx2IeNwVnMlbxv61qPLw7hXcsA7SfPrQgo6RYd0ArLcwVYgj88XMnI\r\nZtqB91rG1BoCgGjvNYa060SyyViHRYaubTw=\r\n=Ze81\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.1_1676597058147_0.7993574691248679"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.2":{"name":"nextjs-openai","version":"1.2.2","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.7","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"[**Github**](https://github.com/gptlabs/nextjs-openai) [**NPM**](https://npmjs.com/package/nextjs-openai) [**Demo**](https://nextjs-openai.vercel.app) [**Docs**](https://nextjs-openai.vercel.app/docs)","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.2","dist":{"shasum":"5ae2f599c8c1edd158d582a575bd8c2cdb9e5860","integrity":"sha512-w7jQjARgdhzs4bnYGEkG5Gz0dV3eTCmmZjT9u24SeQ/jbX6npVyJvea0BPbcRKfjY9E25/FloU4tJIgbDsJZNg==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.2.tgz","fileCount":28,"unpackedSize":9054,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFw5/cOYsFwrNTGgTlWtXBlbo43F6xSpQ+04yIiOGJcHAiALmScbqbzZS/i/1ONF3ZZZmheKBa4/obwzT331E632qg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7tlOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqXFxAAnXs7wbOzdT8LjtlW4TivKmcSntc86oLTssHH3zllFugFPoZJ\r\nR97hZGHKpJ3+vaubzrDlj/92289h8ej2ZRLQCBQnQCousIT0ZOGjMWbenLJa\r\n3TBt108MJMsl39I0iINbukH/Ygtd2ALIZAFKKkIPBQciIsoUqXhLQnvR8eNg\r\naVlqlEtDLXqt8eEAuPHichW4g54aJBJ7mKkGij3siXTC5ZicxTissUW/gZBS\r\n6zMeasNJgfI50aD5d3KfdTty1Pe3kNK4qhnd6s/9J73p4wbF2ahCXBf9oIQP\r\nNzdCXptjm0awiQfGbsHiyH3oXpdlHnd9zgadoiZA7mY+v7sJ7i26ke4h8lCd\r\nkURxKgcOlJCOPCjE2rVgeXBbej8yG8wv4tK74xph/rjZX9CuT0vkSz5F6LSR\r\nmZGyX70UtdsDPvQH+bevSw6wvETMIHAwrtSxoNRyYJ9I4SpyZU8SPuwHX+cr\r\n+Nus+/v5t9kL0mMAXSbvXQt4AzuaglfNE9GqFH0Jomay0wAw+KMVh6XyAMbV\r\nwSHdxRmFui8tDxrspKm/3lU5ukgd7resmDCLeuztPdFfGzEWYlW7KBAcEEvc\r\n/5HXyslcBe7uWdno/EMhx6eytq7Jgt7de8WQrj6EZ/mB35ONlZ6G64nOqBDS\r\njD0p3h18+AnQsyS7V8dmUy+tEQhCImcUBPk=\r\n=0Zw3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.2_1676597581924_0.5042559529761286"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.3":{"name":"nextjs-openai","version":"1.2.3","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build --runtime-only","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.7","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"[**Github**](https://github.com/gptlabs/nextjs-openai) | [**NPM**](https://npmjs.com/package/nextjs-openai) | [**Demo**](https://nextjs-openai.vercel.app) | [**Docs**](https://nextjs-openai.vercel.app/docs)","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.3","dist":{"shasum":"eae981ce2b9155396bfd415716c6478e8ed24461","integrity":"sha512-wltYZa0ef/gVbDCsaJD/8SejsGBAQAGfLdgiYpzFsOgp9nppxeZuc5J4fp/2Ppv2hByAN58FvLNdugIae+isgA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.3.tgz","fileCount":28,"unpackedSize":9060,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBXjdew38pR3LPr/EcWB9/PVkyLIXpdwSZjj2WidWKYYAiBbYZCdJyroP8JNeJ6kZfhuDOYyzrFIDIt+g1AS3aDCpQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7tlvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpVaA//UuGeJ+GOxEulWUYXBeT/E/Ql4OsHhP/LuCRZ/EKilleZT5jZ\r\nXh83PyQHnx7YXvotWOxMKFY6/KHyKNcY0cwuMaNBz2IsfdN9fnC36ZQmu44g\r\ndV4JzH+Y83iZdSuNv3lfdjfVeKUpqoFE1yZWjYUv9SIfmGdw5NSGZGGIXnjm\r\n94AtgP4DMSbxcJMFNILfRCJHFIWWQ7hkbDEAURBdT2KqTKPkMW4d6FER85vC\r\nPxk03ROahQXYxG4/q+oMX6wbmfC1wtNg9uhtDIHut/B0ZHTWIghoUfecivlD\r\n9+zFKxFHEo5fpW00956juIPzUg0NwNBbljGcZD4UKj+GH4pXuWB1cvJdaatS\r\nlUQKuwjUbLD0cuGE7E+5/Wy4JAd9Ww6noGnijvI8oknmeFpWcPVk9WV9JZhn\r\nDRvJekeIb+RCvccJTxQ56ksGI7uLwV0d4U6RlxEOfoawPDKhiXZftLvswdDH\r\n99HPNpUa8Ep043V5p5b9CPfhNGjMe2Ilg47SiBxVTVWJTfHqc+TcU73p1kir\r\nuE6UING+W2x3jLOvJBmUY9TLIg4ss0Y7WPeSyT8vp/fvycReyAwZiL/5xniw\r\nsWEYnY9m1Mwd8Uo47flX4LPU1FkUB8xuconBE1h67fiAoDRAJp7x4EshtQqW\r\nxGH/8SiwfzSrMxqz8Grlv48BWXPv2Vi+2hM=\r\n=l63u\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.3_1676597615300_0.39919494855681803"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.4":{"name":"nextjs-openai","version":"1.2.4","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.7","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"[**Github**](https://github.com/gptlabs/nextjs-openai) | [**NPM**](https://npmjs.com/package/nextjs-openai) | [**Demo**](https://nextjs-openai.vercel.app) | [**Docs**](https://nextjs-openai.vercel.app/docs)","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.4","dist":{"shasum":"4283cb7f17b3f15c60d6c62501c6cd9910b4fc94","integrity":"sha512-t0ZZXryKF94zMJRDev6b9Ko4Q6sHIqlNN7e+LxdQscjDX2Wif1pUoP5Axh57OGlae6DPXk+FvrOOgZNkUYAvpA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.4.tgz","fileCount":41,"unpackedSize":12928,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBsdq/qXQAELNKB70OlqxUfFX8HqxbhV9gEia0JRT3hCAiBt5KuPjD25hdziV5L1MGr5Diizv8oXHvrAGlSOWs9R2w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8aN1ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmraQQ//cQUlcOHCKwDpF00E3pwSqEBiatRu1Y5AKpD7VcQt/Xj0Xgj/\r\nzM0LDC7/g67ch8UNplkkbeqjPW5UkIbV2kc6f3pTdmrL8PgFXlBqRtTShJOE\r\nO9eXWtVUD2lI61G08fXdSJ9t/PosJ63WjhkDHobrGHGpF45b/pJWNAF3S/GB\r\nrB4vUX5A/0+vodC16JsjJBVQTQW7sGKM4EyqLY9xSdxp4ZbZPc+iyG6BOsjl\r\nVxb8aWAKrVJDB6XjwsoogUo+zH4wtApOZbYNCysNg7wxDnaXuiGY1TuNIR44\r\n5cm4vwyBHS2gZLHtdi0fxUo4p1U6QRl/aeIoRP/biA7c5phuSJhWEYeA0i40\r\nH+ibiBB9uiqcpmUms9CHoBPTT28/C0l6X0SHhnI41qxogFCJo4GGXbmdCs2n\r\npWKnFKxHgt+9bsB9s1xi8Og7m9v1wyfdQWJRO6ksA17EjBbsZZ9kqf9zkiKs\r\nPXP4z8hdiOgmZoXrkTE7/lgTbB3haUK9Cnl5CFniRIuhqNPS/SrR3HIvfHdC\r\ncHrFrhdJfKfPSyB2G4LxVanz8q/Hnu+5G5kpMYlTUKzsryfFWZNK6Vu8XIDX\r\nIOpHtjIyC7n97VIBUkDUejbLzR9CoYhYZORECOYrhutZHdj08N2jNZE6qkhP\r\nxqmu7xmI7b3INL4+t1GjCxXm1eilpY0wchU=\r\n=ityw\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.4_1676780405711_0.5983939746525762"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.5":{"name":"nextjs-openai","version":"1.2.5","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","openai":"^3.1.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.7","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"[**Github**](https://github.com/gptlabs/nextjs-openai) | [**NPM**](https://npmjs.com/package/nextjs-openai) | [**Demo**](https://nextjs-openai.vercel.app) | [**Docs**](https://nextjs-openai.vercel.app/docs)","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.5","dist":{"shasum":"0fca8b09fc7bff2cff445c871d304a83e965ca54","integrity":"sha512-OO+bhK/tEDg+XbEMx3xVAMGQ5UKDh6HC+Ngq7iWUav13PT215n+R2CyXFoH3mqtyanaSZt8InGEw2VoYnYtnfA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.5.tgz","fileCount":41,"unpackedSize":13032,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCULHHwFo087Pj9kRO8ug2slwr8ofcUApMGjE6At4BZzwIgPBxhvK7iHNiSU7Mwh1bLuPN705iXwExWYFfxsaBBwbU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8aXyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmozYg//arPwInk6WmVLgw3BXvHoeImywQ0FBa7s9/cC7j5L1Q5ACZB1\r\nD75c7f+F6oM35A8V8uz2y+tUnhaBnpcPBQBWt71g5T4HQ0OpCmlh/PJdhQYC\r\nyN//IfvpMqidHeKQnqw/xSxnnfWNyZJFjligBajoNBi6ZNJX+XFgAZ7dKWQI\r\n8x/MR93qBPp8saqdSkfelLgqFPacbQP+gjChiOhkSi4yNIcDyZocbvNieoFh\r\nDSTzTJI8sqrI45wXoHH0QJQihrbNNPytwyNZK5Z3A+UL8bIOxOAW3IAJfXFP\r\nA7Gp8P652TAeRz/YE9yMRkOHr0d+4h/qVnAMIA4GrbhLQ9Y9xnDQIp7tEqqI\r\n9ol99egQM2WzDIsZdWypKdMd+7HGRwYkDh3LOvX9nlhRhtSCXsmhRH90CH29\r\nBrlkjKgqyFMUIwnevrbuG6eTbfBOGq1JDfzG9489G8O+dGMPtexEZW05nGbE\r\nWc0FEKDb7ltTFlctk9FUTMpRtE1vNkqDsedwO25kUMpzUmmMLKGK6nF1OU9a\r\n7jyrUoObxk5/7XvBcpFbAi4U78gD8nNn6UiUijd18JZZsCqkrpJt3q+9aHf9\r\nWNspOc5627FPSGdsDxLpdZHlNos6NV0nyydF61rUCq5DrX2z4lIM7HvTahzE\r\no5lt+I8ynrv3487rGczkLtuc5dCLN0SqH70=\r\n=N/yJ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.5_1676781042643_0.4979199997635615"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.6":{"name":"nextjs-openai","version":"1.2.6","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai":"^3.1.0","openai-streams":"^1.0.7","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"[**Github**](https://github.com/gptlabs/nextjs-openai) | [**NPM**](https://npmjs.com/package/nextjs-openai) | [**Demo**](https://nextjs-openai.vercel.app) | [**Docs**](https://nextjs-openai.vercel.app/docs)","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.6","dist":{"shasum":"3ec6b87932e5ba42aad9f071acb9edc8cf31dc8c","integrity":"sha512-XJcYn0kleSziMBBz+Qk0RpZhxhZ2e4vqlfKCuiuHWB6FTPZRud4FR+jd9VUp4Dg6Tpe9On6gyPeY+zgB9SWt9w==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.6.tgz","fileCount":41,"unpackedSize":13032,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC8hZ2E7mK3jLV3044T8Qn4ZBLolXGx+K0ufA/Iz3ULMgIhAN508+VmIz2t8EBpMrgfmEQ1NEhVqgc0YtdPVP2A07Ki"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8aeUACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHeg//c+H0t/8ySnR973RPyeOpwJBOzBhLGS8XNk+OIQrc6KPkLXap\r\nojZF4GE/hTlFdp4VaWRtukTcdqNlDzy/4lQM3Mm7cTSx5Cz5+ShYgxM40pSc\r\nRzRzQIT+F30LVoWHIueaB8QvUutpDp+UL1LWpNDAZNDrL8g/cV8m76OVOYeN\r\n3AxhxO5bhgoA5qSYNJQJrWfaRFFT+CzgK5ku4QtO2Z6t+0596Bg5ZrOSWAfT\r\nhH4yzI8bpm7uE5eXUpX3U6tK5j3x2pp/lE1YWPm2TIUhmVU+WYemL5y6dD8c\r\n/vuVRw6D3KYNxQpbaCtFh6An4K2U7WHu2TUamRTvCBOKgHP9BvKLGjkBJ4LQ\r\nDPidn+charCX/ZlHqCN0Rrb9xpiZPZD/2JpXMrAF4X581tT+0NFSlv4Um8iD\r\nwCFQA9XwUA3+qjDGuDu5O+/0xfpvh5KpuhCRr1vTEGNGsOp/oSGAMO9qD5Kz\r\n+nGepVzwWXbvSNnntftVwuFyuyDV/4113ZVP8ILo/D4gJgtt0f/AWNYhSJ6h\r\n04dD+62ubwJjECa0ALmbY/BvZLdaJ/veuITzsAJbomovFJWI/Lu/jcjg99B5\r\nMfufUC6b/gn2HspmXeKI+X+0yA6r2NfOfx8PCZDoQnwMsp6PR8EOkTd1ZccH\r\nX8EKDFg0fpAlYdr9HA0a7F21guNT9uxhrQ4=\r\n=dNCV\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.6_1676781460366_0.1514272885489083"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.7":{"name":"nextjs-openai","version":"1.2.7","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.14","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"[**Github**](https://github.com/gptlabs/nextjs-openai) | [**NPM**](https://npmjs.com/package/nextjs-openai) | [**Demo**](https://nextjs-openai.vercel.app) | [**Docs**](https://nextjs-openai.vercel.app/docs)","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.7","dist":{"shasum":"3f5224ebb9eafb680f41784ba30fbf14a74a1d1d","integrity":"sha512-UwHxEJnyPFWUYHr/+Ow/fpU6exp0cBIvHnzYcF2vyDOx5j5sQVb/JXWTHK7oz00MYRFN32QNIgbuHQziCsb/KA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.7.tgz","fileCount":41,"unpackedSize":13009,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCC6RjzgAAWcNDQ9cdbKalNrpQTOv8NbT6YLc2D7Q2H0AIhAMW028WGsME1+DE+xG9mkmkz8Fq0iklOdFrS1g8Mh3d8"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8akCACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqnyg//Z0HnFjxxxgZUG0MWCC4D488yLpS+qNbU7QPdDdtwdd//17tz\r\nExe83TBSUY/fD0lc+w3qsGNbRmVddYBhMI7FnJOcvCg44bnumHIUILYEm7TB\r\nfLzybh5IkP8GG4Oi5OIpHhBQBBOcYJ09uiDpJCnHhj/KxSmt9fn42lO9T56B\r\ndWyNpVdmhrhw+4h3hOiEWMts3K1Klhowd69JXifv/bs/cWR8AibhnLUb+rkZ\r\nIUijIchq1lf5S0xPaeclnFR5G0ohpElA2vULD83odpPK0CVK60V9XbMmPXLl\r\npo0E+Z6fK7WA6a+JrPdV8wASKmNAwFrP8marstLqGlzRZRYnxmwb2+HsEQ4I\r\nLLRcZnQefmMRmFkPDjcqh++HIaxMz1GX1OfulzdoBrULWczVF50vqeyQsOX+\r\n6yDaF745nUUlJIBwHozEw0zfk2SdLuJFGZ96VfTYhKBUsZvddNMGlG9edqHk\r\n7GG59Nu/mPKct4vlUVTWXMvTLuH1N39J82B67rD4DW+voTmUlkryUWbt+MNv\r\nz/bZrbjhnvJBO4eXu2ScV3RpvgRALrFp+7udoD2pPy8uWvax5zmjq6xtEmYj\r\nokSh1QlTrBxfT/3uYgvHM/Qv/D+EZfLaooxNI37X+CJdNVaaVbNr82T1H9Kv\r\n0vjkfgF9aUGMSGDI0weZ92VaUB3XYNDZ6xE=\r\n=Qmyb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.7_1676781825884_0.3958313690467641"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.8":{"name":"nextjs-openai","version":"1.2.8","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^41.28.0","@types/node":"^18.13.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.15","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"[**Github**](https://github.com/gptlabs/nextjs-openai) | [**NPM**](https://npmjs.com/package/nextjs-openai) | [**Demo**](https://nextjs-openai.vercel.app) | [**Docs**](https://nextjs-openai.vercel.app/docs)","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.8","dist":{"shasum":"8fc394a27793cee695e0efd65d6924cc2b273753","integrity":"sha512-1XvOkaP0GQL5C9pjaJhtOiiVi2dHwEBeGKgKaqOtGHDS/dSz00OGpdw9VuwHRsm4QNORfLYvCx2nCLhwqmBRLw==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.8.tgz","fileCount":41,"unpackedSize":13009,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBgwyCrWwcBdzX/j7EenEXqpW/k5gMTMXW/CbGVlsX3qAiEAsm5aROcXRu81eAwYtObDQMi1x14LDckH+WfGV2XU15Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8awMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqHvg//R5MOI9Rc8BV5wbVR0EtN2d7nwP5qiLUlqSg+4Am3cr1SEFxx\r\njfbNXLDU41UMeQHnbgb04HZjnTfqqKkF6FkWlmwj1RvZB2nRqgRTED1fsgQe\r\n8DocUJ46eo56dUXhPs88P5kwboVe4yXxo27SFAFnZ1+//E5WcPdvlfqxeF0Y\r\nppvdsCf969rULrCT3usoYkH320pbtsNunnvu55zzEM6/OZvy27nmd7NiXqP4\r\nbtN/94FBa58dAkt48u6ML7E/14uAYRpJiFQuafJH0lFc8HfibhB6NH0b0RBC\r\n3YWEpFHvsXCc7tk4nSQLhzolc/bPuAK6RW/RDvi21WawQ6aU8lhTxlyB+8zz\r\nRqu1vESpzp5ZwZYWAEpe8vUD5YE8mZg7mv+/8RKg8ZTeozZ8/6FiBq/3MSdP\r\nM9krhJ437JNIKdekDuGDsaELZvOGl9yc/3ozS0trG2F8DYiQ+0lq2cpSozge\r\nQRYAbxsQnOZdkOPlCVym3M4Jof7OuzhujgbQtVL0G1Upe8WhRCS+NUkZ1LUo\r\nrFg8uue62ZmOIGMZnKSMGIdPkyQkDoQwIpg8kMk6Sk1BrrAv4yn1o/wa4AY1\r\nAn1br+5g8HeDzmxXzft71D6IjvIWApeS/xHuNduOPWw3wv5I/5F8tZQkMcNr\r\nBWjq53CRRhn+Fr26TEhY23gtHh/19dYAkTs=\r\n=TU7H\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.8_1676782604315_0.2877285730026009"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.9":{"name":"nextjs-openai","version":"1.2.9","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.16","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"[**Github**](https://github.com/gptlabs/nextjs-openai) | [**NPM**](https://npmjs.com/package/nextjs-openai) | [**Demo**](https://nextjs-openai.vercel.app) | [**Docs**](https://nextjs-openai.vercel.app/docs)","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.9","dist":{"shasum":"8fb29abac5d81269d158551097d0fc271bc4a15d","integrity":"sha512-tGCdzobAeX0j3MnFXls/dPN9DQ1EhIwZlqCtmksz1mEQvcjDHBpxIftHsJ6I2sIUOokWczGGqTDG3c/RChFm/Q==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.9.tgz","fileCount":41,"unpackedSize":13201,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC4A1PAARP8Zr42q3//oq4LZmId80pFjgjK8D2z2t1BcAiEAwSiQqd2LqW7150Ejkj9K6HaMav4H4ykGCoYjrIpJrhQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8bCEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqRZw/+JQIKwZEMVeniIP0hfr3zPDlkI7Q7m9sGlyXYW1rPJmZNOxpI\r\nXpPjwq2jx/kNvi2oozuF8N2RdBKf4Hu13Z6Nvrcl8MBep1MKhN7KpJLMBg7X\r\ngfV3xJovSWqNBvZuLASOo/EsrOMCBWBZEEzVd6M+gfC7ZuU0Zn1tVIlqJVnk\r\n4RcxEPKvVChqS63imy/3JcvKaqI/KTbAMhqNWiEFm+BfbBtuaxR70gdLUMe8\r\niLIhbummpx+uruiOT9++XC22lop5TP29fUNRAmHlNel0C9wyyzzUHNDYDAV9\r\nOUkZDZkwBwH8e+jK27SRrj65g+h1sQ58W4E/1pxPydLrNORpGWPkJgHj+uYu\r\nYLSshlNBaFuwxt530CCqnlD3yy/8wVTkAGOaIvWXz2wIGfxF3kyEQmHffOnl\r\ntqcBzjkrIVzb8389HrAaLZXBU374wEr4CGUkj/HzjdnSlrCV31emzyiYHj6L\r\n/KbIkAxdHAydKgcNyFzN8yXBdPF+cyXrmRjpobJ83Y8dsSHadLtqPTH1clys\r\nA9dh6lsXf1l1NU1SIbhzLBgRySE3kJw6RmIcQ1Z+a6qU+BhODUHoi3OiD69f\r\njQMzwsExz8S2+N4zEn/kcUi4VBygFGHxByxjUqajb1lo0RjM7onEaEqXbEe3\r\nwSK0z9Wq2wmXb6IRB+r/y/I6qrkcYxqSvhI=\r\n=Zdlv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.9_1676783748568_0.304128615980249"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.10":{"name":"nextjs-openai","version":"1.2.10","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"[**Github**](https://github.com/gptlabs/nextjs-openai) | [**NPM**](https://npmjs.com/package/nextjs-openai) | [**Demo**](https://nextjs-openai.vercel.app) | [**Docs**](https://nextjs-openai.vercel.app/docs)","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.10","dist":{"shasum":"90cca5177fa796e3de59843ae70eb6fd2a5079bf","integrity":"sha512-WNchWsLxct5oEjgA84UF0PqZgaBFoQ3m5W0dR9Cy24gsNNpvrY41ty7ize6rpDo24QCVvJbBFySsb2bi3kIbww==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.10.tgz","fileCount":41,"unpackedSize":13265,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCtd06dmFTX0kJQts0HBvdtpQkUcCGRbCus8NeKLI3RQgIhALF71VgwsMCEfWCJLkBgc6KDbwEkff3h7rNxGrwkMLP1"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8bueACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrXqw//a7cUL5aBnL4kXDa2E2eC2sWdJZ6DRwz8mnDKI21ADMtZRh1H\r\nK+Sz6Oai3tO85ijydEZLrkubrZT3fH8b0XYym9QQq+QtOK76em5nAZNLK7rG\r\nvoUFGlrIxE/gw52gew6v7zzk3n1hXElnhSUQLDJixDSmsdl5Ifq77n/COGs5\r\ntT7Ae4hTnKmGwuq6P6rcKenKRYNaEmlvk0ghoXNxTwal/LbNdZk2h88/2vtq\r\nmtywV07mtzwzIS9d8wdyArBf1DqLmXwcNFWDj4oCpUuBu/Xf/7wl31jSBDZ0\r\nKaMV9wiN5rUvzzZKJSg2hxV+xMmOMZithQqMoMbBopnqQsPnVsZOFg6LScEm\r\nCo/Y1iyOSQhxUAX8nEUcSkRUGoSkguoroB70mnUuOBstxpBokzj6kvN4iwca\r\nZWu5FV5Eb8mp6z45VbsNsnczdJZpGi3dADNyXs/jm8UUwxfn0LJdU7+y6+H6\r\n+7crrw+S/DQo+Wk2h17J8SPP1nHvQEcjh+rRNkJIjrkJwmF85md1sWOTJZ/V\r\nck4XHJ85Kzp1+nnU5WnC20yoQTGqjpsBY6mngSjwrY4PAsBnP3ybCWhlYFLe\r\nMc3MxgaLXV+X6e9tGNEIJs3hGykOe6z1rEBUBT0YPklHTJ0JgpkB4rYZ9ozq\r\ndoQlD+tA6+dqChI5zSNIMm+rc2JoIWdWImw=\r\n=r/Ij\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.10_1676786590763_0.26246204705363985"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.11":{"name":"nextjs-openai","version":"1.2.11","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"[**Github**](https://github.com/gptlabs/nextjs-openai) | [**NPM**](https://npmjs.com/package/nextjs-openai) | [**Demo**](https://nextjs-openai.vercel.app) | [**Docs**](https://nextjs-openai.vercel.app/docs)","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.11","dist":{"shasum":"27f55ba0f460d61e54f445e80729fdfc61120acd","integrity":"sha512-tKTHDhy0a6aHvbRM7G0PTvKIL9M4CPPP729cMx0/CZhAArzSl3WxuPet45l3CnU8UrnnTeYDG1Cq0R1ynev14g==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.11.tgz","fileCount":41,"unpackedSize":13273,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICA7r3bXKEVCa8QZ0tsUg0oblEkb4JiCz9N+PdhQWGV1AiBR68reqQ7i6UbHRjh3ps7CmVdKxpRDyTAu0TJPTr8drA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8bv/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoZ3w/+IgTvfrlUrOz6vZWyOngYKSsaivAC1jiy9t+ILBMw3VebvnJm\r\nMW/83gTBMsLZmxgYPdbCKATzs3vc6rcxWrLBIZpgpxIVTqhv3PZzE9U0PZwu\r\nqTHLQsptLoHnKOoNQXwxH3ZNW1V7K+PwlH6jrD65BG2HgEURmkf/e/zhp7ay\r\nLZlNBdZ+jLZVwePf/zLOsDvAvgoDI8MOevezc0BQn26RSZVVukXc6axSB+Zn\r\nsC3HyQjp8u5SPLvW/gTFYEGuLJU0WnapzG63r97QJY/FH8J2P3ER7fG+ykYg\r\nA4L4+AF13VtBO6KQykZ5kTdeNF1E6WmcOAYkmZz9weTNqKkUOMQkiepaeMMr\r\npy6adHYgmZbrYBuMM5ACj0Ty7peOEaEPiH0DIGKEA+ULyadoPfOnOpMWcGeF\r\nYg5pYBwhaJMMx6TDmAqL10xVU0lknWlZZDVX0rT3NR89tyP32A8El+nHTkRW\r\nG7n4dTvKQWsPx1B1w0qLExkt1SeyMXnugMPLsoooa+f/t6lwBd7RVGb9AcF0\r\nwqQ9CcqwzZ+/Oe6sBh3GVVmw9wwIufn8FrmipSMIdp2Ls+iKYtkzBO+COcM8\r\n/B3laVOt9p9UnzD3LdGXDDwNlwIqEwqTwcvXbR/Fv63IVnodgjdfIuy5dn9f\r\nJMhl/t/HKSridgZxjuRtqPN4IsSjX6d4u+I=\r\n=Js68\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.11_1676786687584_0.4286235550639854"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.12":{"name":"nextjs-openai","version":"1.2.12","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"[**Github**](https://github.com/gptlabs/nextjs-openai) | [**NPM**](https://npmjs.com/package/nextjs-openai) | [**Demo**](https://nextjs-openai.vercel.app) | [**Docs**](https://nextjs-openai.vercel.app/docs)","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.12","dist":{"shasum":"2321482e46b8784c116f92779800e9214697a9ea","integrity":"sha512-sJSEx5T3iu7Buzkk7lNasuQfnvEI6kBCHLM9FFOHCUyuAn4UOMIbWRPgnOl/ybHsvrtvLL4hrVDuM1wUM6Nr0g==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.12.tgz","fileCount":41,"unpackedSize":13273,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDnjg6xUGsuPmMWGPlQradl4CwEPsyE9fgB/okH2zqk2wIhALfWQsikQ9TG9IH83ZGkdJoskkEGt9kRZwjD2BTj7YSg"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8bw4ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqExg/9GfoPbOrhzKu5+6ftquE6ySWNRLqI56AoUTKS+cbZgLCPCB5P\r\nE6KM5EZ24FBfcAc277yIzC+m8nvXC+cDvTuiKvguvZ3mmGTY/rlN5+ucH/4S\r\nnIaCLQXnBTUJAWaARLOAkRsmYqI/6c/UZFbx3Yj7Nrj22sW/S5Fe3oOpmPoW\r\naheNmfAwqcBDgrMok6UffX3FSMCPIRy4bR3BKjx3D6iVE4QFdMN6XS+y8EHb\r\nfTRmsJOTkUN5GlHdXSwd8JI1jjGwtw1peULqFtvTYBvQkXofAA2e2j6aQLYT\r\nonD/VY3Jp4J9zPUNXDmkkFmAlGrr2hpaAQin+42dkEWdC34rq4Nx4zdb16nK\r\nOzk6nGAcmi6BnN7wHq3qYONpjH7K3dmEv4Zanqfi/wtkEmGHXgh73JPpah7h\r\nS8VAR/PDMc2QwQiC8jk5RaHCPB/ojp9Ozuc9wBDkr5aqD+M4iUkelevzAMGr\r\nZ7fZe0r8wZvGdrNLHk3kpZsQ9iXu57toQSY9J9s1nH/ZLQAxkuU7pCAlpL+L\r\nBSRu8E8kmMfJRX3Z/Z8Ifg7nZ3j3VxFJ+RT1OhWMQ0zLpcRct6zywJGgbbsH\r\n8KDrUZY/JSALmsPWOXOqG8qZkhT2+/adXURlizWMoJQ+fMNatdj3sLpQ0mZx\r\nxnuZ530c7obsqKsHzklgcxDFc2W7wQJaqGE=\r\n=jifq\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.12_1676786743936_0.13990454650288564"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.13":{"name":"nextjs-openai","version":"1.2.13","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/gptlabs/nextjs-openai","description":"[**Github**](https://github.com/gptlabs/nextjs-openai) | [**NPM**](https://npmjs.com/package/nextjs-openai) | [**Demo**](https://nextjs-openai.vercel.app) | [**Docs**](https://nextjs-openai.vercel.app/docs)","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.13","dist":{"shasum":"e33c9445ee47da7fa430978c1a7d1571936fba26","integrity":"sha512-LZef3So68wjQdwAGIaBn2mq+FFtQ4z7joPUFPPvW8CdSPzcCyyjn83/KtR8vwV2CGE8D+nACLjbUL18LIrmaPg==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.13.tgz","fileCount":41,"unpackedSize":13290,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCl0PEOQvOhETASarrQ86VhVEvVdrvI2Vl66AfIq1AyMAIhAIQM8kylHvxoGCQ3xHLNF7vGNmVJGGZ7la01mSRsZXaL"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8bx8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrtHQ//XHlSDLWy/4INsR7fZmq3zVTYcZsw5UrtT1XuyD2jIZOL2rZQ\r\nEBB0a7u6tpJNEAvN2G0/T6IoapFE6YcniMIEqrKP0Oh7eDrLnlYHcnVNF3LC\r\nEdxCz1LVMQgsil0NjVPLW+XAhktSih3ITp29GHxvPECOSs40IJCTLWq46vEU\r\nX3i1UHVnVXZHqbHsq3axovVQq0Ra26fIhz75wU8nIupvjMc+AmxFkBkmRuXE\r\nwMIpnV0niq6kDeO/IGTSvVY/1BadHoarxultrJbzn/XimJDpp2MvydzWr1dE\r\n+NFaiOTooo1lFHuhuyiQi6LOpYbT/rBSwADzzsG7TgCYj6fkABgWoPlVXg7W\r\n2P17xx6YrLpOkqTRVVPBFkGTGXOvPpsXiKZVoY2cbjQgex6giE7txOTGxhXT\r\nCllgG8VT8jSJzxE6srVgMp1V1rT18TQk2ycGtMy4JaCvKJ3RWdIioGNC6paI\r\n53bgjPvlu77+Ko5PdTi4hLxH7k8tDCvcLsqzg+WERsQ8jvF5swQud/xHkvcW\r\nfXuIdur+2Pj6s5fGv+0eP1rjiChCOIYWx5RFoMJRTtXKr2vv9b8N5L4JfFON\r\nB9Z1/10cYbDhlMB6ITiGEwW4wWVqeo9U7exoF1apX09oaurkNyty4RfHEmsa\r\njX1M96cHpo8zYyPtjU4wlUntemUytWZC008=\r\n=M0Cx\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.13_1676786812757_0.4810817548129225"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.2.14":{"name":"nextjs-openai","version":"1.2.14","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.2.14","dist":{"shasum":"362699e57d038d28a08948f63c5ac548c0499e0d","integrity":"sha512-2X1ajofQ1tM3FzwjvVSE64Ap4W+dh0ijN8UGddjeMRvf3C/+LeXCy65kxZgCkW6TJIvV539oxV8+C2K7VVOhVA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.2.14.tgz","fileCount":41,"unpackedSize":13364,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD7ZM7n6KHtc4hMn8KQ7tFEXqCM+QkKePlMHoI55rzruQIhAM8lp0pWri1Bf2FqlMp6MAQAkR/emGgwJkelu2n95Dmy"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8b5zACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmpmpw/9HbCoge+C2p7MBe+Mc4CEy3psR69v4ocr+LWJeHjkA3K+OvmQ\r\n8jdqgtRMdyulFS1hIcvWgldE5IqZZD0QpptCvRpHYFz0CUUjktXhwd5z0TBm\r\ngVKYtW4ESXpJeazc1tUyF/0WZgzMfuSg/wEwVaA7PRfxk0D0HFmum47kUEzg\r\nCCpJzFvDC+Ls0Ams7I72VzY8E/5IEiRwxrt7oD2nAWQ5qndwLFBBtVYJAYum\r\nfItuVVCHalPqai5jpQ8YdLnDcqABLqZa6dwo+qJdAv1AMNmXnB8J7BX8Z6kv\r\nf7I/WL8ZCyGYTzsIq91U9MaDRXEVIGDM+tJskykWboXMg+IpTTl+/LvlU415\r\nv+ggkfHzZvL2YIz+jOVvr9G4MP/98dExn4BWM7BpjpdNBiiRJuHzaAxSk0CV\r\nPsa6S06muNnAZyMN1qAbXtLPFIT+RWBdINHYdcy6qZQ01G2DBtvqohxF+uhS\r\niYZyKCP+Qyg1u6rpNCCmqupQwsL6qA/mBpcHcnurLLCZ2yoSl8aoVbYMNSSm\r\n9uEK0v5DeUqtUOvmVy+EdagAY0pQEj6cWeahnuR6B5ZS6Ek+w+rxKtGrLFcc\r\nUollnLewfTmEugXDUK7jvNsQlYS03zN2icypsPDZ47p80LMZQr1Gr3yMga5m\r\nSKUPuOBwooUp0lEoOmW4Dktere2lH7/Si+E=\r\n=EHL1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.2.14_1676787315509_0.17399792735544461"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.3.0":{"name":"nextjs-openai","version":"1.3.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.3.0","dist":{"shasum":"9679b3833cfe48c5e3814d2b4b573e94bb725db4","integrity":"sha512-0S419lPE9lb8BWEyIUGz47vyV2x4kWjihCHYP6YgAVPLsz2pK4/VjEvRWL7P72k37xsCvUpeOtdrsa/UOzpE9Q==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.3.0.tgz","fileCount":41,"unpackedSize":13351,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDBuT1nTa1g5D0S5R+0zi71bL9Gcve9ev5Qdq7XZoPLbwIhAMeyGaDaOBIV25qErAfzvueudJ2J8Mc1eo8y5Tn0/DNl"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8gyqACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmouEQ//dfwsb/vCribxTqYHQ4lsbPHsnqCAjq1e/x/bDHGrLxLReNFq\r\nM2zIZA8EyHFfF+Nt4ffNqNibhW9BSM9NpHBoWMN+xWMU0EeSUQWR4gBtPhlD\r\n/7MnVRovR4JWJ9uUzXbPJi8v/nPaMXbqoh8I+k0QCw5wTIH5B3QhHlyk+30B\r\nCUTE/TEhP/btP3DaTQTenUGtX3304c+Xr3ZsWJN3UvchKxc/gLjFgePfLC/s\r\naeiO7BIuI6pHodt4JYBJ/tYEchwW3snrSbChlryT6V6FPXoiHSOMNr2M1ytJ\r\nrB7nZPaj7IEXay1t8Ki1Ds2ev3quDoJox9SgMTCkMNRxwT9p02xhnqgcUsrY\r\n/Mlo2FCNFzjRv1I5hckqUva7bJj7ZDBQNhlnfRPaWnFFn30J7AdhEQ04bMne\r\nI7CJVyuYDrcRbtE59EEGSIyD2cRqIExMAZX1BlGCHoy0MD1MlBa5I9eUUxEy\r\n3breV5AYCsySjQ+cZbpntEUNQXCEe5ryhrTjlvfBSJB10c4Y9unkcY43uEEc\r\nxz8117jFMzHHUpN7c+/mkKTHFygilnDWgsIMpbkWEPY5oZEjADAH/E3KHlOJ\r\na/RqmYvLu/0N0z1sQKQP+YHilScKHzjoehJFhfQ290satlibvxvmzziwbbKF\r\ngNtbfCrG64v7TKpjFHlpiisbdHPaqX6BeI8=\r\n=7QUF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.3.0_1676807338095_0.27568335479139705"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.3.1":{"name":"nextjs-openai","version":"1.3.1","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.3.1","dist":{"shasum":"3854df7a5152d8e007e8697d7eb8ad58d44dd830","integrity":"sha512-WAeOBHlsL11CTUVF+GZbmPEYKZzI/xQKVqZZ2aPozZ5TkBPUy2UNAjy/0vyVbJN68aDz6GidJNX3GZtwUrUbiA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.3.1.tgz","fileCount":41,"unpackedSize":13351,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDK7cuzwKu5yQXiSkWHb/emdXwbzsC1/jNC6CB3jB1/FAiA6HLTG/sbJl3tmAzJoABeEeNFbQP76UDO8zNDQixtZVA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8hIwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoaXw/+O7tPPWRKMYnSF01okLHzqpf2nxFrLM7amlJvGXsuRi67g0hS\r\nSHTmzrhpWOv4GMen+ygLdz0G5Xb+nW5z5itpLTMo7Zy6lBvq8XiMm+s6wOYT\r\n5/T57SyQDXIiB0czE3ULr2t9+86OyW9fWde+2JegoUoPKcW1iZ9OD7ZDH4Qm\r\nVniiFvd4UU6wvFtQ2rivNi8CmKEqHEby1FzVGoa4odXuMSOjcYIhms1Ho3PH\r\nxZSqt7cRM0U5JVAL2cLa4S1TsxZ9+pdeifrXsayqmC7JIyzKA/pHFGCYE/+F\r\ni/RPcqHxZjFSrPsAlgBRB0d11bcy5csjcoRr/hwEu/DMRjOEeDNywfv4/64L\r\nDdp6XyE8YrluoCfm1+m90HyDuPQ4OK0vkzgYO9UDtGOx8+GNxKkWNj/ik+pw\r\n2+0HBl9Hzh1gbDjYmL7MBoAPS0uBsTPC2Fgb3xsgI5ibcp3n//kuqgco0pea\r\nZ1FpEBVQaM8LLmXIbn5nubSRkbK2+0hHdWW7RWHAFQN4E79qfo/zfHZQX7m/\r\n8axZ1l7VMwITuTbnuH1VlwK2UFYFyNeYDLbspG5kCi7jJp2KUjXQeWl1/bIY\r\nKFyH4oX3r2FBDkTvJYsLKYORgbDAIT7R8yrnADTktNXcMaGYuoMKY7ajSAve\r\nUAQ2p9bEoys24yHtLlgGleyw2qN1GVNIgy8=\r\n=ESdC\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.3.1_1676808752282_0.25881657152293713"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.3.2":{"name":"nextjs-openai","version":"1.3.2","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.3.2","dist":{"shasum":"8e61180a278c467e469d325c66356e08ce3c351f","integrity":"sha512-dU9uH4INmeFKbVGl8IuCmYCFXxly13CkQ9GFhRwoM/Ny8cRjg6wVFkJZmLZ1vW2RLPHP8xY1NJIVTlCREGZWwQ==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.3.2.tgz","fileCount":41,"unpackedSize":13458,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCCwvZn/4zGGeizxCkzyCXtmbuZ54LmVBeVkTaf5J+v4gIgYf9IGoRjBHXur6tPSsmmCfgm+/w1fBb0/HEpd/DeN5Q="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8hMyACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq9/hAAoSPdo3/DPaz6WnPFKoAiB1oJ7uomq7kAVIRFOTCIdK7c46mx\r\nkS5onr/SpN4zZK4VBOa/SPrZI2Txr1M3mL7qwZVb/aSzmboROR9KRRdPkL/L\r\nApBRHtA779cXb+FT2r+ZdJzhE8BP5M5RDMHNKCrWfIQTN7Yp/6vx1wQi+MhG\r\niPHFTHtPVt14jz9EUPFmIWyGShtrNrKX5632W1iQ1D2wV6C1vqGg+67Agbzj\r\nPoB3BSVcv2JSKlqaM+qXsLGqgLt+43GKHXpVHuvvqXvfeGRSUpagxuiveUI3\r\nXfGMa/ZC+0R5SyUEo5mXHS11yK2kHeisw91mmxYsFl8zCVJVCCq31Haq97sY\r\ne4kZf2dMsrynd1jWEAFNTykwxh9XuTiPvLJra+YABFVcSavge7adLPM9d58s\r\nc4TIpk9Q+NaWtCvldoqP3ltuXF7lsk8jG1JDamNYrlUKhs3N+ZZhZsF11e5o\r\n8jjpzp++fh2bDAVsFrNb5aT1WqAqw292MYGdaYM5+0Cd87z6pyr5OqH43YnK\r\n9mIAVtKcAKOM3OZHb3rz5RhGfImAc8bkKKpv0GXNgv5IX0I6SkQDBfYFGrRA\r\nu2wmQA1CfnbpxLIqm2n5w8yWs6uA8Z5b+flxPpeBrEsRsTmXF8JZKTs5iL7x\r\n9waCWKSmEkddPJi+LQ4207oVa1qXEv79sOY=\r\n=sSpR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.3.2_1676809009990_0.018548690325501438"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.3.3":{"name":"nextjs-openai","version":"1.3.3","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.3.3","dist":{"shasum":"94da7bff7b5c267ef6db4c91e2f99c1d07eef12e","integrity":"sha512-2cGDvoAfhqWcqiyKmhMZJdeDxo9yT+gDs8RLmm2sb3Jzkeh7WrcMlRqB8n6LgOWMoCKYxFQ/OPUgOdqBDyiWbg==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.3.3.tgz","fileCount":44,"unpackedSize":13406,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAFddk+yNAONyc5roH9TcTP4NB0KGvoA1tlW+4bqZlUNAiBTRd8xDeCGj9EKRwru7f/05YSoVL+Om7y3GvUSuUnl+Q=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8uBHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFnQ//f42Lk1BVUDHpoNWHCsjFD3Anm0BuYNT+XBBvDrv6NAKbqHdZ\r\n6d5NbqizwOs3LCHosgRMOqeAcqJlxA57gMCntBnvyxCCejXsZ6okcNuRuXLt\r\n3oIs7GN2Nfr1Mf/O169KDKwtoaea/uc53kS0BydCRfacOp7YIt9I11hdqNDo\r\ny/ajJp+vhqmeYaKEKDavTwkgWe/OnlzFrLejpeR0cokFpbn9I4R0t2rXgc8E\r\nEOR/Eg4DdeY7VgmyCcCAm/7K7saW6uOoKK/6wN7fMN3VSnKQChFe8pqx5XLv\r\nsoSyeD3zVnYKPjOMPJ4Ic4/9h6yNCNB/3OOd64VMvNmcAIWQxe+k/zLas62k\r\n5ohjTbDVxxjbVTGnNeocOpDcq6iclCG3BvdUVtjkM8A55NjOb45LC/DJS4wz\r\nvmA4ZyB4LdpS8zBWsUmcO8uFP6a9epXtw8desT0wPWsPG1EQLFHLIX0ihgwD\r\nR+AKsFmzpmoyfMlPohJLVF7g1zJrv6GZq1LMBufr2krGt4vLdvqtWgcYAdOI\r\nUvAS4qfNyluxksjVzsGFDw9x4KjtNOHL+wLZViPSXjEbksQyIKvWW64ZU15L\r\njsVIKjb6T2v535tGQbKPJLh57VVcKixgQ3Zjl0k0uUe2iH/RPyR2S+Q08OaN\r\nrm92verqvp4Y+XrGZcoOJaMHPIHwfbOby1A=\r\n=HPBW\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.3.3_1676861511665_0.449430023803677"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.3.4-canary.0":{"name":"nextjs-openai","version":"1.3.4-canary.0","license":"MIT","type":"module","exports":{"./package.json":"./package.json",".":{"default":"./dist/index.js","types":"./dist/index.d.ts"},"./*":{"default":"./dist/*/index.js","types":"./dist/*/index.d.ts"}},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/gptlabs/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\" src=\"https://github.com/gptlabs/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Requirements\n\nOnly available in **Edge runtime** (or **Node 18+**) due to reliance on WHATWG\n`ReadableStream`. See [**Edge Runtime**](#edge-runtime) below for an example.\n\n### Installation\n\n```bash\nyarn add nextjs-openai\n\n# -or-\n\nnpm i --save nextjs-openai\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer(url, 200);\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL url=\"/api/demo\" fade={600} throttle={100} />\n  );\n}\n```\n\n### Edge Runtime\n\nThis library re-exports\n[`openai-streams`](https://github.com/gptlabs/openai-streams) for convenience.\nUse it like so:\n\n```ts\n// src/pages/api/demo.ts\nimport { OpenAI } from \"nextjs-openai/streams\";\n\nexport default async function demo() {\n  const config = {\n    model: \"text-davinci-003\",\n    prompt: \"Write a two-sentence paragraph.\\n\\n\",\n    temperature: 1,\n    max_tokens: 100,\n  };\n\n  const completionsStream = await OpenAI(\"completions\", config);\n  return new Response(completionsStream);\n}\n\nexport const config = {\n  runtime: \"edge\",\n};\n```\n\nThis relies on the WHATWG `ReadableStream` being available (18+), so Edge\nRuntime is required.","readmeFilename":"README.md","gitHead":"a61709a51e01728813b017a2803e82488e1b5d4d","_id":"nextjs-openai@1.3.4-canary.0","_nodeVersion":"18.8.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-XwhYka+AvKyuEkOwqlLppeXwJBNI3+kgqg+hhXsMRSwQt7IKqF7+bxuwp48djgOW30nOF0opazA92KOg8MZO3Q==","shasum":"d62d0b0e83cb22f66e7c1ee81427e099e29dfa82","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.3.4-canary.0.tgz","fileCount":33,"unpackedSize":13507,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICWf+++MXazXfoUBJRXbISiMn6f8Z8tX+8uKuF9SfMnDAiEAt0kb7yhPVEfHObpErQzSza7DcbL8UjCl2dkQfaH5XwM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8uOLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpANBAAm+xx6pQaQFXuieZYOycIRpWjY3IoqCl9vUye7yFd/TnMTwFw\r\nxjZozL18Wqxh67pYMujS/Unw3Tx/W6Sk7KU9ZXAoccFvsHVbebePUyqNE179\r\nA3U2Wg9LIw1dIyMfHEsi5CBCqOK2r6bMsTZa568I45yyXlyavbJ4ASeXW7bL\r\n8njeKQaER/GgXSrazW4XpqStdQxaVF4oX7o/jeY5lIwVlCZL6gobwE97lX4z\r\nq2lGdFNc7zDvhLqUqJhII1XnSkQRiK0/cUOyMtVI4Pg6AIiRL6gieTMBcXwT\r\nED6ydkBC/akOnhcgCLMzM5bwnejBQDGWm8VfbaehN+Z1L7LbSqcXua231hpq\r\nualEbmirVEIJtOuhpSgshVz4Rot80iRzNKGsIrSNaB5W3W9Vrz4tTsoVnaEZ\r\ndKeYQjk4fRc1BZOFjw3R/HVbSJwp3GWzTjiWgW0q6vuclXB2C8GTO42c01mR\r\n0E47yvRPG/EBoTqGy9cJzfQ+xnJ9XezssJBIj0wfsZkxAcTPV4KD4c51vM1B\r\nMvcRvv7pH32IukwaNbo56ZquDEn4S+u5aZ+IdUDZsKN4E9CQhH3sXkRYFDds\r\nkMIvKnOPAnOiOaAY6MgjPJkg2Ot2K+MbGvxXzCsU7+Luv9S6TGCqyn0yw1tU\r\nF9wbMlUKm1CtVgn70xfA4+o/kIgrCsKrqS8=\r\n=VAfT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.3.4-canary.0_1676862347089_0.652875416477392"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.3.4-canary.1":{"name":"nextjs-openai","version":"1.3.4-canary.1","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/gptlabs/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\" src=\"https://github.com/gptlabs/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Requirements\n\nOnly available in **Edge runtime** (or **Node 18+**) due to reliance on WHATWG\n`ReadableStream`. See [**Edge Runtime**](#edge-runtime) below for an example.\n\n### Installation\n\n```bash\nyarn add nextjs-openai\n\n# -or-\n\nnpm i --save nextjs-openai\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer(url, 200);\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL url=\"/api/demo\" fade={600} throttle={100} />\n  );\n}\n```\n\n### Edge Runtime\n\nThis library re-exports\n[`openai-streams`](https://github.com/gptlabs/openai-streams) for convenience.\nUse it like so:\n\n```ts\n// src/pages/api/demo.ts\nimport { OpenAI } from \"nextjs-openai/streams\";\n\nexport default async function demo() {\n  const config = {\n    model: \"text-davinci-003\",\n    prompt: \"Write a two-sentence paragraph.\\n\\n\",\n    temperature: 1,\n    max_tokens: 100,\n  };\n\n  const completionsStream = await OpenAI(\"completions\", config);\n  return new Response(completionsStream);\n}\n\nexport const config = {\n  runtime: \"edge\",\n};\n```\n\nThis relies on the WHATWG `ReadableStream` being available (18+), so Edge\nRuntime is required.","readmeFilename":"README.md","gitHead":"53e9ebf9ebf05cd30d8567b1f13bdbfd9d5d2e62","_id":"nextjs-openai@1.3.4-canary.1","_nodeVersion":"18.8.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-ZhNr41Yvb/1KkeV03YvFGa5dVZNVUg/RX+RzORK4cbN8giKukM0hTHXqdTP22dC1+5gveUF/h6FSi6W52tj/ew==","shasum":"3576586e253f4369f8df75b03dd25b4d35bf37bd","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.3.4-canary.1.tgz","fileCount":33,"unpackedSize":13415,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFJAPdRWsV2MigSQWzEFQqKa5GshL+zgkZSs+b7FY/dxAiEA1OoS6MP62zLOz/bMnN9yuIFMjExKHhY2srzTG/dK4hk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8uVEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmphXxAAnHvfw/OdNQEgEDqQCVc5ntpskoXH0yWRDTeWitHz8aolTrDa\r\nzRNTyRiHsTclePKtO/swj6OX12YMnFGQw991ylyh4hTYIcrsZC2UpQD2+xlw\r\nCek7aGS39ZuXpOGkVRZKcKjAcYsk4IHxnvM/quM0yB1oKCrfeVhuYTFc61ah\r\niFN+sXIjoLfH2O7AQk48wXKYge3Kwf6+nH1qikoqFACKIi6e8jUM1da6mICI\r\nA9q/jLOMZ07O2rQqWCbArZ8EGqWabeA/3v9IHxrqaF8Kz4FSZSXUA+TyUzor\r\nhlksDEFLpwG+0ObJSlM5X9qVxefpqwnHZZUOvMAx4Oqd2l5ZMmktK/R98w91\r\ndrsPEiG2zURg4Se8XTpon8i7P/Ql1Reicv+vn9THwASyF+TSA1Csetu0sKER\r\n+1uJu+xIMkCssmuM8fgVJOaTqPP+yhQTEUYz2iO0UhiLvXLKY6CJ/hyz2WhT\r\nB4jcC0MzvfYTYGCxjj7X+nAITLXp0WJFiEjQibX2pLFBW+N4OG6Zg9g7Updl\r\nVuJ8VbdhqqZ0aLOXOPYs2Y+Kl53SnflpKfZejeBEgXgYRj+9bncFr9QttJGN\r\nm+/OngIeCD1nR1O2CeZPIB0O6fdU2AGvMwISbdGL2PD209usmmKDUqnmYoiu\r\n4n4jzd6gBhWv8Zn5tVlL921GKd5EB1vQViw=\r\n=M3Ly\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.3.4-canary.1_1676862788386_0.8894610247547472"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"2.0.0":{"name":"nextjs-openai","version":"2.0.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@2.0.0","dist":{"shasum":"bbdd6cfcbe51f7a1d5ddf189ac077bfcc7914075","integrity":"sha512-fPD2RZqpKDN+Tr9uyTnDOcexHGdsdV88DsyqNsZx/X40KSjN7FPvzGebhXW2UMG8LtHnyjaEiAlOlwvG7dHQQw==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-2.0.0.tgz","fileCount":41,"unpackedSize":13276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDaYQAX90TpvAZcuWx72ZkM905jaPBC6KPTkPtY8NxHuwIhAPb1Ue3NB6ojZGpRydWcPQTy+cgvtA9RHD7wy7UeLyET"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8uZmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpcYw//eaIj3+OiyGRTpqZVH9NicxFanHcK3U5Rx2npXTmtJ3sWjkwv\r\nXnIngC4PHVUnb1GOCV5cHm9OWJwoBV9yHUu0B0cm7/HMeWKNTKzPgKc5Ep3P\r\n5EcBDk0e+zGH7gEU0bPESJIo2/3w6njgCuB5InfPumO+vkmkCPZs4GoIqY8z\r\nOwpNHzjzpjMahOzDSNplYbVHVRRdawQKrxxAVqq4fldR1Zl4YWq2tMvwTGWh\r\nAeL0MCeFekPtRaazV4NtOTYfdnZBaliWlDC3yugkmSlw/npKl+t5xylaa/hB\r\nNUahOs3e7POAOj8xbp7XOeBT1H5eZ5VzEFtAZ4JWv6m16O5/WndfyAJTNjtM\r\nh1BVljy2c6NZxt4eNCRfcc5+Rb1fN052s7AGqQh1kLmDz0SkCC6adrXmVtPU\r\nmI6mVZ3YyJJgENA2xMEJ2bB/BCKEWi6hrDdO8bX+12Kqscl4IEmZY8Gwzdud\r\ncwddaM9NNsIJRvi8TvhL84/OY5T9gmZG3EU/YkmqWRdds8xdhwfNzEviS3HP\r\nK3kyioci7nq6CgEdclLrs4uyAu9KqqN1D4DjOH7SJwXU5+3B/FI4yb2HpyWH\r\ndX2JFqCT3MwZ/IPzGmlkPhsbUjj76TQqFv68lKPhtK03ZWiPFKel/blxcTyJ\r\nacIq0t7WKu1AhaZSEM5bhS3/jzpxobvhLsc=\r\n=lEJ7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_2.0.0_1676863078408_0.47643036802332905"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"1.3.4":{"name":"nextjs-openai","version":"1.3.4","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@1.3.4","dist":{"shasum":"a395c0d4e9f382498a8d0e633d32a87d2758ffe9","integrity":"sha512-hhYBfPkL8EGZ4hdBEEEatDEpO7c1U8g3eNcpf27rv57OQ7GRlPTl7BNrBkfwQvtHwIOZKFaYYfY+Uo868/8r5Q==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-1.3.4.tgz","fileCount":41,"unpackedSize":13276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDWsGgiWO537RMDC/s2Q0XwvLWz7PnjUbtrZb7qL4kOoAiEAgpJyvBPpGzLygzfiOfuJeig4FMwRUxxejTrBq/y6jQQ="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8ubWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqWtw/+P7AoNxuk/7/Uoclg9m59QTWviSWRM2x1ww27vkf8iIJg27T/\r\nSyaH9NOQwtuzcrbYucwPODhGXy2EemP2whwT6shDZa4llVQ75F6T6l3tY3/A\r\nYd8PQodeL6qsrNuyra2tB/Q8rhCOw66MIkOKdTTKpXRszv+6Wey/xzbK/PmK\r\nvHNP2ALK3P3DggxKCbw9zayODl2qbryGhjT2ik7NHdC9/oHWi4Z6Dq/jz7hO\r\nk3ouTNt+YPIUgpJ/ddM1o9cmrTGnvf7pj+dTz88XTn4oJr5qu92IdNsCfE20\r\nYHUsSaVlntQeK9rIkNPjd4V9j2++yHn+uzillgTSyLYZWlaBOZHFdkvgh2FL\r\n7CX8/bIhWkuQW5qEZDL/uFaPB1yGXAHPYfnjkh8DouyHdtcZsP1db5+4aEl5\r\nsJuc3gFRvCmH/yJiQqZ0YzWay6WU3x9fJW92f+Mo2qDYGphgEljhvcAxTtou\r\nsKa7ZEzIe1JbkGozwBwjhTN0kI/YxTRXFkBmA6Be4q4ezwv5QCXg1hpHR7NZ\r\nDXxpuJlzxFCX6fMikCLWqVidsTMB6pY8kLvtS+BU7FLeXcst5bZWGvfOiWQj\r\nM/tn6k0gUehLKb7VkSmNOeQ2EFRAoG6gzBl/haFO+Ux0AEouTrr/B9an0wPw\r\nHgdfMYImavYvt5KRQlA5qT7Vfvz35GOL/XQ=\r\n=nPcy\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_1.3.4_1676863189810_0.7503926534120999"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"2.0.1":{"name":"nextjs-openai","version":"2.0.1","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.19","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@2.0.1","dist":{"shasum":"d8758b0f12c0a764550f8f4e645f12e6ae6d58b0","integrity":"sha512-+JG3p5zX/euZDbgay4bde8fTkM2xEcF57C/8U68oppQa58N5SESIB23E1dULwxhE0MLj7QcicqU7hGsue1/9/w==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-2.0.1.tgz","fileCount":41,"unpackedSize":13275,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDeqVYabAqlGuRhqcMeph7SGh2NxuNSiyZ6Zi9gRa2hrgIgf/URr4qBP5PPsMYin1/BmYxkF2Jexn/TCc7zfalAuf8="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8ubtACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqn9xAAoMfbaJoUwh2obVIZ3wjvIyPjvOcX3ibO9cGjOYu0f7Hsr0nU\r\nUiHZSnOuHjQdnPq8kZm3WT3o0bxwk70xI0UvyIS+cbR+fdjQov6L0tlMD5ks\r\nn8LXs5lbwQeEdIujh2M7spznIPtmrFue7GA3KCL6Tlxa5eZhAkso8TCJDvyW\r\nJKCl2sOt2dt7qoIlnkz52NPjUw1KWn6BhZrCs1fjYKE1FFsz4QD7PgSM/wko\r\nWHSnPi5PEPQ4+sc5aSdVHaaYK3HgZx3F6a3yDuRrM1vmk0m6sPndnA00g6es\r\nPEujVCzUkoYaLR5ITyzDhaDasVO91Zx4Y0acnF+ZpzYaPCWkm73xqCsKM+z9\r\ncqvHOOuwbg7Iy0htXJ3+agGxpwI6hhV3wpVy1g43rKfBkcWH/k9fNkxo8SpU\r\nNSq6L4ii1DlUNVAJE5/nW1bcy8gF3ffQfYvtYt9VJgqxJ5jOaM7CiLkjBKRC\r\n2e//eCUdsVs1Rri1EGzzvJ0fNc/J0A/tqwF6C2lp7BhgZ5I+Nrur0c8iVC/d\r\nR7hqvP54mqOJTayBfKhurdgUh5Yps6K8VB7EPnWpbIWyULiZ4yGaQL34t1UF\r\nFTB6Oidz06Nx3x358WUUeypdeJmmsmBR3eFDsikQrqGY0fk3TYsNzGM3a2hW\r\neIup/VN/4cQzJUzkn+bcdDWUyc2wU/j/aAQ=\r\n=3C+F\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_2.0.1_1676863212951_0.4384015124674687"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"2.0.2":{"name":"nextjs-openai","version":"2.0.2","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.20","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@2.0.2","dist":{"shasum":"597383f72dd46b51a8eb8ed1c226c4f1df724c48","integrity":"sha512-aOStQRamWutIvoOFxezvOimUkWb4lGlNUffWKDOL5NfLUIAmGCBxnyQ6Z/UwFKnuErUYP4DIUYS6dcon6aPBRw==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-2.0.2.tgz","fileCount":41,"unpackedSize":13276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICTiSxavQXERV+jHZF5acxhZAL/K/WshfmP6m7XVL+y1AiEA4hnVrPrdchd3shF6seLWzIYs3YvzKRUrTQXTFBTTNow="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8ufWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrl9g/+Je9nfABRuJ75CR4Den5+uLdVoaFfsoGrKVvqYWur2M3+9I9X\r\nnmK5uE1endh3I0RS9PsavZ1aCIwQPSc8zp3n7cO71d95dNVjbPOJaP7iJ5Zu\r\nNT/Q3Yr/41yQ/ZH2j3G9OojSurXQEOGDjetc7isSm9l6ube1N/fOVijp/A94\r\nuLC1mxsy2TV9oWLWCV8VrW0OtedjXkSxiGH+JThpElCZIwrtIvMAeBmddAEl\r\nUyjbXrjXdbFZkUULM3t2uZDBJivcuWMJkBcLUbZnoriLNXxlqKvNAYMir4Le\r\n6zPJgEY6t3keK7dyOr3qj6Xid7EoMYnQgDNBgnoqdUU1IxsnBubLVFA9Tt4i\r\nOtAwbLhNKrOBwZ+2/jiitg1EuQoUzvdIc/TSBu9gkNVR8Q6KemS+H6W4vpQY\r\n+MIj+8ZEJ/eMsgmrkfkBlttpCrHZlXKZfNcfvWpA5sy8jmpqFyJazaGd+jBR\r\nZBWhnKTYREbL3Xp+EQoqBqIBjn8a/hWAlKMmm2bHrWgbgOzZs7tN4BOqBLeK\r\n8+ugjsTcInV9Caae2RtzpYaxEEgLllcmtDOIaEvnce8ae2Ke2/71eRA6gbXd\r\nDBgU3SgXS/fUsKA9SGaVnoquxggoPvjfXo9inTEDWF5fP2Z6NE/gL6/q+QTF\r\nbGagqZdEWxMh6oB4G+z4+q+W9Ri//YIc9FY=\r\n=o79R\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_2.0.2_1676863446320_0.5089648067103958"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"2.0.3":{"name":"nextjs-openai","version":"2.0.3","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.20","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@2.0.3","dist":{"shasum":"e138a7a490a27c7062f25dd38edcfe9783d8498a","integrity":"sha512-n7gpVle7VLSZ5sGatlrONjiLZmsYr8344OGBzfOMuJnH8NlHrvsWqfrefqusvsdFXsDSWr7A1J1g35u7FmZgPA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-2.0.3.tgz","fileCount":41,"unpackedSize":13269,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrHJHhEG4e3xLJXu1P1LhvpugV4rHbAmbHB9zDMw2ATQIgZEdEVMjM+sk5fHIQbEf+PdtBut27Lzsss2cz5JRtwP0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8uk9ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmonhg//cWNDqcXLRbAv019Gpm8qm966AuVwGbg8qh1H0xxV7QL/iXdw\r\nE+y68uNdP2V/AWxzCYzJzbOEasP++cMJOcb3qFeNuGRNQmzZmza0Jiol3FLk\r\ng7zb2W/sbT0TW6Ig/o4bckPy7g8Rs6tIm8wZJ/qLhwA573LVIFr/HUrt6/p/\r\ne8vCSP7iURXijo88pMNcp+Q9QmLK39W3bAqWqkwKmTm7KKre3eY0+hydFos9\r\narA0860C6pDrtHlUBBmF7jkfDTgD/xvc2bJUiH61P8uJkU7ER0NF0PmVAwSy\r\nnDR/zhqQnWkps5KTbb58SPcHrLtwV5fFk3Sp2HL0dc/EcuvSYOQ9ZM5g3ylb\r\n20GfiUTAth72ZcSuCUH+es83aEgFG8RpyADLleU+w4iJSQSAal699PCvR5pd\r\nT+hEtLUwJ3I+ujIZqK7pP1TMuEByAb9aRmNh8UIMaMnSug4dIVEkwuzms1ra\r\netP1ZNWfqo7L3Uhfo5nHW3K3cXcz5ykm3PlhPLELx4dL337218OBz1sUGEHW\r\na2cI/ZpBFqG6w9kts71imcT421tBz51xBc38Wt+HP819IRN0M2oz10eZv16J\r\nAjzMajkxpMAnAO3zmdInaaIiDYu1L0j6tDltx5eqXvQf1Dx6hxI5NuifOmLB\r\nA61C4DAsAr+OleWXCi2eaEiRsaD2PmHE+Ro=\r\n=csl3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_2.0.3_1676863805355_0.7010925027656079"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"2.0.4-canary.1":{"name":"nextjs-openai","version":"2.0.4-canary.1","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.20","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/gptlabs/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/gptlabs/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with streams in Node 18+ and Edge runtime.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"openai-streams\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ url: \"/api/demo\" });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/gptlabs/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    method: \"POST\",\n    data,\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### Edge Runtime\n\nUse `openai-streams` to consume streams from your API routes.\n\n```ts\n// src/pages/api/demo.ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function demo() {\n  const config = {\n    model: \"text-davinci-003\",\n    prompt: \"Write a two-sentence paragraph.\\n\\n\",\n    temperature: 1,\n    max_tokens: 100,\n  };\n\n  const completionsStream = await OpenAI(\"completions\", config);\n  return new Response(completionsStream);\n}\n\nexport const config = {\n  runtime: \"edge\",\n};\n```\n\nThis relies on the WHATWG `ReadableStream` being available (18+), so Edge\nRuntime is required.","readmeFilename":"README.md","gitHead":"7d817eea549e2dafab74d797acac940b090032ea","_id":"nextjs-openai@2.0.4-canary.1","_nodeVersion":"18.8.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-d18tTnZPd1MOGPhN/ag8hcI/j1Hye/poD6JK8iv8T7VSkJ8HAtJ5FXDxz+49/z7nnLXamvGs/lTH3M5D7uKQ8Q==","shasum":"bd466593c1eec37edc380064d3cb8fa8f3f865c3","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-2.0.4-canary.1.tgz","fileCount":33,"unpackedSize":15560,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCxZjQBMTEgSWtirtEPLrHj0QG/xsgNf4tQE51TpbInYgIhAIu4ur2O/eijPB+uQvV5DcXPVzmbS/VrAj4NmQ6q3rW1"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8xQuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAag//akMIL0qHgaIIBYsxXfu9Q+ilja28sntnwyYyRjnTjlJsCEyS\r\nl1ajfsJE6b2FlA4HhGyZ0jPYUc9Bhq0ItufnJIQHzqlosSW2YAIhF/qTglBF\r\nGeYMrs4C05+CkWtj7ULiL0VPhO8eT2qAsYteN4HKFG8CZjvNeaOFL7Xjo8Kr\r\nWtluKcytxkUrWJwu+SFwvOYt0YWycTsbvY7Qz7ywStylcg0SOHH679P/pgr4\r\nwZB1p/f36eFUt4V2L5NoTNOyuSDa5JtT9Ysqx7vsmQ0Qmx1AOZcHc3EAol3V\r\n6QZrd++nZEo4Y3rdu/qZtJaF2yjJWVPZyTwx0Rw1HuIW1t49Za0iXLYnjqGl\r\nZkee5E7tbSM0rt0IpJ6UAPyDQuoHy2H/edYsLRdI5xgNGxyO8NmxzJA2YSSp\r\nnAdiDt6ESPqCkUfAxLdTEjfXmiWQxuiiW44mSrDOeHJBJ7FkWruEH9lvQYFe\r\nBoQ1jD3w31dSTby4pG2g8t1bUNHqFiFIAiDdHZeYMM3+yF4GKIQ1ulcusBgY\r\nuz8lu8PzzfSaRQ+KYm4PmG6yp7lJ4PJQQ62oaEqAgzKKSwJ0P6thqRN8ufr8\r\niui7Ik4wJbGToHq5LGiQ4hdcwa7iwaThkxEUaU7VppVwSP4cuMT2xYzWXdxU\r\nCwTGc9oYq+n8zA1OF0xzBE+qz8X50YFZhAU=\r\n=AfV7\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_2.0.4-canary.1_1676874798448_0.9987222634706796"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"3.0.1":{"name":"nextjs-openai","version":"3.0.1","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.20","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@3.0.1","dist":{"shasum":"1cc7cd71d1d4c8c0281c1411ec2a466fc4a92645","integrity":"sha512-q2JF5pI7wQ19Hi6OrHsYjrnPBq9IukblxM4GCDHxHoqSAjr4aUTVrzfQm0cY1hIOJx9CKsMtKNqy/05w34eLnA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-3.0.1.tgz","fileCount":43,"unpackedSize":15551,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFk5uvRP+RUm2o+4N15b9jBVCnWj/bEvEQ+p8wKCo9wUAiEArix5OVVWEnYPaLPl/GFZGvONjtfkhGe7BSxbq09iNKg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8xVXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqLPA/+Kv/KgTlzJc40YoQcMsiYV7Q6IyOQVahFh72GarHNo+joOoCq\r\noFHLTnlKPibxXPpuXvQ+UJSp1nVvu1MJMvgTXMwUqMYMNKz9ZNdE0+ld4Z0k\r\nHuJ5LP/uHBdhveBWRAZwOMs7lWqc1U+C4lgDvOT0gQBHFxNZAV+y62+kE58E\r\n1HPJ6tbhKSp8puaKKjfrUICaj0qRvUTmKWMX4xl3vrCrAvLoiCPmIdUsEO0S\r\ndSooB/PjdObQoD2/PyHRcLo8/CJIv9mRzDvVW7jeVQQm6f8oEVM4L1HbqvCZ\r\n98cgKBJkT32c0eJ6Ff4nX86BQIbtehJ21OKDO8dVSgioZzGxswNpFX1vj/Y8\r\nibNv75jIOvXJlzLDTpROm9ozx+Y4k7b6r3bKBiqGt5LDigmx3NLnI0Huque5\r\nyoNX/cafDU/gaCuxvumaZmKrqBa0v+qXT3CZMNiDe8yUnjU6xw4v6o9X5k41\r\n1UXUlCi59zR4P4MuKDvMVMuRkDISnm9n2eRI85o0KiFiZ5h/dgJKiBnxmKIt\r\nxMJdoJLfWKhsRrNI/ciIhGYE0Fbh0qgctssw9vucME4klPawhj9IY6aL38JU\r\nLCysUtnHtI9BB2t0ICWfVS0ISWibOV3HifDHGZZn2gV3g2BbZLscillkA4vy\r\nRdymwsJlRV8jfd9NY4u3R8To/wCr4VGO1ZM=\r\n=CjBG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_3.0.1_1676875095395_0.8372396257174071"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"3.0.2":{"name":"nextjs-openai","version":"3.0.2","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.20","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@3.0.2","dist":{"shasum":"37025b51bb91f7e693e7342d248ec78e3073cdb4","integrity":"sha512-zAU/3SORVbBsg7mgCR04xCMuJ82VD0Rs7PtgDAshT72I/oHIn5RypToCjyzevIoFr4nY5EN00TTTQn7qlULz8w==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-3.0.2.tgz","fileCount":43,"unpackedSize":15688,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDSPMw6FA/aCaqpiDANME6FHcCpwBtxzoTg0x/DRn0e0AIgVvI1HDz+OEgCmVYNEVlT0hfmJUCkE5047csFmj66skA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8xaoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrg4BAAg2Fj7tt0NrqOPbkGWRojeGitM/rgOJR3PdstwsQYrdE4UunO\r\nfwgEd5Q9ItODlY5doQuK4iHnh8Gra0rxvWmdBG+P8UQxtzmy60BxqBEUv6pG\r\nPFkYgL06tf0NDbGIM2r49VmPTvdaa67HUW2emvi9rL/blKH2P+HOU3E3nnLy\r\nVV5n53Nsxw2Qd2DAJtL+NVX1fDXgo3xMhENVQ04oZwQzz5V6/ajTDYqV5QzF\r\n6ZQfK9XUk7NnGMfj+Zh91RbsNRq1WPXL3MouDFtTkW6Y0mm36vGAz7OJW5+z\r\nlQlruwMydF/BTuJfCUdHOR6YN2285rUJOzPkhD2pLK5jEJkW4nnNeTEkm4La\r\njf8AqYThfp4yLJTTvxFim/iHAX8YSQjIzY7Xm8LnkJAnzHTlxCVy2n4bkjsi\r\nAcjX1XV/vlBHpOU7nXKanLRWJVpBV6Gx0H7dmEPLm0/cCKUFoqxTHHZkO9gU\r\nUFOg+JU6cgyywpY/1gX/HK0oLb81gSNwOoEg5nmxwrLW+RVIs66Znncjwn15\r\niP/MEprs1f1DqPrmGB1oENpkQKwwDVJYAuRCINDUj2g7Hz3puRDWP/sbMZ2m\r\ncDGApqOszg0h4OTPd68YcVIelAAt4kDOI/zpmMmMt3F2h9yUmEi1gIymrNSN\r\n+z46vS8QqXitN0DKwuMSE9FBmoXffZd37+M=\r\n=9Qb9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_3.0.2_1676875432098_0.2049128602222725"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"3.0.3":{"name":"nextjs-openai","version":"3.0.3","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.20","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@3.0.3","dist":{"shasum":"29736659cdf094b11b182522d62ec2932a8a781f","integrity":"sha512-pNrYuGNukVpmPmoB6WVQPT27ORT/VQMzQyYh3mnp2BUSXcQ45cjr0iWUZgwOdyXShLNFO9vfqoFvZw9AgXNHPg==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-3.0.3.tgz","fileCount":43,"unpackedSize":15698,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFaFBJV7OGAFyLmMkgvKM27ChQUfbFqpv3SeLjgsWHNMAiEAoZWPO5RL2tN5wGEUwVYfc3/4J5TdkUQNx9gvRT5rRKg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj8xf7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvYhAAmw7W6qQGBWkGcysQMzX7fVS5MBM505FkYZIqLflyLPYHdY+G\r\nZ/WKKyHqWts0abs+asGG4RehYh/g5Fpq9uyoV8jtoULlhk9+1EOFoxjk9ntM\r\nzof7ppbZcJbiCtp8VT1bHiLv5Io2biPoYfbBu+A0YPLnLT8mpHRZssHQ9zbG\r\nh7ExkLCJJWxhJdfPPuir9hMsJ0R5LoJU0me9t7yhijhKDZm76PheqF6sdZdx\r\n30vAMbukDMLPXRUA30Rr8mAftUaoVtmzrLOOeXiSyaIiEatBFs8wpfoTZX/B\r\nY028ZzOwfdcXD/uJLKNqNr92huHo/15DNFt7/nK+nGhvYkSWKyuqeE67IFl4\r\nTwRzpkGtjxZ+WA+gmoD9CGf8tPO4muziyrtvOFMvFV/MG2L1e4VHhockgiHj\r\nUnPAaArITjx1MmWWWb0zDew5ekX3p/6AgoEtTPFvtlPBtCcmQBwKd4OvAzb2\r\nb0LOyeGUhdjTj1f9TXKm+06Bf1JrTzPPGNCsVvYm3LLGvMHq4kCXpQE1BY4X\r\nvEXWfFee5Xej7j70KaNreucqTDQXIbtdZkMgifhKddOIJr9+rs+xW9DpZpPn\r\nawWwj3j9nZoxdBx7UrJgmpyUynVoJwYW1B10s05jGx4IL13VH6tkoZlpBXOF\r\nLgKhiAyFAMXoJXCvFBtpM1DytNCeqeSzYN4=\r\n=Phly\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_3.0.3_1676875771391_0.06151993921411014"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"3.0.5":{"name":"nextjs-openai","version":"3.0.5","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.21","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@3.0.5","dist":{"shasum":"6c784e2072cd79d817dfbea6c28f8e94075f12f3","integrity":"sha512-ZUK8lulNG5ydV9O8iLoianJRpz9Hjlr7IBHrGp+b/Q9WcOBqRf94LsCtAcZq2FgMtEx+w3yFofcDPF1AIvA7WQ==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-3.0.5.tgz","fileCount":43,"unpackedSize":15831,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDPUggMqNEU3wlcCGRLanqwUIPFIhjSIUl8dD3jr1uz8gIgP8sfSnc3isowdhIFl2tdEjxKesYYt1z7ml4WXTV2Mtk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj9F8BACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqeNQ//f1uJc8ciG7ky+uKoQZjakOCfE+qpdbi6pJa3qeuAr6LKQiQq\r\n9dQNyEJSAz0hOq7XdBiXAKU0J6bIhDWK+DL9PWQnv3SbofZxBX8/q1/pFYpa\r\n/K5fIj4JFNu7Tsdwb3muv8Of9931Gsta1uXVsSVkeNNrqQVVUlIwf/Jve3TN\r\nQh71mO9TGWkW2TEh6Vz+ObcpyLl/7WWRumYfirsQNJoFFIrVJ01kxuLsKW8p\r\nISS/bmbkJ/ocwPhbVF/+rjurzin7uqIZpvsBMbNlTr624o1PZ+H7DkzGKzbM\r\nxaUwMVvTvOCAeV5fXEceLZWNHSHUsEPWHHOi+uF5ne5vWjbE80xHSssXsmcI\r\nJ951FzjB/RRKB7RBXd7JZ/p8Rpf1UobxJPpBDI7kDwyfIsstpEkiiJ33TW6g\r\nhJpDBr9b4FWQEN/9RfYTpxW4eIxkYFcTVi3DF1Trvy19btPjdGdyLxyAOs/p\r\nV/bx+EFaPhXgRg30ONwv5QrsEayCOm6m755/XEmVFfAUAylQ7bsw5abQ7FhL\r\ntzFrNMomkdFcoXZypkVhMOue3kwMeX7Sk81LfiIvLACwBXvjTDnJhwA9TClq\r\n/5/8nQLm5o9WWBXSVnQftre9k4ROhgTdOv6N8kcABw7VIHhCH2I9D29E4xFi\r\neDupe2H3wjUZPSZGYhqttDz5ahNzklGxToY=\r\n=tLG4\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_3.0.5_1676959489512_0.2910420910910052"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"3.0.6":{"name":"nextjs-openai","version":"3.0.6","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.21","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@3.0.6","dist":{"shasum":"3a64bae7ead4a2704cf8463aec2fd54fd339a482","integrity":"sha512-5g1BcMFgKXOUbqlWR2QyazAQ03IcglKJL4yY50NSKoGCc6yAW+5h7xgnuTR+H6jH3wrOmtvA57fslXRwWCmlqQ==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-3.0.6.tgz","fileCount":43,"unpackedSize":16163,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCB4iPYKKVfRP+1t+k3PuyKcxWA4F1FmKaODnf4TmQogwIgDehtbqUqRoTU1Hny25/Zj9dSEIbGQCPfVwd7DtbEEjY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj910uACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo25A//TtXDeVMeRsQinhUk+G/543EAShZr7i+05KCjIlDruvItA/IW\r\nmv7kwD1h+hxiPbzCklSVBBS3zjV+vWXA2G6V0RghfJfzp8axIF1VpjNXo6EJ\r\n5EKK5nueaExNCPRoCGOdMbn3Yo8D3BrQ2MuaB0dzsPZPvMTs/NbiO/6S1IkZ\r\nX5rXsCQxH9+pZW64f4/6VNJWubHMa6MbVQdJctwpbx3sVp2BgEb/zVeJJRSd\r\nSxcuuj6P5rZTzalF8lTbt/W1z28l/qspG39Q7KbZNYJZtxsSqIMTcAn4RArU\r\n5F2Na034PNRJ7+FSK9HX1PZmKLr089R8uU8RqgDBtcwF/Mmh2h0FwkUG/XoG\r\nh3xukiSuKgsmrcfBFGOizRVAcMY92TZSq6teNat0k50OG7xN0YRSRwxM/e5j\r\nnX7fA35KqOL5g+WkV9ISp+zBtd0swxbt4Kwva/Qbn21shqlqPLi4pvMVIzft\r\nbO8NWCbCBSS5+9VoQ1qJmnX7dq7VLNeG9LgXvSpCUaVs6GZ7vusdGS+LWcOJ\r\nTzAAKHOZBIYMhuanFrrIZc4YnyqhTsf04U/qgkFOywu8pHl3lmcqSEv4NgUw\r\nIqdOeY+uHG+CQFdEF/aJWs2+ZfkAvXYArSlVqztDPxIZ9NrEGX1EFgV4eYmI\r\nNF3aEQltHGOOiJzvvW3QtqLK/XwaAojPWZM=\r\n=Naqf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_3.0.6_1677155630073_0.34921658153291446"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"3.0.7":{"name":"nextjs-openai","version":"3.0.7","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.21","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@3.0.7","dist":{"shasum":"483fd019a6cdc6de7f5fdf2cc26445a50d0a3800","integrity":"sha512-yo5iMR+GX/R5gQomPflIbAI81YUOrbyM+wJBB+h/VOhWqWqONB8CdA4As0TK8TnE6/OYP/Coh4Rh1JLfiFSTsA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-3.0.7.tgz","fileCount":43,"unpackedSize":16277,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDYIEv8NNnubJu/IvFusnByRZTFL/EpqAt9Lek7PF29bQIhAIoQWZYpWwDsTUcMUkSidjm22LrMpuu9u/ajszOE6t2j"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj/cB8ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqVUA//TCtVlwBY4i7qi18ijJXgiUfRqC5wwE/wzQtVpydjObUNJmtG\r\nN7swmlsNmB75JI30wQTE2SDZgzF4Xzr5ZVYAHv6pE+J1M6bg/HdZm/t7xqnu\r\nz0vfEmUWg0AJx70b4IO/JljjmR/cGBr55qb/PX5TmbZcOLJawxHdCwiVwQKg\r\nS9vZAkN7HJX/fv6NtpNSV7bHGT854DXDA3aAyF8ELVSSeu4j1oKHSy0LHaik\r\nhtMSvTHtPolo7q7r5+SvbRHRN61fCi2E9Ehoeg9lS39W0GsBq6YLHAaI9I7r\r\njwLiZ1UDrZSY6Ksj2BR17Mpaio83rDHRuWpiqDgsQEZi6eaXmJXU+e8z2gec\r\ndwfmsmIW/Dm3ZC2jh3vc6bPYz159cnh3ZnW8hSe5uoMolPa4H9/7e2cxfCBB\r\ncuMfuhy8NMSbVyfdkNNQsXULW9zsFJ0gk6ath0hmEdBMkFy13Uq6fnihHIwA\r\niLyIhhe0Iba+FV7Aj1suIoXWWNGALdC47Pylkm2pRTV9sDJdvP0Nk9IYjxu3\r\nTYuAxrca5IQ3kvelY3sdMMRpzcHOwTp5R3yfMhpwz4IdCiyifUQEcuWHydcV\r\nk67AlLote17ssUz5hVFfYM05uUpQSJnw5OMRuyRWGpeiwV82RshSZCttZ3mC\r\nRpkMNpcQlQ3h9Zqs5HeaThuZb0gqt6NfOQs=\r\n=L6/d\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_3.0.7_1677574268088_0.8514042973605889"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"3.0.8":{"name":"nextjs-openai","version":"3.0.8","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.21","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@3.0.8","dist":{"shasum":"4824d390d60519d814aef4934f3cf1b262c19525","integrity":"sha512-8BMEttWD4XdBD2Uos3jw3R0KHY7WwH0J7GokRG12Em2w/IkMu2pq6VHHtJyA7NE92s/4ASOTV5ZJPHne4lGECw==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-3.0.8.tgz","fileCount":43,"unpackedSize":16387,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIELEix3wyJoAUaQ/TcomLWufLrZwxsxQS+qGkt50JxsJAiEA1kUXbsdZcP9iSngglHfrq2XVR14yZkJEaNY7mRE0DGA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkCZDGACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+3w/8D0p4l+AcIYrKArAHeoUbcNSnUVF8ZCR7rIVp9oPE8dXgK9Xz\r\n9M2HwxoVfxNrAogh0qtWEoVOjv9mGMsfSrK5VoPluatjC6qtWbi3orOpfHhv\r\nwzxgIeN08ih9VOFeXakkxQ0uvH2vcur7kJmHkRfkAsq06xwAa7JknW3M2sIK\r\nzhbOGzihL5c9jx4/nR+Ia1bRzWaDJsTA04i688rmBbPAeuSl1j5mH+FOjHUy\r\njiRuKvt/yvvEZVXYZzuWzFOg295Xo+AVw858EEkycuuMZQGy+bJuDovtrZ8e\r\nd508zoLxrSPT8xkxz8O7Cq1Hl+M2XVacitj7zUvee8PVN0bwcKE2PlDi6yNC\r\n9k3xmUE1TUhxJNhRaq2JeW2Hw7ojWapnYDlULsWzL1Pp2egKwJo7XVOyMZIN\r\nprNmkcRHeJcYRQjkMewkGXATFp6fDfBH9U/1jD3wM4o36wqWRW3EpzkXVoIe\r\nDtE7TwbEXGMKqMDK8kE+WK3K2kdFxFY6lUMDPn4NLV6X+ve46Npt1EGOy1+t\r\nUo+EWsKjfIMhca/h0Zu0w/NaO6KBc/Ymz61jAQT9o0ZyFegArnu5Jx166N4P\r\n6UaF1dkbCC6VY/mysW2+8KzK6MlnfUIqwAw1poXHwNeBhbBl4QcWgTURP2pH\r\nzenszjNDlrUGw89aKGKgxq+q4I7G9frXFvo=\r\n=2JSd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_3.0.8_1678348486495_0.2566442073049673"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"3.0.9":{"name":"nextjs-openai","version":"3.0.9","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^1.0.21","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@3.0.9","dist":{"shasum":"5576b544c23c996b1324388b804315cd3b648268","integrity":"sha512-aJGrENzfbh1ssqv9UvMcXJeT4im0Xj7cb4y2beN4ebUgzO79pOWFzkqp8hqGElrs9R9vrIyoD9OroNNneWEbvw==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-3.0.9.tgz","fileCount":43,"unpackedSize":16394,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDq/jsBLwQqeLdHgOcC9IZ2GlTIb+V69W2lnSqfrzXnAAiAavgKLEz+bAAYVshNCeEm6K9RVhOIulShQWTWSqd+E4w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkEHVwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrCsw/9EJwlRChbS3BiJpunSo5ynJpBGyFFBS50EZ9yLxYCg33y7pf3\r\nuKi+HD9EgCgtieu7VsMx3u3hup82LNaV0skFXIU4FGsk19wX28KmiIBAv5/o\r\nDsOuF2cfpGjRaMlOWIDLJjpZAdm2zwnnTTlmTg89xtcTKBh3cBlLXFYxBeox\r\nxp8w+7olEaCbODMB32hoDQ/u9Qo4mqvvxRxZIugDSw8Pv4U0lpCeVvcEW5Lp\r\nY0t/G7HbPUr8g3UhQPiK6THzESZbMwC+dcQ6PSnqKgI+x0O4uq/5sjmA1oeX\r\nDTOqK8SmU12bOnDWGcleNil1arNKlh8AjB0sp0CuArwB/+ru/oE/aB19UzZY\r\npvtepvT0LN9rqiqHgnOuDwWURVrn+zdfwXxb4UBIZ6jpr8C0nYvCxxw1kIel\r\n4ImLdIybJZ1DNfdBU12Dwfc3JL8sp3bh3tbzIg/iiB+yYG9xPipMatpvr/6c\r\nYSfmZQhj6MyWQb7yCtSPuVYADR93tmTuJq/ULhxJHrg0kDVkzDD5UReRatwv\r\nsgUWq8KwdKDLAf7tEKuo6H/foVg3kF26wHRFZgeQgQixSg4fVZb2BWU9nco4\r\nnojeYlRWKIJIOQYRGNYdK3rpj5+lsrL42+er7Vw+Cmc2L51+qe+TOhNI83Et\r\nEOKuMunnQhbI0e/frN7u6iH63vuqM50D744=\r\n=XMEz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_3.0.9_1678800240324_0.6789591243786195"},"_hasShrinkwrap":false,"deprecated":"Fixed tokens mode for Chat API in 4.0.0"},"4.0.0":{"name":"nextjs-openai","version":"4.0.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.1.6","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^5.0.0","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@4.0.0","dist":{"shasum":"b5d5adfbbb6ade9f95e99d2b0bbeb809a0dc1eef","integrity":"sha512-HZ2M1ka8r9SqvIlMv/xiuaCi+COh+zG9P0h79QL24d+H2BDtTAGhl9PFbbOOaBxn9r4GM45hh/DBeujWOteyIw==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-4.0.0.tgz","fileCount":47,"unpackedSize":18233,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG/mPBCeIOnVvrbzxPzRkUWPT9cYBlbgy+38pz/3LEV9AiAnTbm7l8wH/bsvlZ46l8PY5+HXSEAM26ncPZ1gNNfD1A=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkLkoVACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpY9w/9FfYjIHAG+5N/Q8fhMkNwMx6MDQ3l8aCbP4LJ0Y004fu8Zh9q\r\nXx2qm5PP+LbOfQXkwX4+TeIvEjMN9U8TaTATiPMHnkq+oDKFwaxyuLJ0WxqZ\r\nwCYD3eUQ06EXRUaQF55m91OGbo+cLT0AG92FojcjIqV96WQBDYBYnmUR6TRL\r\no8y6xdDBoKaXZZ6bSTvcU7EmTAMVu5eSP/yCRlnyKyOXeKNcWF50lRh/Mcxu\r\nXh+maJ+R7qJdbo8EhKijeIhs/0+SpO5f32EE5rU+w3mDw6eYLTmEf1oYE2JP\r\nw1WD5DQyO13/cW8mBtVo5+71Jdxhx2+gwHrqZFqzaEZOPlPzoVd2fpX6I4QH\r\nnidEb6ESOZ2Rs76kHBD85kToK9VlsidLc46asZbUs1ks9c2n/XAwSVFh27qx\r\nZO1Q9oLOWADWDY4sBohozOZmfRshaNHFWURwhCFEir+LzcZP169IvLWaQREm\r\nqiQpfGUqu4l3LJJsOx58b5AOh9BQTWmZp+/s+iAp7LAvJ8gSXOXsM/PXvVJJ\r\nA87p8Vi98tzeE1hBwExM8Bw3GbFz/99bIpSYFqzT8w444SS3noKFlc5jDzHm\r\nCP4XTL7ZcS8OgzVZXenZM+F5VqeaprJuDT30LpeTgbbO/7J4lF9amTkuOIjw\r\n80T2HxE5wJ1k6YWb+Sldp7FhJ2B87aFENnM=\r\n=zQPi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_4.0.0_1680755221496_0.2474796939630568"},"_hasShrinkwrap":false},"5.0.0":{"name":"nextjs-openai","version":"5.0.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^5.0.0","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@5.0.0","dist":{"shasum":"5c2b05b71302c0bdc1a0ce2e3c26f51a21fe6a65","integrity":"sha512-GDyEOY+jnByOd5P5RXEnUQi1ymM5QE8Gr/euPUkZqVQ7/xSARKWqtDh9vHbxPrt1XyAak31WBTk+6opClPpUFw==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-5.0.0.tgz","fileCount":51,"unpackedSize":20018,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD790W/pgv3fEyrcovwLpkAIVukrq6B0aj8b0v3EgTN0AIgMYjJYOH0Epm++9u+DK2RTOw2A6TTt2U5BKm0Og6rV6I="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkNLcdACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoAOA/+LnPGwRoRWIpR8RiIRz9X9HISQX5ciM4XzhD+woFUhaC0D6qQ\r\n65a3PW4wdG+vx6OfqVYrJQMf/ahGfCHJYY+HQhiGM95rfpJq3zKdDnBBBchb\r\nibwGHmN30M4Bauun+6mGCJJs39svW0wzYX/neWMg1tWfXT9JpP5FqZlfQX5h\r\nqA9/IKcwMA89en57Za1vQTja5l1Thao9CKYlLVJQrNrXmbCPqAa8aio6Sjya\r\nGcKsttJx8FFuMLZ89IrYSuY2M3jUWS7rUeWIXTqPlEwqAxINJZd3WPjRnnWR\r\nhMKggRsf8EJmEoX3+RLjiqDVZMkEeq9ufxF2TMAXlVXZS4uTyWmcFlUgxa9S\r\nSAJ+WQJIRQPlEYBNEnmPrsuYdSf9ktErjMwVJ9fU9mDQBl8FlQrzPEghYV9G\r\nj0AR9VFEgvcgsFjyQ1AJTgB1q2iNwxSUJF+DCTW/jS3lFlHsTAy6+IWG+rGE\r\n+9n/BRiEDb14MYDakSC6R2R4uJq2yPzF67vhPeNAPwoY/ST63e9oHAFsrjcG\r\nqczYKUXF6uD27ay8ijKVKk304IvRAj15DvGGoIR1MedhTsAHaVtj66GI9/Tj\r\nl6M/uusWKbzHESxz0wSqcV+ZI/kgBiXa1IuUdcaVXd8Q102t4vCgA048trtc\r\n2jno6I97Dqr0SZQAUJCee6rtqCcsE2CTydw=\r\n=qlc3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_5.0.0_1681176349750_0.8037658721449437"},"_hasShrinkwrap":false},"6.0.0":{"name":"nextjs-openai","version":"6.0.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^5.0.0","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@6.0.0","dist":{"shasum":"662a3a77349886eeff771945812c08d9b7fded7b","integrity":"sha512-8A6whqdAtQtsfaOKSQkYa6yp9cAl6ygEXMNim+Ir6VIkYRjzgLvWfngsABnQb928e60TyRpVqR9l8PQXNLCj6A==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.0.0.tgz","fileCount":51,"unpackedSize":20331,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIA2ean+28PvlEuGZPt+fmqdrk/EBIZLwDcFtHsj7tW1TAiEAqFMAhYUE9XpQzz+S3cC2/2abqltQWN0F9DGf1dN7s5k="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkO71fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmppPA/5AMyGdOqaw9a+f2Em8aoO9pOmMmEdSbUsO3UpdvWYIYsUlKLk\r\n+FK6R/onf0m/GsBMR2RCSTacLMaGJLALMOutuZw8XP2pTFL5ueeniRAjsgsz\r\nQ4wIylNfuYIQW4AWdPd8gDYoLd1du7iBQiDZ8pAfadBVMpuF1sk/1zHHxS0x\r\n+2ATH+926lJxDxZlwaFUSRIcCPq1cPEh5XDDgBBhEjsxgxc1G/GNwRaYVQp2\r\n8pyq9AV4tkNZSd1CuX2n5tQUxg46lcZmvsZ0AJdB90vfgykG3E9iKzP1nXSb\r\nqLDZwhKAygxs5mdbJOgvB+4rMfFRPzm/emn00C9aSWp5i6PrM/Y3Rl1219wC\r\nS4D3eJYaLlvlGQpipbTBH5KEx8GIkb/9upE/1Poa1oRlYJ4UKAKQSk3jUm6V\r\naiSv7P0koqXMVOv63ACiNyfk/lUI7tGLtZMioPO3Bgx3nqJP31cYl+YRcU1m\r\nfPMARjWS/8Ci5/fXnzl5pwPkZPpPv0D9uS9vHS2za9VZpzPpnARqezypOWSA\r\nacNTN9cDWO1f/2WFljl05NBTaQlX2vEZA12EtP/+82uCwThUPWE4yN0+QYs5\r\nIcOlUiYadlCgnIEaXhSLUB/rdQBmcSbuSJhgpWAQud5ZHcSVmJEWdWQIavhQ\r\nj0s1FYi+760MuK6lhfT61mz9G0dy3ieyYyk=\r\n=biY/\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.0.0_1681636702994_0.3133927080796248"},"_hasShrinkwrap":false},"6.0.1":{"name":"nextjs-openai","version":"6.0.1","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^5.0.0","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@6.0.1","dist":{"shasum":"b916f553d421b35bb42f3aa9f3acdbd4fdb66ecd","integrity":"sha512-jR7FoIOfDj9kyNWOp0aGbCp96Zg0iLOh6Wo/byWBkUdO5+ECZmy+5GNVERlUMtPCtJbi2kciFBErPiZ9lFczPA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.0.1.tgz","fileCount":51,"unpackedSize":20392,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBhP3IBKLRx8Tv3mqUCpAKuWPZPpAxJNUbTdLbK8T5IJAiEA2betQTP3GYjBHm4EfgEM1lezJqwPPKYA2mC18Qkzbn4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkO8NSACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmriVA/+O/XZFiufeceyes/dV2Rm8jXtRVSRQy6nCi9R6MTAiHROnka6\r\n3+Cg6FQwwc38ib0VrvLEepXV4kQovE0tS5X6O+pPtf6SjarEhAkK8BNfqiLx\r\neu0zhcXvu2I4o2gzdYuvDlh8IIkYuz4mF6AU/9U9JnDIc0O2OAtDQpyrpzLP\r\nuB0/Kj7oQdidqU8mDBIWSxAgGq0vpKm9tgo8KL8pe0fbyG44XfWAELxIgZ4h\r\nDVOwUkEPApX5d4e3A/h5KCkb81vDc9deEcVRA5VI+x1+7mvz6z5gGYIcnHjr\r\npHG9VEX5rf3pPyRuKda2nFpN6JjpwgJAmHj6qUrDNwUoEtIU/s4yXBGZcG8T\r\n/7VS34P8M/MXxmlVwu3ixCDjkbtHYNZ9tx5DlamgM+F0X7/oSk0m4XOmBkNF\r\nKxm9hNpsTTarOXPfKQ1/KBAQs69NjWAjVXw6rEeocBBIBJ1FT96ahNQf94vS\r\nUGvJd9RMJeXXHVxdIsUNpB5v0RcuinQHtsnCX11uBat4l2qO17WfuuN6+BKi\r\nm/HBFd1wGyzMlU3IQ5x/rf7OtTlSmJm0WjSWeReAyOVzb5m5WBO9L/HWzJyJ\r\nvi5wYx28pJ3+2jHU/T4aHkdPnlfhEpoiI9Av59g8wF/Y+c36usdOM+tr3ZU1\r\n80+JzE8BH1KTKd1SIoDmZkEq3IqAKi07Yhg=\r\n=OD94\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.0.1_1681638226742_0.335592813480486"},"_hasShrinkwrap":false},"6.0.2":{"name":"nextjs-openai","version":"6.0.2","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^5.0.0","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/gptlabs/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@6.0.2","dist":{"shasum":"535ea67bb9a5426cb0d6012b5da85cd02f58bcb0","integrity":"sha512-XxGPcsyiFU57oWkXWI3GgP0i/zehVwa/uOzKYJGRRKc6I1Ba32TgP5rVx1LZ4rKltPnZwfBpV8gfiEKTlOeteQ==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.0.2.tgz","fileCount":51,"unpackedSize":20463,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCcqktZtClwC9nlBoDMrEgGdi4XCGwB5yYpnyqy8O7FjQIhALvfA7NDto3bXUQ+Ug4/Ih01tvMzXh+F/yymjJ3gdSU6"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkO8iAACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpIcQ/9EcRGwMj7yLk5Pst0nIVv3w+QNPX+yY1QTRQRcLzVVZaTCBHn\r\nMIeDe/1mhi1NLs47JZjiDiLyvJEM1fY6JHPhiz8SUHD/xo9xSh4+q5gFm6Zu\r\nePqA7sw8XbH/svHVqpZQCiMtnJb2jAID85yCG2xS9zymgFYyW1YRkA5O9Yat\r\ngdgKsRQ0uygf/vUTupDUKLuiJXu95Hakm6rYXwgZfis7CDqp6i+lSY9/JwjE\r\nFLLLhZHiZhYexXR6kgqEJT0NVYG/lOyDSGnjihG5mgrOGTV76jS2hVxz6htr\r\nkG4VN4G6iqW/HNZfJw6Kx04SuKan3TpsSfI1zpmaNbTIuT14ER/jJzUn9Men\r\n2p0tMQQONlF8T08wJLsPldxLv+iH4SVr9jqkGJXrhna8YaS0wwt7fTDj7K2M\r\ns0daO94Z4KCvFbnX9Xrn2Bm0lHVLWrRjNXRb8qDz9A289qdx++Mm0Q4a/t+U\r\nDysb+pgSxwGAIG44BPnIw0kXcE3g+gzNsfO9MCM39mn5lda8LcCXYra90s0p\r\nLJf+ImiEJ6WTKMEVAClzNoVS1cG/uINCjYk/7gLciLqW9jmgJPe7VBxawR1l\r\nJuT3nmOpW9d1Of8DWDpKJ0mYMgtKmXq4Cv0lwyUsYd/JHwj0Gl2J/WgWoNiy\r\n8wqu4W8keKcijvO3MI6dpNVlmjgQSrs9vXo=\r\n=Ipb9\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.0.2_1681639552682_0.12609495504564783"},"_hasShrinkwrap":false},"6.0.3":{"name":"nextjs-openai","version":"6.0.3","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^5.0.0","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@6.0.3","dist":{"shasum":"4e80e87fec95659560706d324b03445a1b1cbb81","integrity":"sha512-/EeQ8H9vmbhvNKAyc2AAWcFJlAU6hGDoLPiG31oOrRsW4w2ExFFWh1n0pGEkRjbeby9+2wE2wDZCNIz9cKi//w==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.0.3.tgz","fileCount":51,"unpackedSize":20483,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJJ89YzP6BRSDN1JKZSjywgmMXlVOv1Lw51J/d40Gc0AIhAIc09YIHO+WLQ/AKmA2YObSGhXFxDZZO+WFo+VRzGYo5"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkQubMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5GA//Zufai9EHcuwvITOINxDlXJPL2HKrdTyDLJ6LeJ0bWM4Ql+FU\r\nMFwUNikYOH9VyXs+wVnzJuIntm3J6p7F6l98ktIZKf9IebFv6mbXfM3R683Q\r\nGCn+FiBuMG10B6tlWC/LueglwUrifyPTRNXhaMl5OtPn9oB0O2v29ijtegjA\r\na1QAKbEnVkZnP2PiTSZepCk/QtidZWVr5nmRHSgn0TikaiY6dxlJkIARUqcM\r\niERtT+ZK3HQUCIsve1nsVAvXlb43geqhFebmH6tRKXpbTUbCUqrKV+E1h7AF\r\nZBgReEL2IdGlB4KQNoPGWpcRA2HGhHGpGIh9UaVG44pZSkZn49lNLjQoi07f\r\n1JCIBbBTtm4idCPvUkh1o7/btzIYQ0ucMrbSmEhQDeKLJxeJT678IBGor1nY\r\n4+Pc209adj/660wrVq6/Rew57ayQ5IyAsOur3KJ3hXmJQPzCN2ANe8S9ZGzt\r\nHQYYwj/+d1y/2FWwZnJNO+kyeiLeU0VUcn69pXixBTu8nIzdMlVKi2ABDGQ1\r\nvOy0WimGxGNy1PINO2c3XbkYeJavLxbX7bdRIarNTVMmA9y9LSpPS3fSC/sR\r\nxcsXBwbs1oqUngG9H96dSPEzKTsAR+ieC326Bixwl2UqJ+Z96iM1f4rM7KK9\r\nqbtJGfFNY0rFvwkwInSgeML++xBYtyQDs1Q=\r\n=SOa2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.0.3_1682106060726_0.0403950332010381"},"_hasShrinkwrap":false},"6.1.0":{"name":"nextjs-openai","version":"6.1.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@6.1.0","dist":{"shasum":"09494877fd5187ffb3cefc0796bf14f73f1ea2e6","integrity":"sha512-HlXDTLGNvK5nFKOFhkNA/9pnhyCZiTnt3b/8+ZvgeaLUdkizbavGsaq/OpbfMKOEa81EWRmFWglzlUrH1nhWpA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.1.0.tgz","fileCount":51,"unpackedSize":20822,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD447/QBf1MHI5sZVJtnIYpdPomNWUgz6GI6rnR16XkLQIgfjBNC8iVGSX5AbFSMwFWsoQhJHQ5PgvPF3WxPtGnPuc="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUGZkACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpROg/+OhW4OQWg94ZLCBoyBEfgU6z0BxOgC33o2BJtC+2MIJa1haPE\r\nhy4/SGMZEsno8G73cu8SQl6qV+j5pQoirn3dbaDau1m64BXqLVYuSuIdNgt7\r\nmYNscom35cL5I7rck51/Y+VlAJyVTxHU/50eeEQRzBk+iG3CgZWBEt9RE9r1\r\ncfvU44eRtHdzb5QuBM4WczZw2ZjaP3aODRevRLfja8bDALT3trTWevIzPywf\r\nnp+Y26/cOOs4OM9ZO00cUimqonWBIDIq+ViaoKvU12eeQYoXu+WOUo3er1YG\r\ncbZRS7RDycar/5OWbkCvvcLF80zhHpg5f5z2uO2HfnlSecUGJcCeqjUeAZYO\r\n/jGGoLelbNGHNaN695LThtO0CmGhsL4YIZpLhnpNMVYdb7pF6ZbCJJx5tG4y\r\nPZWcQpct1mHWG8ko2AQZ0puB694+ozXNLj2f6SI5tuZP38tUJqKUqqOJkZQb\r\nIO3QnS91Go3GnZwSYJf+NQCJfeqkiML60R9UqrDJMLkZS8FecarK5DXbVW3I\r\nP0TQM/ZnKPrNdPjdTDUDAb5w/I2V373aKQPJXj7U0K+pAh4eFovCjWdY0Ct+\r\n6txRVfuDNBMHWqurttIKS6ngZX/wgkRwi7krszQ51WXY/KUB0+IRz12D5AF2\r\n0ATKnm4tM6Kk6/3r8T8sWH8lrtSlR93X7JU=\r\n=rfRu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.1.0_1682990692130_0.6074075726567738"},"_hasShrinkwrap":false},"6.1.1":{"name":"nextjs-openai","version":"6.1.1","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@6.1.1","dist":{"shasum":"2136305d1f3f751523235accc2d818a3cb9f6d9e","integrity":"sha512-7k1uAhAPcpZHMKZR+xaSDgafNMRJmUY9uGZr8ctBzC1DqzkhbXjZBTCz2QxJ2Lk4xhWtdNpPEDGl3B4eM8O0KA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.1.1.tgz","fileCount":51,"unpackedSize":20915,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCRMRpjDolkTwplqjiomYRF5Q5MY54TPd2mMhrsEMME5wIgH4j9iQk9k8+QMVkAfDJQobujYKwmwiyC+Qjk8q9TLuU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUHIvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmojDA//XFX7MwhAsMSiGf8Xu5rRe+p+HwljZN/s7wr3og5Dpp1m+KrX\r\nSMrQIoexYrfgE3Ib+yT0RywGcl5EDjwvwdShXFi9UH0XUe48a9iI+SkrU3IO\r\nMjXz7+VjaUsAoFANVDVNXshuuk90BE3pAvEGz2kEMLJnRd63BzgVLckLx/ah\r\nkr/8f2tZ7Hm3ZOEY93HLmMaXq6o8vfyw3RTpIdwH+rRywkPHUEFbtbew7bIt\r\nLTIIsV/KfQb9kVMpZsIY+1ylO8nr/PxoVzw3t6H0FB9GrLIPC/RewiqHWKBw\r\nZdZDLVBfDstwAyfDIV/K80wWqoUJ+vK4z5lJNTrbDd4Q2tHdNnELtf+0oy78\r\nJXp/TXEU+T9BsxMWUYyWHXnWIcpsDFqcQWa4+/huiZD//+9CQoxhxmRp603Q\r\nJEd6eLU+XMWqIwXGVW7zUc9PnZ2lZhOosBhMynrL91CNs6LPvXSBoyrz29oR\r\nBcy048H36Ud/Gd4IzDSB2BJtydGqg0qbO2Z//arkVIjnunqE67uS9QuUCWVM\r\n/MbNlfyI7yOxPbJBFSWVMGA8h611ASPW+84zgtJBi0HqVFYV47Ll7FWtsHJm\r\n19W5m8g7M8F+e2mYqOyfpLTozQ4zoLKndxrTdMTjITlTcKz6oDOYBNQZtZTO\r\n8IlDxa4M+v9VZwulsJOabUEtJcTwKlWtCfA=\r\n=xAj0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.1.1_1682993711174_0.8187031021373097"},"_hasShrinkwrap":false},"6.1.2":{"name":"nextjs-openai","version":"6.1.2","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@6.1.2","dist":{"shasum":"ba5ddb1f4604bd69985e5a156d030c19f6493df8","integrity":"sha512-xq83qwyvDlkeIMdY3g95EzwmelEF0LPtLk/1+NOUDmYYe6TeR1qKMXPmYtd97cUFeW/8XDMhlF5gWYcNvQweyw==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.1.2.tgz","fileCount":51,"unpackedSize":20989,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCBkJuXl4T8koyh71FRiJPy2Mjyi5qvpWcVIJX79dznRAIgDYM/r1keH3YDJ/3QbmhJsobNsZ95GvFDW7u16SrWLn4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUHPNACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqaOxAAk3eKEsY/B3/GmIAwivEm7ECLzL5NPaP9/cS0oBS4Axi1EvF0\r\nsRA4hnQ46j5/AuU/INy8bz5gVzVB4Qx5O7iKV4rmkRukk/+mU0WCjVcDvrrz\r\nW3fmbYTa/kE2XYlP8tplRAyNqEoBsn0BBiS/6/Hr7KcgS7KqQborJChnsULf\r\nPjOqfi1ZAnMcxMqxBdwqqlfyAr+M4MVx9TMTNUg1q4A0j3TaPsostiPx2gto\r\nIvSqmc47yMVKVr+RUCWrGzYT3RVS/LDP3LAqvpyqSZ3te8ArP2G5d08QrIom\r\noDc8GSd/s7IxcIFzU9BueRrt6YWoGWa9YkiaK8PceQ6o91RkZ9VMMiyBa7jm\r\nO/MEzPQJwhVHTcp8O17qoKW4lcX25GEQeuN2B+mgduo12n+oCStKs+p/RbSb\r\nfQG6ONKn2r+mwWY1YpxnQ9XTDWNzrw2HgP/SkpbJlPg2rfh9PYMysxxNwnzF\r\npDt0c9tFmUMYgmWikrgaLBw93ACizbFg7fmp9GbOvSN7Um9hDuwIXMD6jYEm\r\nf7VV59kHiQeaiwtcUPkmwH0/UMeKjNBYT+/1ABzmm5xAmdQwl2hI8gAunt3l\r\nrpB569e7/AwaMiWgJ+NUm465H4mhL2zN8TFyHggdai1199Ya0U8oxn06vedz\r\nNnkzvds0Hk9vnH9JVtGMwat3UKKRjXy9hFo=\r\n=fEAY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.1.2_1682994125481_0.8967522586351013"},"_hasShrinkwrap":false},"6.1.4":{"name":"nextjs-openai","version":"6.1.4","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@6.1.4","dist":{"shasum":"f94b1cf96df57e064a9ae67f73866465171b6f2e","integrity":"sha512-qgFJKwuLZs/uYAzDWZNbEjd1DxA7rjmqGZOUsFvrLGW04YoJS+eHz10KohE9gvEGw2H60LXlj+okKB55T3FYcw==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.1.4.tgz","fileCount":51,"unpackedSize":20915,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIG0jpeNIYGcbTOpBwKY0LlRgxnnR1zIdylX4yzCmHd5sAiAw8scfbA/Gb7NMuVd5N/tMkMMSEHmgK+0IfmiLqontGw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUHSDACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYHg/9EFSPlJjNTK7FHYflfinsmHvT2m8iYRSNcdfxDRN6JS7tkUt0\r\n/HE3wBHISrfYHq2uR59idgoRBTPEvq/1gwIQZ0OAKEh0ryZoySrXwCxaEFQH\r\nTxdyMTA8n2WFwlXPlCXX28+5ZVtJw2gLogi1DwwWJNbNKOGdS9ZlsKU2e/tb\r\nbCEdBC8YWhevXWvpTLSeSt+FybzdtcZ0JfttZJq6GOGBOfsry0nTjwD5voj2\r\ndad6orQOtcA7dKzpkui0s6R5UyjAWDvqz7j3uLuI5fDUX9xDyzeWQ0UzeA+8\r\niYfBaEmakFKgLg5PAsu+nQjpiTWKv2KjGQ7B4UTk4xRLhOl6Pw84rmefoW7b\r\nkDWyeJEWg4yg18wrZpoYO3hCet/5ETjMnJ5IPQAyhh2DLoUGucuymWloSuj1\r\n4eAewESRkA8wkbtr6lvLSLY/myXSARxZjFtIqv/0z37uOnCJ+0OBd+DnTyKS\r\nR3o65Rr4CTlHWZwuET79Z7sT9Jiztj0XiDGJTCRiIt2a7GEGiEnuFm7VlkBs\r\ntfIVo9qvz9tJtNYV1rbnRvEj13WNG6vlS6bXl4LdMMvO3UtggiS+Fb91sJvo\r\n4bRgJ8YxPzu/177eVpDjpAQlhCelmXPyY4zZUIReiC+utzQpQyBlbolb0rK+\r\nARHwHHFizBP8AExnxr0BMv/uuRZ8Endxadg=\r\n=DONm\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.1.4_1682994306927_0.8777132893924187"},"_hasShrinkwrap":false},"6.1.5":{"name":"nextjs-openai","version":"6.1.5","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@6.1.5","dist":{"shasum":"33fb66f972e8c58de5528df6d39d995647bf9f5f","integrity":"sha512-6azViuGW5I33e2xaYq7MhhnFhzeq2FMeRkp7NNDv1/19TlO6ftojVO03cBz+fo5a8ZdqXtRQBFS+iec5vPvLuA==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.1.5.tgz","fileCount":51,"unpackedSize":20956,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCYKebnjx1R6kA4nUcz88AuazHSz/PW34heyFGbFdZNdgIgd5l32jmgPeyPMQHtefJnNTe0EsqgXV0biAC/Rr1NGRg="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUHXXACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqf5A/9FHFSxwPdAXPZt+Lo00J0pltiy9kRKUxScsNnYiAby0Fe+QpU\r\nhvVOKTtDHvYHFBrRqZCrZqKQekK/onYDkXNohqSIuidef0qXOLlAXM+kGFXA\r\n1Fm98lKKX+7BNG1s4eWv3rk5fhRG7Q3csDM+FgCmIFQzdIRp7ub/FyjIiTYq\r\n4Jj87ZjqrCOeHpt3UfBpFOEVOZrwPn7EPNYn1bUOZQ5Da93MqUTBUABcZ8ju\r\n1sbCX9UYCLLSzC0nDGKMjdYu8FW5htawwEzfW+5g4MqgLfzzHtQGsRz7Xsxa\r\ncbd6V9UfCIpKiLZrYxjh1xGVLD5+I2Huk/ltUvFtdficJqT+MFl7wyXA3z0N\r\nBVZ1rYmYWRZYU7SLXHj9tTg2nrtQUFCjqHgAd1v2wUcjYY2Vd/IPYJJCS9nZ\r\nXBWCyYHWuWvD0AtoI8IgpFL+vE2UihYaWVaBNmo4seM+/0bhE9Nw4/OAP2yW\r\nNFzR1YPLvBVt+2wtCHo4mnr9kEtaccePSe4F9NkWFmhjXvqSA05po4soGNDv\r\nMeB7UhD7BARPm3gjEkFYR6/2LMz+j+iQkhu8YO5D3d/sgJhF0oudptmK7atV\r\nOrD/4XOQed5XhfUiod7v4Hl3Jr0ELAn0lx6kEwsEG3i18fUTGxKwCt8sPngF\r\nUoZj3as6tqb8HbUSrxrP6/MCc7IJCNDNrDw=\r\n=qONP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.1.5_1682994647184_0.3339707163849175"},"_hasShrinkwrap":false},"6.1.6":{"name":"nextjs-openai","version":"6.1.6","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"yarn typedoc src","dev":"next dev","prebuild":"yarn docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"yarn export && yarn test","canary":"yarn build && yarn version --prerelease --preid=canary && npm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^42.1.0","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","licenseText":"Permission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\nthe Software, and to permit persons to whom the Software is furnished to do so,\nsubject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\nFOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\nIN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\nCONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","_id":"nextjs-openai@6.1.6","dist":{"shasum":"19573dfdbc2f3f21a7af862bb841cb2cc13e746c","integrity":"sha512-EnHhu5IDwVSkbbwmzaP+mNDbzIwNo2PSl6LPpwUD6ResoUfz5/tvEkfnewPGkuJEsyRaAWdBnlM00TviziUC+g==","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.1.6.tgz","fileCount":51,"unpackedSize":20987,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC7260/29gaFsD2aU2qdBMnDd0dAbvGMoU/RhM6E89F3wIhAJd8JTZXyLMWIv+FD/M4Fr1pcmkusDLLWgdLG/azu3iw"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUHqpACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrZYQ//Q7KeQX0lpNzLhdXJXAp9HkIZyucsiHQ9bI3C2NdadcICDxN4\r\n+mZdRX2gLgl1v9ibKuRnsfI1pK3VNoxGg8HH5tEw4Djad/gMFucyILaQkdqB\r\nztkGvbtm5cbUXnPGWBClWpyo0WHWkFtwkgfIYBXc0mDZnzmSipNEbN2zb4e1\r\nL9O67SjS8Tm1b4u2uhmF5TpneZTMwRNThQfRyvs/Een5SWT8HDK/tBtpLpwE\r\nBX1D/l2ZpWLgpbejE8YRhK2uZL2datgKB/rDR4qWrEO41xkikvyTB8a7qTUA\r\nNhUOyfStu1y+vBmGd4JmNGVKbwtY++CUQ6RLZTKL8NzbXZG5Cg8v70GY49Zq\r\n+Kifqriv+UfB/1xfTh+KlcqhKu6xYV0yDWT9mGH42HEmb0HuQSE0vegvcgHx\r\nBaYQS3/9PWpmtvSPpg8hzlTZjembWOScof05TZapFWl1iLr7tbaDKMCkaYh7\r\nsvzNZkhtI/QsleG5vmU4cS1BFwBQBQhsUIILilZ0OPD6p4gQ0DBTV/2frTar\r\nsun8MypzoFu4YGRciG9HnLeytv4bl05ILjMTwBPyl6+OrOhLp/ESZ/ufYstI\r\nYASqbQOMEB5mqbDJA2afWP0NUv2w6ahe9Sy34B2TlTLtYXYviGmtQ2J0nRBa\r\n3ZoBq4w6jt7VP/1Q4hDuZOMa6N1oMloG4gs=\r\n=/ouG\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.1.6_1682995881223_0.6584002627814931"},"_hasShrinkwrap":false},"6.2.0":{"name":"nextjs-openai","version":"6.2.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","nextjs-openai":"^6.1.5","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","canary":"pnpm build && pnpm version --prerelease --preid=canary && npm publish --tag canary"},"_id":"nextjs-openai@6.2.0","_integrity":"sha512-W5PGopyqb425lVHwt+gfOt7jhef/vU1fdVsG5E45S5s2v2MGybMvxJ58R0ySwS9ytV8VqB6OSrFrOtKurMIBGA==","_resolved":"/private/var/folders/b0/rdq1ghc95sj4cm2qhvqmbrvh0000gn/T/dd09501f9ffb5d29ce5d64bb5510ce97/nextjs-openai-6.2.0.tgz","_from":"file:nextjs-openai-6.2.0.tgz","_nodeVersion":"18.8.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-W5PGopyqb425lVHwt+gfOt7jhef/vU1fdVsG5E45S5s2v2MGybMvxJ58R0ySwS9ytV8VqB6OSrFrOtKurMIBGA==","shasum":"2c0e225220eb3a634b1f67bcbbabba74563b816c","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.2.0.tgz","fileCount":41,"unpackedSize":28826,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAvXOHhEVJZsU4gn3yqSm8QYuk724oWQn9wDsT9vGiGmAiEAz3S7YNgheR5v5/sdmFk2FNfWCqY3sThDwiB3gucRlCo="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUIUvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrX2g//c9gzNpM6+v2tGXJFaJs11OqORYDC6bCYLBrW81d56mLCZAdd\r\nVUMNMG5c5GU3HkNBtgpCFdjzeG002GDGLNBloN9j9mIzdJBPyS192dxUCD9O\r\nQEJZFuhiSepymoZ1ONjwuVwfijTRH4otkhBdSrFYznLn5IkIk+AFE16wtdwm\r\npwf5/N2FtdOg8yUejz+Z0tDux1hDiL5sDK3v6kKeLwV0NPzRulHhvlsZKw/B\r\nbNixWS/f8uBkexX2eItD1htolOYNQ0OyiX9a58x1ogAKTg7IYgDLPwY8Ujs/\r\nRRWCxKVudTHfD1Qa6bkYYFW3RMK3Uo/IB974/xfCTO1baaPEDV4U+mM81h0O\r\nzKIVlcxNW1BAvCkTcsJQi6cF9SpHl2MvXZTXH99fXnmHI56lwZiABH+5ebEY\r\ntXY5rGc+ejZ1qbbBuwGUq0InC46mMsLJ/Uxe2nsLwtpoxxeIXbWJqRPvlkxA\r\nVeCp9hHzZsMsz8pI2u3g91NfzpGaBiMv7LPMShpJeW24GkPoVla1UOVnREkj\r\nIHJmyQUlOpiasTyddp152ZadxoH3e23+j/E/t760Gb/wjzpCNV3OAsA0cTDp\r\nJYwZKjXG94lt12XJvWoXe/+jPucmswGSmpLph2Y+kMVev+ii2c/fi2btGr/G\r\nSKFt37Zwc0BmZfsd6HZM9nunCwAhPCj6Kos=\r\n=qwod\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.2.0_1682998575572_0.9143017304865702"},"_hasShrinkwrap":false},"6.2.1":{"name":"nextjs-openai","version":"6.2.1","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","nextjs-openai":"^6.1.5","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","canary":"pnpm build && pnpm version --prerelease --preid=canary && npm publish --tag canary"},"readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","_id":"nextjs-openai@6.2.1","_integrity":"sha512-cYa50QsNyRaR+cjn4h3nsNUblnICTAYwokmangrR5JNswY/+LwFFDClpL0lSatxZQRG5BNavczolDokbYLlovQ==","_resolved":"/private/var/folders/b0/rdq1ghc95sj4cm2qhvqmbrvh0000gn/T/f61cda010f6b1fe6c9d937e4763a2170/nextjs-openai-6.2.1.tgz","_from":"file:nextjs-openai-6.2.1.tgz","_nodeVersion":"18.8.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-cYa50QsNyRaR+cjn4h3nsNUblnICTAYwokmangrR5JNswY/+LwFFDClpL0lSatxZQRG5BNavczolDokbYLlovQ==","shasum":"f387d3d61529fecddd7ba7aa1813b864ac227e62","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.2.1.tgz","fileCount":41,"unpackedSize":28843,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDyQeITxION396/sJ8GVcB915pjv08b8a5/NmSFr3cZGwIhANFFOZD4kIN4dwcxGQvJrT7dK/Ijsbg/0khG/k7Km+MF"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUIaJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr93A/+K75WqEo6XSBCqBPU4N0j8KMNBnIBcTtjGI9jhbVd3phz3W6N\r\nl8Tls1N/C2EDlW96mUKieN066s38uHgIn/6iNZJgM9pLl2nuJHKb+O1S9igq\r\nuDEaTiTHHtlnRaMYFt8OfI42JkY3euWmul9fOdOIRA20uqCx3ycUhR/WvLeJ\r\nrgCj0yBt4UEvzbEhehP6APvj9oNyfe9uvMDrTiACvEUIVyQAA1lsFGPXVlmU\r\nkJf8q3Q3E8YntK39xX6bV9F3dbSmFEjoZr9hRUiRCyBwyYN/FWMDKsVSCVw2\r\nYPDV6A5CeVNuiiXRdvvjRJdfTlCyPk1fiOFiM+lk7oaUYvkJ4RHSSpIZEQUc\r\nA+YWV9ENN2XhF4o9Gyz/3rG8sYKH4YffboJqsWBT7tPU64EY56n+rUSD5cTq\r\nVChHYea+ITT5ZDLBEmq/B/13bnp+BiefYnLGQ0RG4sBLqhfgNAHWAZXbdruV\r\nkjDfXTe+jfEYPZ4cMph1mMsZj3nZfoS3n+hGC/Uq5bg0MUq4EN0OZpQz7PAn\r\nSaxP+jyPkkW78IcvEgke6jfa2w7S/bCPIZJKz6nVqVbdp85GpKazkF9h+SqX\r\nH8QMoX8PbUaJvEocLSWXT8kcJ1Bb5bLe8yK+ffGQVK7A70Ru5+A3WWi5W0lR\r\n/jcqXjLfK5fXrQ55U++Cjo8MrVS0/GQf6gQ=\r\n=xDBO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.2.1_1682998920841_0.5588488067721664"},"_hasShrinkwrap":false},"6.2.2-canary.0":{"name":"nextjs-openai","version":"6.2.2-canary.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.14.0","@types/react":"^18.0.28","@types/react-dom":"^18.0.11","@typescript-eslint/eslint-plugin":"^5.52.0","@typescript-eslint/parser":"^5.52.0","autoprefixer":"^10.4.13","ava":"^5.2.0","cssnano":"^5.1.15","eslint":"^8.34.0","eslint-config-next":"^13.1.6","next":"^13.3.0","postcss":"^8.4.21","postcss-import":"^15.1.0","tailwindcss":"^3.2.7","typedoc":"^0.23.25","typescript":"^4.9.4"},"dependencies":{"eventsource-parser":"^0.1.0","nextjs-openai":"^6.1.5","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^2.0.4"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","canary":"pnpm build && pnpm version --prerelease --preid=canary && npm publish --tag canary"},"readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","_id":"nextjs-openai@6.2.2-canary.0","_integrity":"sha512-NvmwwfzADBpGin6VNNFrCQBZvlnjALB7CKyRvMI7k0a5koUo7wGp2Tqn4n8bH1t4j+zt/CUKeJuWI0iEWVeUDg==","_resolved":"/private/var/folders/b0/rdq1ghc95sj4cm2qhvqmbrvh0000gn/T/228f275d113ecf0768a873cf96e08b5f/nextjs-openai-6.2.2-canary.0.tgz","_from":"file:nextjs-openai-6.2.2-canary.0.tgz","_nodeVersion":"18.8.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-NvmwwfzADBpGin6VNNFrCQBZvlnjALB7CKyRvMI7k0a5koUo7wGp2Tqn4n8bH1t4j+zt/CUKeJuWI0iEWVeUDg==","shasum":"5b38b695fa4e84d0dc7b71ce49946b259bcbbc07","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.2.2-canary.0.tgz","fileCount":41,"unpackedSize":28852,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE+byXV44AdaKXa++3hRtTSBWi6Xtv+zd4wIi0zS2BF5AiBZCxL1XK4GFyj9tBlSDsLjHVLXM2DkabuZdTJ/T4p2jg=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUIc0ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrjEQ/+Kq+78hFsDrZ0Ka5bw6jloN06C9OAdKTX7DR2ls7Yv9RaK16U\r\nZ429UZy2brpEhERiLjj2r3mYmyNPOGKQ8ufflLqsG46Gx/IRNS+bt+jX6yon\r\nGyRCZk5Y8MC1I7X7tln46IZ1lGMAgY6ctCNy5yn74CHi0HDlRNlUhVIrb+Sy\r\nKcs6mM9IVBuCAO91RhEnHl5wf4TetDH/NF8e5fcSxyqcndU+e3O9eldsD9HI\r\npiF7sz9Q9GP8fKi3O8LEIMelodqAReOmy1aPRTIq+lNbulJ7paRYIwuZoyJI\r\nCrVed5yta6FmHYI5Jh0N3MFW2u2mmqjtdCkLTVaTs+7qslRb1U/mV+yRsH36\r\nxeSo0YB3uMp+g2kDx0g4AXMQlXOI1unpRNn8srENWBflz1KCvr8NYni5Nwf7\r\nRkzFTVLtj7ThClbeLEkdhj3u3oC7rLY0XeMviZ+w0ipoEbdgYF7Q0Rc47Oxl\r\nW1LxHBk3uYBi5zxm395+Iy9RiSQJcIprLMrKY0VbwtohA2k9vQ05SZc94oMm\r\nFTYg+V+BlfjD320VAoDsfbpan0C14u2gNqnLeiZfwMzDA0P+scEAAXKgFVYt\r\nTAUzmIFS1TdgURfL0EKmPnQ23zi8MfhhdDY3qPVwl3osGFoXjazmrYGQbsX2\r\njyyUy5eNc/D6Tj+s2RsvH/brrlEtN2aFh68=\r\n=kMYY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.2.2-canary.0_1682999092214_0.9920369668120053"},"_hasShrinkwrap":false},"6.2.2-canary.3":{"name":"nextjs-openai","version":"6.2.2-canary.3","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","_id":"nextjs-openai@6.2.2-canary.3","_integrity":"sha512-6ssj193SVD9rrac5z2+br/iHafYjembdnklgDDQXKGGAThTjDMqsSmLLiU5ie5XPmKqEpTopm2M4frBFTIdSwQ==","_resolved":"/private/var/folders/b0/rdq1ghc95sj4cm2qhvqmbrvh0000gn/T/6fef75f1e102c3f7005eb76e54f6565a/nextjs-openai-6.2.2-canary.3.tgz","_from":"file:nextjs-openai-6.2.2-canary.3.tgz","_nodeVersion":"18.8.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-6ssj193SVD9rrac5z2+br/iHafYjembdnklgDDQXKGGAThTjDMqsSmLLiU5ie5XPmKqEpTopm2M4frBFTIdSwQ==","shasum":"74dd2f2498938a2d4447b586d56057ad13b47856","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.2.2-canary.3.tgz","fileCount":41,"unpackedSize":29020,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQClCnMZGDU96vBr6y4zf8AyMS+XSwWxdB9ZCwuTa6j3agIgcHKbtUw8OPx5RhTWZ6BU4lUNJVwYrcBd8adVPeellUA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUInMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqcfQ//XkrM67R8qTSACWmOKUmqAxjtZhcME2U7vzzNBU3vpcvvW1Vv\r\nnPlaTjFQbie/1C5aWNpCwCdOMRe7WjM397rta+WvFi4KvKI1Vhe4tsjSprzJ\r\nlsWaJQdS0g9h7AjnECd9HOreZGCvTmfonh9/8xvgKq9KpzYYwMC6vKdxGRiy\r\nO7q42H+578wSENg+0DVVPa5TVJFycL54WaSc7Y4uY/TchkqtlKJ1tLWjHWQ2\r\n4vLVth5FaM5SstULwuVEbfqkAhPo5ebRxiV7xQATjDvTYZBEqG4HvTFQ2ZRO\r\nB0dv5G9S7Y+12+1B34/Ux6KJPLwDdYELLc+SXey1yq/9LEftgO91kYKgfz/v\r\nBigJHOeTXx7BWCRfDlXQN56suN17yf84eqbgNK3z3nsfevp8uYjnusJO2xAw\r\newWMcRTx5G1cyp1d4p2r8nX2XfRZqPhCQYi4nQgeYkapydLJipNJYcHIlTV3\r\nB9XF0VARDZtJzce1NSFZ14V6np4AM9rDDMgLFf4E0kCJdvkBJQs0QHxKFkkM\r\nAdvQpIeqror2rtLLIfo+MZkJXgdu0LnThtjOAD7ocr5/Dhh/6BZh/mEImai5\r\nGglioysZfywJ1cJrJSq5UxFqRIIkxqe+anf0XAJaNEZ+R5tRvtm/6awqk+rQ\r\nZGdHIrdhAaUxanNs7BCcpuurCrtPiX+Pf+Y=\r\n=+uSH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.2.2-canary.3_1682999755883_0.0291637520628103"},"_hasShrinkwrap":false},"6.2.3-canary.0":{"name":"nextjs-openai","version":"6.2.3-canary.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"ccd3507c6a2bfec347a874657928814d7d87632f","_id":"nextjs-openai@6.2.3-canary.0","_nodeVersion":"18.8.0","_npmVersion":"9.5.0","dist":{"integrity":"sha512-Fx6un8UfBMKXHIYQiDe6KKuH85HVq5DI+vZqp9A+DGsey4k2/vAwfk/vnCO9Tl25/Szx8tmT7hc/4phucE7PKg==","shasum":"6d1b82f7d394e5a0908c888baf6cf5a8004655c2","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.2.3-canary.0.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDp6eK0fRJhy64yvVTUxoL6aVlWlcKN2LPIkgOxiD9xPAIhAKeeTwY5dJnbRT9+qLrbmPfIO3oU5ws3gPdjRz6Fv2jT"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUIwlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpL1g//RpEqi7uyd1XembpzDPPQ7sajU2KDNROxAnL80VDBf2bVRbSi\r\nCBs1VL3UWVVEB0PmYFNl0PCsd63uPJcEZV/M/uN/8tgUuGmgn2nw1jQG5pub\r\nMSWjIea+xnil5E/Xwk5CPDka84lnAdb25V1G2Hk8UKPNrBW8x1+yJ0NXYRJD\r\nC4qa1n6frv1CRfJ5kHHySo4iOdm7Bk7J/P0PihLXQIhY9q3487u6qF7P+6tC\r\nQ/oV5ORZ/kb18ChPZPtlSpuAtvoPC9XdMu/CanUTGxWHzxH8egbs65+IMWYy\r\nTbvU2m+OvrDVVC44NiUXMpQN/jvK5gsXDtLAxy/01aCenZSn0kxWkBsOeOpP\r\nCzSZ5lI4DVpb3lew0k2NXQoWiCVhlsw0Fk50j+uzNnoKLs5n9wX9RL3Zmw1g\r\nFpI4mtlAM/NBlo+ZhD+Q7duaMjqDyp/+kzhu9536VtypfAlHsyhkAbqnmQkQ\r\nlUgSLpp+6CV4EDtCVhxvln1vzX+pz8lcY7S/03M2kgl+j75+oIlvsJWy2KE0\r\nxowTHyOPDLoAATJca1gUKmJ9LrqIqldhjXuAG5YT9IR43ABsOPr8aWd2uFFz\r\nCaYW3KOP+gsGxy2IfczIpSX2TiSK4UBuST3HTG6RKdcKvJDX4v8UDcaq5uEX\r\nqydXS/q0C6SuyQvECOC7nxNK+DmqzA+18BA=\r\n=Tczi\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.2.3-canary.0_1683000357107_0.5291278856106767"},"_hasShrinkwrap":false},"6.2.4-canary.0":{"name":"nextjs-openai","version":"6.2.4-canary.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"50ef217c650ff677b23159ca59f5fae3a570c555","_id":"nextjs-openai@6.2.4-canary.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-kMKqK0r54hfzgu0yVWatQo65J2ZKHuBRfJntB9dj8INvQb55+0adla2dkgyojMc7WOvxSjrpLs0gAfMwuzPdpQ==","shasum":"a01a9c91706bf316e9ff487db037392ebc3f41c1","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.2.4-canary.0.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCdgHqgl9DVa/e5QM8zRzkDgRlh6sPSXEXc6eZu2Yld9QIgaQSN/UnSjydHeMYZq/suJo7FVqLoAVDyYnsrAwpgfMM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUIxWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq5Dg//SOZQo8ZHgq1B3NkowM5uiX47Mzbxmt5RwLCGNYQ0Rql4B89v\r\nK+oer6oRDPUUJ6D4Zfri6JagiOreZ75RwG34bO3n/X/rW4dqfTePKhBvvYsd\r\nJUEGyPOZF3SEvfAT1TawsYxtQUmRK9tNrTaXtC+4B1oox8LX73BdKZEskiAN\r\nL/vViu3nbm4Z4i71b6Rj/d1Uu8ISM24H+WX5YYHwZSRpNgXZgI9axTIYRNzZ\r\nO0yjVbFxo9a+5FWxl3wUs9jHEcwYSsgnBCwkVIgvDbsw5yeAtyL69RJyjKmv\r\nAZbKcULRT8TGrH0U7rw1RlqkD9ylA7TNlk17BqqRlPFCYpyplj0FCIRIUDBC\r\nLoj2NGjUbRNuSe7TPj+7DS22N68urHUJjxMedkdHT1o1K9sobAth7VSVu8QE\r\nvkRTtDktoZDBCJTIUKzd5E5mlRU+C0sH8RQcgcZ+RZ247Sm8fGmdK1hQU4//\r\nal6dQtEtFgTpLFJpbkrDguQXNgX+BrQNaKauX6BZ+ttdaj1vU83s7agYhZxM\r\nHEhgNmMyiWqHWV0rZbxtECxMcTjZ/8z06z0j8ekPmaC588t03e5a+r68Y1z/\r\nONxTQSCWbY6cgDWNAqk7N2VVazt7yodlFPYsuR2nN+onq/JppNeZxvLDndcW\r\nNyYbZXHtiYiWv1ArczuKTT2ETEWDVls0jt4=\r\n=F0Hf\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.2.4-canary.0_1683000406425_0.5888028445605138"},"_hasShrinkwrap":false},"6.2.5-canary.0":{"name":"nextjs-openai","version":"6.2.5-canary.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"7e3c05d45cd85204efb1f3fb4ac3b7120ff7306b","_id":"nextjs-openai@6.2.5-canary.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-Uz9NpFbOUWxXpr2mR/KD6Nrv7vVdNeWT7hhJgM7v74nH8hq+hc1DPiQGv/cbeskoIUV2NpzEbNH7dLHYcocFDQ==","shasum":"848f67fddb030b97959bedc3de6e5296efa3bf1f","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.2.5-canary.0.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDw+k3Q2/r9eKEoxfXpSQpn09zncG8nuqOOoU6o7LJFZwIhAKbsN1T51unTb6Xb0U68aQOh3PyE5Hmr5I03GcGnSxnd"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUIyEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr4nQ//dcYuYjfTJq3G3iXhiI6PkzdRdWigZrJ63Q4WXSZTWF/aToX6\r\nW9249zmXYxDe4bAeIaVOeEeKEDHJBC9OBaiUGxRiBUhNb/06wqqQOUuGoo+6\r\neUfsrR5e8FBhpyP2a9oXB0YtrsK4BOfLqA5fI4Vx8LfmhKn/h5B3NbvhHJPQ\r\n59P5FCl3zHe2yo4G4rNKHAIb1fF3A8FjKAJVKyx3MaFq2IVdB8WaCeW9EAua\r\nNZU3pM1yzzbCBI0x/1AYfiwyxSPPT5KAwzTzlxTquyR8dZKEwqLvCMaLzaTP\r\nsJnZQqGqpJbhTqGTvYdYJRBs91C3MFO3UXO+SXI2jvCIDnQO/EqQyIWc4wXw\r\nF/GoC8aRTAsNeissjdwIjVuZThnf+AT1M9yPdH0eec3lCCwp9ukagFvm/18C\r\nLbc4ufeta6OJQK09ZZW21kYhBqSoQBdQY6QnKYZKprY5caQhRKExsm1oSy3d\r\nnLT9jWe5SP4Yv7qL4fxPFCoBioQV/IHAbU0iHcof6o+87M4ZYAtkEDWDWErr\r\nyoITVdOkyC75o0fDZXb2gudn7OnlxdVyw4dQuCQrIo79UnNbeZKvSM1Q9chd\r\nD790FC79F1RC296HtQfCdIz+cpsxg0y+VAgYWKeZxYmFTJbZLRYp0gDwTJPz\r\npJ/S3hQlv1LjH3DwLZlRhGUvKUqjUmg5mt4=\r\n=hsn6\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.2.5-canary.0_1683000451835_0.5085996278050782"},"_hasShrinkwrap":false},"6.3.0-canary.0":{"name":"nextjs-openai","version":"6.3.0-canary.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"8c7f5aab2610521ad74f814059ec11e3f7999608","_id":"nextjs-openai@6.3.0-canary.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-KwJH9iyHdl33F+aNcgkdK2hqqKCuoq5Jo4lsclmnL5PSws29BQAirLJxSF9940vY8pinCKG3NbIODVo/uGR09g==","shasum":"c166918bdb3bf70bf2e888cc24d35833e1ff4496","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.3.0-canary.0.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFH2gjsSOJjhkxQY69GQAog+E9JKUXC2nCQX2qnDsmtlAiBiBRm4JMV4SIjEOd9QSDurkSUWFYZE6JHlJdtrfkb4ew=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUI1GACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqYvxAAlqf5kAphF2sbyzyOvT0lDy77X3ODUyrzLXSEH7n5+77pWTyb\r\nl6908f6BbCsiORQ56QcrygHZrnw1ypXltVD5xRTxgwK2hy5/jH7Xl2w97p6Y\r\nW8TAUvTnhnPJgyNauj9hzVkhRdHOKeBUwe78x1ELRkQIS/pt1A35EXR1XY8/\r\nMMRfQkPWFGesbHAvPjnyJLc/6ZhkmQzNjVLdxwOBWVzuEfPtCCoqmFHHCYPW\r\nlgU4P5ZHw+dtsbOicsKUHsfRbPaQREqGpQcrbSmg1OcGC37t5gVQAprrDZhT\r\n0gK0wBFJk0qyeC8EJQi19Q7N5V7TB2am+DyvAPssUF8gTpER+CHqDP9EfcDF\r\nGEbHwUaK56oosmRIrVf6598gvEHBKIkleVHTVxkrmJK9V15zy1WYN8iXcgwC\r\nn6nO/O8mYDWWw1y6txK9JvFUKx23DHSiHlb21ZrniifHxoNWzNEJjTlVS4tO\r\ne8sNrsxshiUakSqixaZIFzFHL1mhzsHSUdCmw0JI9Ogo9GK5aoxKlI0cgyIv\r\njM/ZbWwGFRTT3hIgUQQAb2sRnQx/AhMicVtkti/+nOTXLfM41h89EXBWfinJ\r\nYGydchx8UBk7IQ6b6fyv1BY83khk3zfDa/j3RkD8ws8fsGFcZiBMUGzm+Wp5\r\nUcBQNbJXQJfRkqqSrMqYOGW5idmcmsomtso=\r\n=c34R\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.3.0-canary.0_1683000646122_0.4415668125630019"},"_hasShrinkwrap":false},"6.4.0-canary.0":{"name":"nextjs-openai","version":"6.4.0-canary.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"f46918fdc54d388bcb33ba0aaace8c73dcccd30b","_id":"nextjs-openai@6.4.0-canary.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-cqyxDdpeS+XE2p71a6ik/4enGDz7IRQWg4Ruybba04ElznCLr9HqRcE4EN4QreotaxdXGc9p7gq9fAA1rwRroA==","shasum":"385b29a1b2a39c4ce547c1b6411299d3675bf2a5","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.4.0-canary.0.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGQYBhhWmaFvSt4fl+RkQ6qvxB43G2T6c1U/RUqQBAvlAiA8YkB5TQMZZubFTn0bApgLaMUYXeFPA7CIrWIxVUkx1g=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUI2FACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJNg/9E813JRTZ4MViq6yJRkd+XesQTO1puSnQS0eM77U64YM/xXyP\r\nqyO3fvovTmLkzjpxCmNX7OGOFzY88kNyjZ15q6YshAtzAtqboWBQUXx7Od6Y\r\nBLS7WmchGXXdQrhNSdDA0+HPKd4nOtPQv/qiJF6EI/dfr9mRlKEebohiUupx\r\nZg6Ep5HvpoEiaQ0kFOzVxKZE3ylBcwwXpeMUkzoJwSfwH4Ic2TiLW6ePC8Ld\r\nOMwFW7HBdJPxeVss161RPa7T7Yn3xxry2Zpmu1EoYNiW7sq7R7be5ddvBkpH\r\nksDnXSeYeU3wWPdsRu8qc7Usainchb7ErdtLKiVgDBgpz0wWJcCzqwP0uTss\r\nz7tbLkVuj/cZB7e+rToXKl3z1swgB6F4kqbv2W072+8+RNEdwSGARPUE/8+I\r\nVqJ1/BpgBjJxIuyhWZIS+WpGiKcQMUbIHCzVKuxNMj/K7Qo0g7zJK3ZE/HHz\r\nHUtXm307O8/O7eA5D8zumV9HPLJ6Qd7MlqgiVFIG/Ie31I99Jimv2yQ50vx0\r\nfgzyadsyT8EpChAUQx07e1oX8QBn4P0WjlyJjMCRbF9zuSg92ekGNWZVNUbm\r\n7CUeAe9QYlS8Y5/KIxqvPyO2H4Nue9QLsnPYl9e9T7chViRtIdS2vPKrDUS6\r\nWaNPNMLLxvyF1zTkiyzv2EnajHFPPurm5Pc=\r\n=7ooX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.4.0-canary.0_1683000709603_0.2789217493407803"},"_hasShrinkwrap":false},"6.5.0-canary.0":{"name":"nextjs-openai","version":"6.5.0-canary.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"edfd95cea5ecba2cb9fe7e17916a3b55681617ac","_id":"nextjs-openai@6.5.0-canary.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-rJuwMbKfSlOwLE915scwU+v6hiKATonU9lMuiluNwstG5ZFmAaWgDUY24gvzMrv5jeaFwx7OS+LlNtCC7IbqIw==","shasum":"60d712cbfa0982b19e18f1941f0c3ab7051d58c9","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.5.0-canary.0.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDTQppo10yp9NQg45KGnG6NexLHNj6kwn0GX5MrP/ZGCQIhAPq1RtG8jpznhPUv8MfW5CMV36lfKaT4TEsz1R1a5Ycf"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUI2/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo9Cw//cQUaAmTLsTCj/YK/qk8hS70iov9kFr0WvB5NpFwvdU//87pQ\r\n38oUXNX6UOQ5Sq6QRfCkzqcv+3K69hEmzTQ8eKYGkpeIrFGVh4VNr1LWeP+w\r\nxhcEOjD7091II/cjSLzKD4VZSof69TLKAH8bV6YND1Ujl3bbRmlolWHUJ69C\r\ndq3zd2Fpj4qL2H8aFxbL1YaxNG3Ar93n2vt/6DgVWd1+1PreszKJ9tlRhaKa\r\npQNGy6YJVMcHYGZuY4qd8uG8KRYiobT6Lvypktrn9Me19KMItByiVp1N6YUP\r\nTtbqqPBbcGwrkEt7n3uxYEBfTCoeMM/1FrjrT74ANFLUf6xoOqPtP6tje/CJ\r\nfz35X0PrqtwsigbjJDlBIQkWvexdhs1vnEXzeYl1CfVCd8hD0ojXIhPLUAml\r\nixREDbD3Q/A9H91YwgBUvoyk4xIo91ls3QNuYFTCsDSLg0TmZtxLTtCvt+OJ\r\n2ghLgo2NzXwxBUbXHPFYO5Soy+cMsMtjd9gnHfknBOwwqNgoAuZ4M651MJKT\r\nPgphgI1jgvyyV71kW+t8JZMwGvjHebMXEhc3Sh79F3Mc34v3vDqAqIyo5waR\r\nctRhEwtShTMfovWY8BWMRtZ6jgDpaB6/mJ77fG2TbupN3J+1jbhauHt7ILQP\r\nIGdVG2EzzIagUPjlxxreGamoEDosnHXaKck=\r\n=Gwi1\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.5.0-canary.0_1683000767034_0.3738316278354936"},"_hasShrinkwrap":false},"6.6.0-canary.0":{"name":"nextjs-openai","version":"6.6.0-canary.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"35fed24629084e31311f1693f42c61ef364b08f2","_id":"nextjs-openai@6.6.0-canary.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-RQEbASTO0mY2VXLrFWHXNzRyO8Sf6Wewg9JWc1aWcEa7pL8gk0RAHFFhbRp2bBw3QknxkAJSIVXdqhRP5jbnPw==","shasum":"2e944b16559ef53d3c65580b569ed47946e6776f","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.6.0-canary.0.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOYz/CQZbaQ2jYMHI/UPs2l9aFdDq0X9mH2kxtNgwD2AiAmejmWiq1arCoUfpyY5K1wr2k3gKWwEo1xdaWUuUXfpA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUI34ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqtbA/+OlJfw2pRJ/wP7Gal9gs3Mdfbt7wmnrP5iXwhUXJU6zex37Hk\r\nIv1i8tc71OFeIPX7uL5olQbqf5zHWNy4JPwq4vSJFyvB99xxwCM04vGeKiKJ\r\nJsOaRdVz43TeN2H+qJ2wFenXSdVv+kJakMD8OcSrcwGBLlocxkrfYGqOTM88\r\nlj7h52QabNEbX0BCctzdTjZZ0jPtLzdFxHUJqkC77zXfUiye8wVH//qNQL3B\r\nxBCZbyFubq1x076lsJhQzOrkCsSdC4d0HBPMGn0oRtIB8hb0qsmjCpuIPOVN\r\n9MNT8tR8z4FBatkXXHCvy9EZEOLPUjNVAQcTAe9oVZpTYsJCQLJovjmGWbWL\r\nkPO/ydEyN9CQFPkDp8NR833O4ZMj78fcbYxN757GWF82SG6HyqsqyAs5h0TG\r\nkPnw3Xtl4gPgrVVQU/a52VgDHD3pS7XWOlMUs3YsyQLSkxbn9pf7OWwp6ENI\r\nhg+GhIT07UxRLNqxk1bKEBIgfmIE3DnPuGM3gmoi+irdBzzWrhQcj++4Uws/\r\noiTZc68SbvBLIVB/TS4n7lUknfBhpWk0L+JQaKrk3B91x7MWx7lbwB5PmNE+\r\nxTTjSVsHht0718htzEQks3G8uCZZW/DkN0876yN7Hc/c/dgdDYiU1kZPnpNs\r\nTWNgfwbojPZYrYwKQTWTkMDlMvCvPl1h5x4=\r\n=K8wP\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.6.0-canary.0_1683000824639_0.49865829253495897"},"_hasShrinkwrap":false},"6.6.1-canary.0":{"name":"nextjs-openai","version":"6.6.1-canary.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"9d721b31ada3f1ac9e68a133d0b2b06f0b0cf517","_id":"nextjs-openai@6.6.1-canary.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-VJstMPLVM4D0VbU7GqWr3ugBpZYELBNxAcvbZ78VMvKnOR+eP12ks20TGKI6kQDa4HnZ+uiEJgltMyGTs3ZqSQ==","shasum":"fd060fd91a47402f89f78d77776e896361ce3c78","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.6.1-canary.0.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCID0esAbsMCh3PhonIHxuUMxIqMYcfSYh51wZv436g8uWAiEA0sZBd3WvAygs/edwBr+SH+muDLltcCEYDVMDCVxWEF0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUI8gACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpAxxAAoRw2E4U9MdABL+h7JTEv3kHLRcWdw+VNXL6yZHKZTopfaI8W\r\nIIp9U+tX7j0zp8Qa4lrrqe3Mfzwf2R9pre1IYPoI6XjNqgSKUrqosdLdYA9e\r\nGSFAQo+3z+GS1MPou/yPIfvNmhfJXH4r8mEHDmCTclfojGZXMNdgLYHf61bB\r\n4engxuaXNLb38D0Yby4Q4ei8+QjaxUQPkrurUvBRc/O1e0AU3ODiibYjvCBr\r\n4lVEtgHUW3+fJ5r/LsnI4D/w8984w5fDSt9/iglaIusu3qGu93hKUvntEV0q\r\nIkZwTV/OpXqavQjWdYqZ5zaN/jYWC8Q7BTd5SLZGsB9AmZGjyXBI8JmRYFoG\r\nkPS0IyPH59lq1bLoXKZtcIFZJn7HS4WgOdbUQCugPyQctaxGUGi3BpYDldvG\r\nV0n5Twqg42JuMnYuDn5P7y3s+onigcK0GzUNRY/le5UG3fdv+XC1N0e8STNJ\r\nO7KDvoFKQzQ5RC1tfNYY8/ccfYxFJNm7n0xX/x2fbmJ2slGIS2GqeI5EE7ZJ\r\nihJYSByDQ6KW+dDxbgfBtj/r5JbNYQUGHbMfjNqr7AqKnBbJcrpV5PPqwjev\r\nLrtWiFOh+lq9FzyFClONUNyzA4dOOvvwgAB7cMu9tZam8FNxxRSUegUf88Yc\r\nKT+cfR6dtqMrDr/H3baO13W3y2DQqc2oJ+Q=\r\n=BL6B\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.6.1-canary.0_1683001120011_0.5671664806874215"},"_hasShrinkwrap":false},"6.6.2-canary.0":{"name":"nextjs-openai","version":"6.6.2-canary.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"3226854e319b90a0f1bbfe79e9729f7a8885d268","_id":"nextjs-openai@6.6.2-canary.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-XjnIv8yA5iEci8+6P+wT4UnJfPXWN9ThaAwJK0I95FYX1tW/ezAQBBGTG0svkuf2Y57D5kDYMLVSZhiiWF6JEA==","shasum":"2c40391f1315e61203440e9b5378aed95b60521c","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.6.2-canary.0.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIENLI07ia4jzuTs1uyzcgv5v8ZXUFye34VqXJdz6QKR+AiBtN8FmpvFOS7JcytlZQLB9Kp5CYhgp1o40FAhx+QCJVQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUI9eACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrJuQ//WIv95HfYcMtTaR41GX9LEddQrYKjEsrLdYnJ5zlKxyVLrp35\r\nKj48TQVXOdXS2WxK6uH/gJbcrYngPdOVArvTW0ggbFr8480+bf/cLKSts/c5\r\nvtFQuRqlm/ujayaIGK8ldHDprQNjAR5CducOiXmxJBtM8BeQTpMWouCwDBR6\r\nYZXJiD3dh4t4joZbTX2Z3QpGVrAluKoweMHMjh8/kL6lSUEt9DQS+Os3kNor\r\nEg+NVTQEbVqIEKxev18nJSwe4AQLym9w3FZj1UQcZpjSQH6NbERalf3nZWCx\r\nhR/oqViAgoMmIBSn2Y+NtMMdgPbWDe81Qc8nZ5yTq7uSi5Hmz2ML1aWlCZne\r\nGe1TDNM2lkLytnDH/sU5aQaPBvHkrGj4PkNXbuwnZd2L4A3OrhOlLaLVFYTU\r\nlkudM3jVhvXc/z+jhCmZeLmpRgIb3PalIJOub5OruK7rrT6CNUlrl/b/JVTB\r\nZA9eocPMRHlhuAY5uFF4APykstQiUNOGnxAR3TeKDeqi21HP8sD8dBmREjsU\r\n6Vdij6GxADquHRBEIOyRBg6uSv19FharsCWmcWJwpT0wX7WslGuInJAdtIxm\r\nzr3lszMfpEHVOwT7QVnbxeLQR4pM1R5RKZ5lH+5W6iWyRmQ10AW4mwF4YjZ0\r\nmcFthzjs4QDN/w3wpYW4TJMBZFxjdb7Mw3o=\r\n=rkEk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.6.2-canary.0_1683001182511_0.7964128303288653"},"_hasShrinkwrap":false},"6.6.2-canary.1":{"name":"nextjs-openai","version":"6.6.2-canary.1","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"f142fcb88298b2a2a9d0c36bad2431c16d24e9f5","_id":"nextjs-openai@6.6.2-canary.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-ozmUA4R/lLula3myX9rHB2xBZfe3AIpXhistSGpDGLoCBBf8dg/yDSEhQmvLKvqZC1KDJPOQUe8b/V9Wy+6NTQ==","shasum":"ea7f110996dfbbac6dcd1fd45b1d1512f3ac4369","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.6.2-canary.1.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFt0YfhaceDUyshwG6a2EeGVqgxm43aRkj+FMRMdpiPfAiEAqt4fzi+vIN297ykI8u73vJ/ECPOtcTM5EVNrBBKncnU="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUJC2ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr3Kg//cOT9H8wdDLPOuqpEUTF1SY4dpR62QALSyxS3FwqhC5ShiYss\r\nKGOLEACCFBVotydGSg+Wb4We7xrEtn6ULg/dN2DYIeiN39f3g4fVXF006tNj\r\n4pH105c8MCOeEg+5qSLcsFiFGfJaz5jDc6Zc8UbqSS0+Nk/gUohGIzBP7k/J\r\n9KJdhMoyMwwWCdeRWZ59n9fVAQUQ3iinzmVhyGO2QnJPENkhXr52YXwxlj3r\r\nEeH7dY8ns02y2pIA/cJpewSOEaojZCLGYkvOEWW9n7DZDl2ghS9FXyEiNvLh\r\nYHCAY9Ac930ktvyL6IhJ56XPtuwNcSExaDr0nD5DQ9J5Ae/PImiELMEXdcLH\r\naSF0i3IQaQL0FH5nJc887oCwHQ2xo72OMQuxJG9LVp3K52J9ZyGIUV85ZUg5\r\nWIZ/k3RnEeKBxC+yghmBt3TNAjzrmsfMDM8+9Unm6sPnVZ+L+JU0V+t39JzT\r\n00YGlhgo83HyJygRpP3LbcM/STk104SIUwX2aL8oJpSlBzUGidcoC8/ifHGH\r\n6KPihLF+75dUY2CW0pRxFz5zipGaGUj9g6Jre6OOWR+sRcM8IkK0wKENjVRW\r\nrw9uxH1+LgPVsaxecuWtmC2gUGH9Qw3BujzHR1Gg+QXhkB0xi4kvyO+pPBLb\r\n8c+qX/yI2x6SiV3H80QCQ92ak1SQxQJSxKs=\r\n=+A31\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.6.2-canary.1_1683001526643_0.6484551034501564"},"_hasShrinkwrap":false},"6.6.2-canary.2":{"name":"nextjs-openai","version":"6.6.2-canary.2","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"0c218c8ff0ed038c4b1a3625aeff26ace77da445","_id":"nextjs-openai@6.6.2-canary.2","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-zo4UCS6cATbgTnWp2nr8pbZz5erPrcjBA7q0IaXIeuNm6SJFIIYQw7mc3CFL6UBtamTbuhLTbQ4/LxtQxqvMgQ==","shasum":"0a092b5c8bd6696fd9fc6f83141f23f219b98662","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.6.2-canary.2.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDwLaeV6yCKSDMYnPa7kOqzMyYndaz4HZ7nRAHNmwW+8AiEA2KZhP15vLqufckVwQVxyXpKOkQdEz43ZhmnZZwyL/HA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUJKbACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrX1A//Z2ELDF7PcYEN3OO/0/+bD6UHrVAx5g4UgzTE5TNDaihivdzF\r\n+s+1Xw5Hangsf0+GkyeGWrgaj+YS/aW7Ao/MAJaW1sMb5Rn4WnPtvfswnI8B\r\nOBOOrxU2lmjv6Q8PLJks5haDIn86wL+EOQ5nESgfWrv7czKiQJpEPntvsoV7\r\nlyrRfMMPr0tIhAcgvaxVnaAaTyTPl64k/PEZ7s/y5qS5iHiymv6Z69bzcE4m\r\npanphkXWhIAtYRFVdFJS+mZxzhtZhUsyE76Wz1H6zUYmPHIpGvSZVW6F1Swo\r\nbKQgnYKRCu9FjB57GVPG1gMTuhqffR09a8Su/oODWnVNzrGeu2A+Y+EqyDAT\r\nb8ohfZ8kFGIl/8/jYjJyggVM+6paIeWOGoVZ10rW9ouMH9heQVGCUkcNV22J\r\nMPG9/c462MpdRBN1VVHg8xuW+MdQICvrYC6yL5smkAlAPH7qnerWTerGThww\r\n4/ymkphFY1lDTDLBZ7C9r9i3u4Yv+Q+fxieqXnxeGcnxraCvXFEhNxywhsmo\r\nSwssQkphJ189PhK3F+WAHCNkHLpgVCShKr+kyd0x3+xXO1o+1S2IcPyitYsQ\r\nxFT+1OxFZoT1olRGwkoYXqQefVb3KwK8HPN17CYjvyMSel4ia5vVvyIi5zWo\r\n6gohhdHf1m9dSNdSr/a6W4vT9D8WV/iTXt4=\r\n=olAz\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.6.2-canary.2_1683002011007_0.8454171339628884"},"_hasShrinkwrap":false},"6.6.3-canary.0":{"name":"nextjs-openai","version":"6.6.3-canary.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"42fae4e9004688f266d3df7ea09b0a0c6ee73986","_id":"nextjs-openai@6.6.3-canary.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-EVEt29nWk5dI4vcJTXjmj2A13371U2qWWAkIrmDatYKatDjQagW3Bg3pWLVvBLCEijuFtpQdv7BrNMro/EtiBQ==","shasum":"566556604e2e9a6ab3d7b7e67ba0a91aa5ce9e70","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.6.3-canary.0.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBuKWX87QpWaJ/P5XNmVLZEqNkrMz6xqcTZgMUVe0XZAAiAQHqgcbCy69Lv2v+/X19hYKP7pXDaFanVkm7WdO7qj8w=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUJxWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpR6w//Sx09O0xTm+J4Fei3S6sGfuRIO+ML0cHBrkSHKJrwxrX1IAys\r\n+P+pO0z5XzCQqp2sUmkojIVRODaE5eC3NxiSx+uHzzAb12PEd/B5PtfBDmeb\r\nacpG1uABS5afUKuoDBS8jt/p/PuAcbLb2E1kwG8CpPyeCnOYzM/HOhghfFZx\r\nAM87z04MZiPJkXKt7KgpbW7BdwUinzzQ4ZI9KbcPI3VoPjH4n0ZFyx350k5Q\r\nD+UgZzuK/YI4n+SiUPC0IE7ehM7yqCU4pDj6Vte20KMD+60ZI7CSXYuWKPlG\r\nXyBigpmyvdFmZlx6thc1PtgSq7gP7mFoPgkeIa097ZXaRoI3Ww4kE0Wa40+9\r\n+iqQcxVqILPdydmGyBJBX2oeIMEBBFY6WGPzDV3XdTplABRnerpgctfq7Neu\r\nQm7LwAeKGaasR/VDzlemUqBYtGRxDPdJJoczFZNtcCGUrMH5h9fpLWVpMeDY\r\nb25p8fyJUhCOUwLwGs/03+cGXMVA2b/BkgvSuy0u7YAFiHy22tm53Ir/uIJQ\r\nVqgl51Wn6zn9JTfwA8RbbBodOt7nVPnxKSzBHoJCaUtnSwmibFdL4Ohu6z1t\r\n8XvAT55GOmWIVeHfRAbiUTnigYhkvexV6sLUdDEyA/if+xA2WCC3mW/4Qg4Z\r\nBrXdEokOnhTg2WqTx+FYuu31dOBMcNbMeU4=\r\n=1HLb\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.6.3-canary.0_1683004501952_0.8184026370039472"},"_hasShrinkwrap":false},"6.6.3-canary.1":{"name":"nextjs-openai","version":"6.6.3-canary.1","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"6648163aa0d79b662f1b23c79a51075ec0576355","_id":"nextjs-openai@6.6.3-canary.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-ypMLDf/J2ZyL6d+Bq4s8u/V6DJDuRa7kpJ8waS1XPVhZc8y69/hcZAlcP+x6NM+iNPnUk7lHCWMqpvSQmce7oQ==","shasum":"a7697d559ff806837b2afce47391dc24608835a1","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.6.3-canary.1.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDmEzTpog7hWYbaOhnminIZuJ7feR+pOMVrGLphB/bF6QIhAIaHv1EsEsPsPu2xETmOeSTGKBMvKSTAvhSpKEPYbL4N"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUKU6ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmrr/w//bDPQNDtU/h/mLSpSQaXWFwzFELb83pA7vRI4dVabGwvcAwTZ\r\nnAGNxlB8LO9egD+Dec50kt4v9WFFZVJQHT/33c+Ej/GzC17hGWhpHnmzFk5o\r\n5j9Lb9ABYs0JkWjEWNTT5c0aH4bEDbuYMz/y0zQhBIRjYkERj/OfnvZJMLNZ\r\nA/KA33vl/DGzNiEegNbwK8B+lHOMxUjGCoXpTpxezJoB/IxT4jnf7Rpekdx4\r\noMXd2YVnjk1PsrMvroS7uaXjI+OF5GBGqMmQBsf34ZW5ISdQgcvMPc6okHbr\r\ngr72Zh4MVNM14rMxdgHr736pHNP6wKP0WXysmt2QiVuYmWRGEbn1lDaIDrha\r\n1r8N3dXnbpwQqJXXkbVdnyXHCLWNbMPThh9DRHCgJcp3IDczs1Cnsxw8rGDY\r\njC0zKrsSyii7zKCswQbtjPl/nDvEx/LsgC+KBgg1GNzAcf+TtJbF9ktyab14\r\nIkts5h68AsqzFZp1mSD8yOutWY/fD5cUwjhwGLH/aeBGl7i8pgW0wZZnysq0\r\nU6WFwpjQrcubhHcq2lEVIduEdEljtK8EEu1lcigQNJ2hG1YwVtUvDnST3RSm\r\nKKV+dLB+hI2nD85oQaTEm7+ikGFi39SVe5cviPbC6Yd6Kd1xBWcMJlfw/yDv\r\nB7iN3qNEEQF6x6pgUWte5brRY8DtikvIDw0=\r\n=hl7P\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.6.3-canary.1_1683006778105_0.5673266246398623"},"_hasShrinkwrap":false},"6.7.0":{"name":"nextjs-openai","version":"6.7.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","gitHead":"f0fd89fa7070c7638b4ec097bc4d9f9286d331d0","_id":"nextjs-openai@6.7.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-mKiJS2Lf5/5OCXV99EHwSgVBaCN/UzXVnwNYMHRxq+T3GMpZYRFx7ImntrjaAfdIdwu222f+ZYN2d3dnCLaczA==","shasum":"b89aacd4381e56968f04ef0cd7e86d4d111f4dc3","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.7.0.tgz","fileCount":41,"unpackedSize":29092,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDCOQPFRTbLC1BmDg0OJCV+A9NE7k5IFzU1HalY0tXqjAIgO31XNsnImWAHnF8s7JdqaVFDxyULKJ2zL4FPRw62xV0="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUKlvACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr7vw//WRmrY6/RsBHfz3aliO8UmyhnsGecbjjRyp22fZoNqEWjus/v\r\nQNP4+LayzuIRZWJOSZXxGcQi5KeqN0gq2kg7eJvRcH82exUFuRt+Cd2/QmHp\r\nK7smuGvyzopd/ZOBmqWOw+puOGhpzLeGDDHbs0npi6hce08fN11hVOpozJj9\r\nvPxv6ADtVSVVLU8V0vcys5lBQDabwRb81R/1bZdPNnv8IoAeLKAlLbc8efqt\r\nWJGLS/mfRRif76V5wZJ6SagQkcyFEcN4mQOtoe3tXnfb/WbiB6FeOh3IWfHw\r\nyh134iZJA2DvRLKcm1H1w0F1tusLsWumxv21mInxJmz8teeP/ugnHxEWPZK5\r\nvCkCGM4uo6JlELg42M2nN4TCVIEHUl+0+trqLT0//Q6GWsFp+7Diy2HbPMpe\r\nih7QNslXQoVkN3LSxZ8zNxz4pRzkW0jq4QqqtWHYEy+KeAi6yo9fOlhhjzLX\r\nsx2T1HNMjpqBLqBP5ymEUVhEnb448ig9OO4jbE6KAKiPrOaeEYeWQ1ao18az\r\n9rNFzPrBzsjeMIfa4iVaZUO3iQbfPIy+gxpEhTVq+983WaLAbDJQFL47BhHU\r\nBKlq5j7EV4Z2WNpZd6ZRuqo8iZkt2kNWNqhMTTE/4OdqiGFu3fkVQfWKjXV+\r\nJtLBXWSFb7jBM3VoHYL8Gv+Dxu60ceN7O1E=\r\n=bzjF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.7.0_1683007855254_0.07793886400343841"},"_hasShrinkwrap":false},"6.8.0":{"name":"nextjs-openai","version":"6.8.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^43.3.2","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","gitHead":"d8202639cc89feb8a8413c4de1f327690354b9fa","_id":"nextjs-openai@6.8.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-uGfnUcoJmJHHYSMnDkfCO2JJ9gXQdkiORtU/mgUNuJ+ke1akFF34pPlElqZaYf7hsDy/F7aoTabsXI+2xlHaXQ==","shasum":"0d6b716cc6128192b676d457385c637213dce184","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.8.0.tgz","fileCount":41,"unpackedSize":29092,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC5/neiQkfHb2f0RsnrzBO/EtZd+XFeo0AKkg+AaNsprAIgDTC/Q7Y08UHRzUxVW1X5QxskPcYhCobUblmjH7FwpVk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUKmfACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoJ3hAAj3nkkcN04DCaqw8cul9xekSpkd/yv30kYjROd2RTrQXQmC1D\r\ndzb9WSQumuG2fSnpk51xhyI5UWY9Mk/q/won4xrsdF1mhhj/6vrLWbqreM0o\r\ngxKyw4+ghVwsw+kXaX3efUpf8p208xPUZ2piRnV5iHwNZuaNYIgk56T2oIha\r\nLJ+SqE2JGqtdNsiCDBfh9kc2tB9nApG05qfrFKrlHh2ff/KI/KxdQF9gz8+C\r\ndxnxAy8QeIGRRfzkuPVb2GxKdVdUrDTmXWNM5u+/g3y4/Kiq6rl0nZxN0tkz\r\nUDw5qSNDHAL0bibcfq9fPjJjxcDdxVND2ZNwNYGbcKsNIyjy2lYk9R7iUgEu\r\n8DQ5H605JgMTG0n6au8nC8OjdsZbmZP7/WTmU646fjXrfmIf6YKjY9Nh8Q5D\r\nIKhAb+K87wC4W0qixAKmwLF3V+60HvkAwav9xqF4CM+F1LA21RV9kCIuBYCu\r\nVFD93YhnB7Z9sz6q1lB/DUeStxrr/zOFWxYHOqXRaUopemqdx1caZyYevHe5\r\ntJDTPQoAFTmff6jdrR5xSD7pjUvWSmVjP3Gb8lkE3uvNIf2ikc49v8Cfpx5Z\r\n1Q0cJKhR4EigfCpteo/Of2s8Yu66baR+a0L0VWC7Gzm7qgEPO8HSHSKrudQ6\r\nXQ3V0m40ToSQs7iy932Tid1IIPX30ZrKwzc=\r\n=cyOu\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.8.0_1683007903566_0.5158900311032266"},"_hasShrinkwrap":false},"6.8.1-canary.0":{"name":"nextjs-openai","version":"6.8.1-canary.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^44.3.0","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"ba51a8b1e85d76f8b43e863614d09d0a98b14a6f","_id":"nextjs-openai@6.8.1-canary.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-q3D0Wgj4oOLYE4tdtv5u+xaxn6snT3d8W+Q/tLT5pQ7mUAXb91qmEsJTaWJ1VL6olDjQSFjVUydz/O78E4iX7w==","shasum":"8968e59c1582fbb66aa5288f54754ea063890eb4","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.8.1-canary.0.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDsVUCfHCshbqarYe+77h35qt6FmzESzHqC9qWGQ+pwCAiEA6jnyIMvHS8QxZW5Wlou6H/YpZPEeXIZUeJo8HGipDZM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUMGZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr/3A/8DQ/jahyFA19WhWfMJaGzzXUaP4k4CuEaRat9BrBYfLPG6tAo\r\nFvmWJeEcZX6J5RjiJu2xtfv+qIVH9agX8a53onnq9iS5fzvm/EU4JMSksFxA\r\nFiqrSmbnZQwGFAWmUQ3OYZAmpxh75wNp40aikLkuAsMRP2NyvBaLPWkquvWP\r\nKqCoOVSi4WtrgbTLbzSl/HsEzP0d7rw9Tr3tNjvudgv47r/LOdriyvp4SLw8\r\nq4wvUT+iqUejbsX3vOJsDUA7fk9FRWNC+vbMGjtgTaVYzE+gnS2sG722PxtF\r\nu1p7HejFwsD6ydTBybNsHQH5ur4yTyRGVkW+61pPAL7WUoMEH7ZGtoK90OVa\r\n2yQRKbn4qPEu/O6QcwUHgVgsIcnHRrhdukvFr83bUj26qDjd9h4Ey80KSRZP\r\nljQkF2X5NOHIIcg9FYA5V2V9AqdLQ0kElR6XhrPre/ylng9FwLXRptUYh4Q9\r\nL/NOBSSflx4AI9wzEaX+Ruvm1Vkbvao2u05S54uUl05FIYjEGIjOSXrc5q1K\r\nSbaa8OqX3NrFgl98MAloGyUCcAlOZrc/IHKugwNFoHYJuF6e/R1b3XPsmGUL\r\nklzCtmKsY+y0I/Q5cLi8oIBCdwdIjhnXFUjABOTSnZLM4zuqOJqdrDvoqCqo\r\nxm0T/r+NqY9G9Lg2e3/Ap9N/I4F67L4fezA=\r\n=f5hA\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.8.1-canary.0_1683014041633_0.3753214263724163"},"_hasShrinkwrap":false},"6.9.0":{"name":"nextjs-openai","version":"6.9.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^44.3.0","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","gitHead":"f981ce55f2a3d9ab4c40b059961791ba188c9a73","_id":"nextjs-openai@6.9.0","_nodeVersion":"16.20.0","_npmVersion":"8.19.4","dist":{"integrity":"sha512-UvslumNZ1Ns5rppYeLkulcGHkssdiiZdl+qPQvVp1H+kHLVwV9aZ6OC3fShK9QE8404Ii9Ptitu4/fJGTSPliQ==","shasum":"112df12403606aee9482815c00c1d8b3eeba0059","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.9.0.tgz","fileCount":41,"unpackedSize":29092,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCpx76gywR+tTGNSAGJGkbomYFbrAY1R6KrI+kQ3WnSiQIhAIGMZp0VntvHbs4zC6pYERRt94VrCjW8LpaYiL+5YPdr"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkUMP/ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqdzRAAi7OdfJVAKWdI0n1Ai1XlZEmxShrNwc8S43+SxW6T/xFrYPhx\r\nsdmwYtOwRCSAsceLq+NqreaAu3ZrFUEofEi1SpAnIi7NpmFnZ16dOjvXJshp\r\nhnRqcwrOIZC4rl5T5Xo3J9kZkJhz1syIUILAYtCDmRXm37rUX7NS/MfS+2c4\r\nHVECqTFnOuvakWpcGUX4LtAIHDACHd1zTj23XXqhnBdy4HXG4hGb8F8+Hsy6\r\njIsfASVH+BpD5V/r5T/ygeWbHAdSM46L+qhPX3cBDh/Yvq9PqXDwx6jRhkjL\r\nokfNb2yArb8PXJTRlNQyGeMBHF/dBQxIxLVUSk4y7/TkepLEduhR8329HthS\r\n3SfTB8fjGIh/zCksZDHwgJ/5nEYhbgLCbDWQGT30+sWN6Tx6+RP6KVXMwwQt\r\n0+8NWJvhEY1ZNJ283JkneFu8FaS40qzTRd8gjD3wRfURb1Cq65bwiYpQEZp9\r\nGyKF+BSGL5z7DyIsA9CYjvS3rcaJsyIvXmyucgEHCx29cyU20cRTF2QKO386\r\nHMOZqoqeMnx7TlkpyhXVt/VFDE4VJ6V6rIhYY5ODyIPFui8Da4VBLwwiLnkS\r\nRqIk721NiTX9zXcqcSDf2r4KD2RWkkDrkI3c7AXWXoq0/RP4YBln5ft1cBOT\r\noxl6AamzCMKmyKgN31GcjQab9hvBTv9NVTg=\r\n=/qG0\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.9.0_1683014655435_0.765891579619316"},"_hasShrinkwrap":false},"6.9.1-canary.0":{"name":"nextjs-openai","version":"6.9.1-canary.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^44.3.0","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"9403d7ca2beff297ae4d72c9c76666af587de5b2","_id":"nextjs-openai@6.9.1-canary.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-zrJeaKDmCIz6ob8eb9WLENKC6bY5vXSLbToL84Ptqwa+YEBDU9GdfMsdUZtRyQ14qvtu4dDnnLLPxd3IvkYkpw==","shasum":"b4417c1d9bc55c1dc8b1bb5c8056df2e4a328b4b","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.9.1-canary.0.tgz","fileCount":41,"unpackedSize":29101,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEOnTRqLVE6qqB28mKcDvIdxcy3qXEGyAmwEqZphZUR5AiA42ETyQVm8nXyjDgt9ivd+wHFIaKjS43qPFIfRBCSe1A=="}]},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.9.1-canary.0_1683883468356_0.9394786664241586"},"_hasShrinkwrap":false},"6.9.1-canary.1":{"name":"nextjs-openai","version":"6.9.1-canary.1","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^44.3.0","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","gitHead":"5ab84d295e669805d47cb115e52fc571ad6da821","_id":"nextjs-openai@6.9.1-canary.1","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-Bxs9oXqw93yH4gca9oaTMjJpk3ylZik5wXNCA17ug3xOuaO5r8udtjjVdPbfG4HgT3nXPcTloQuPTV67YN/IsA==","shasum":"552a5960cc0809401f5814baf7a73878f2fce224","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.9.1-canary.1.tgz","fileCount":41,"unpackedSize":29212,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCPnlBiigsLCSQSzVDb+irP+bRPDtBJMlOfNJfPvxwhrwIhAKx7RCEdnXLFEdzvbOFNDEZBx08b3e14G0CvsftGdQp6"}]},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.9.1-canary.1_1683884666959_0.3244745964175446"},"_hasShrinkwrap":false},"6.10.0":{"name":"nextjs-openai","version":"6.10.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^44.3.0","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","gitHead":"51b07cceffe34a75c1f61eeff7877f5e18002622","_id":"nextjs-openai@6.10.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-r4O/6Dn7XvkfJ6NFpjuasvA3nJzp0c27P+8eAWfBS0bQZUWY0SdKff1eamXXPYGjfGak0Ts5z9jssR/h3ocuDw==","shasum":"d941f90ad5f9e33ff87bb5e0aa68953a6233a260","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-6.10.0.tgz","fileCount":41,"unpackedSize":29204,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDjLfM1SRGl4YRvbucH/RmNbW9zo+n+xPi4hbi7TzFSuQIhAIUyEVUCc5C7jOKOMsqbcrRLVIVrAlMB+rrncD/GrhWW"}]},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_6.10.0_1683885372591_0.6125679031986693"},"_hasShrinkwrap":false},"7.1.0":{"name":"nextjs-openai","version":"7.1.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^44.3.0","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=18"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","release-it":{"git":{"commitMessage":"release: v${version}","tagAnnotation":"v${version}"},"github":{"release":true,"releaseName":"v${version}"}},"gitHead":"e6ee2e7f1f86a12d54ca5dc6189fd362d1de3155","_id":"nextjs-openai@7.1.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-rsK2+YiPFrsdlwXpxHcHw2RHjS08GJJ8TGRbO7gl9CKIkqhtfiGIBVuVfqBXpR00SwzKvnE3ishcbOzG5f7QwQ==","shasum":"8b8f93dec2d4eddea7dc2097752753586159a0fc","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-7.1.0.tgz","fileCount":41,"unpackedSize":29410,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDZ2PKDzqGbZx6IcwvNl93gEo6PaNhzEU6/3AGh1ndfQAiBjrV9+zVJvnfgeGQFq44usHW1uR3rHFCj7XVODhPv0xA=="}]},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_7.1.0_1683885555231_0.6966738959088241"},"_hasShrinkwrap":false},"7.2.0":{"name":"nextjs-openai","version":"7.2.0","license":"MIT","type":"module","types":"./dist/index.d.ts","exports":{"./package.json":"./package.json",".":"./dist/index.js","./*":"./dist/*/index.js"},"scripts":{"export":"tsmodule build","docs":"pnpm typedoc src","dev":"next dev","prebuild":"pnpm docs","build":"next build","start":"next start","lint":"next lint --fix","pretest":"tsmodule build","test":"ava","prepublishOnly":"pnpm export && pnpm test","canary":"pnpm build && npm version prerelease --preid canary && pnpm publish --tag canary"},"devDependencies":{"@tsmodule/react":"^12.0.0","@tsmodule/tsmodule":"^44.3.0","@types/node":"^18.16.3","@types/react":"^18.2.0","@types/react-dom":"^18.2.1","@typescript-eslint/eslint-plugin":"^5.59.2","@typescript-eslint/parser":"^5.59.2","autoprefixer":"^10.4.14","ava":"^5.2.0","cssnano":"^6.0.1","eslint":"^8.39.0","eslint-config-next":"^13.3.4","next":"^13.3.4","postcss":"^8.4.23","postcss-import":"^15.1.0","release-it":"^15.10.2","tailwindcss":"^3.3.2","typedoc":"^0.24.6","typescript":"^5.0.4"},"dependencies":{"eventsource-parser":"^1.0.0","openai-streams":"^5.1.1","react":"^18.2.0","react-dom":"^18.2.0","yield-stream":"^3.0.0"},"engines":{"node":">=14"},"keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"description":"Hooks and components for working with OpenAI streams.","homepage":"https://github.com/SpellcraftAI/nextjs-openai","release-it":{"git":{"commitMessage":"release: v${version}","tagAnnotation":"v${version}"},"github":{"release":true,"releaseName":"v${version}"}},"gitHead":"67a224d8f3e9ed8105bafde23b959921cdda1188","_id":"nextjs-openai@7.2.0","_nodeVersion":"18.16.0","_npmVersion":"9.5.1","dist":{"integrity":"sha512-Ro25wKeb+noVTqXIxbgm2jURffgTMQINCNrgcwhZrg7PczCU2Awm54uHhKw0E2xMNB2O9mSaWhQKx+v/kezogQ==","shasum":"c4e4ce8d8e097b8910d17859874309738a1c88b0","tarball":"https://registry.npmjs.org/nextjs-openai/-/nextjs-openai-7.2.0.tgz","fileCount":41,"unpackedSize":29410,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC1JcNX6cQlope5if4oJOjoU5n2dUSszMftLr6/27NgnAiEAuj9dUbbs1mDEi6Yb/4S0Rc2PRINQ1EbJ2Zt+HedsEEc="}]},"_npmUser":{"name":"ctjlewis","email":"ctj.lewis@icloud.com"},"directories":{},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nextjs-openai_7.2.0_1683887666145_0.1643991367243114"},"_hasShrinkwrap":false}},"time":{"created":"2023-02-12T08:03:35.817Z","0.0.1":"2023-02-12T08:03:36.053Z","modified":"2023-05-12T10:34:26.364Z","1.0.0":"2023-02-12T08:12:30.106Z","1.1.0":"2023-02-13T10:09:52.021Z","1.1.1":"2023-02-13T10:10:49.121Z","1.1.2":"2023-02-13T10:27:00.964Z","1.1.3":"2023-02-15T02:28:36.091Z","1.1.4":"2023-02-15T02:30:43.102Z","1.1.5":"2023-02-15T02:40:22.836Z","1.1.6":"2023-02-15T03:15:16.082Z","1.1.7":"2023-02-15T04:57:25.246Z","1.1.8":"2023-02-15T09:33:39.415Z","1.1.9":"2023-02-16T22:50:20.509Z","1.1.10":"2023-02-16T22:53:03.016Z","1.1.11":"2023-02-16T23:07:52.579Z","1.2.0":"2023-02-17T01:16:04.031Z","1.2.1":"2023-02-17T01:24:18.316Z","1.2.2":"2023-02-17T01:33:02.108Z","1.2.3":"2023-02-17T01:33:35.485Z","1.2.4":"2023-02-19T04:20:05.876Z","1.2.5":"2023-02-19T04:30:42.834Z","1.2.6":"2023-02-19T04:37:40.487Z","1.2.7":"2023-02-19T04:43:46.035Z","1.2.8":"2023-02-19T04:56:44.462Z","1.2.9":"2023-02-19T05:15:48.754Z","1.2.10":"2023-02-19T06:03:10.891Z","1.2.11":"2023-02-19T06:04:47.748Z","1.2.12":"2023-02-19T06:05:44.093Z","1.2.13":"2023-02-19T06:06:52.918Z","1.2.14":"2023-02-19T06:15:15.699Z","1.3.0":"2023-02-19T11:48:58.316Z","1.3.1":"2023-02-19T12:12:32.477Z","1.3.2":"2023-02-19T12:16:50.173Z","1.3.3":"2023-02-20T02:51:51.831Z","1.3.4-canary.0":"2023-02-20T03:05:47.347Z","1.3.4-canary.1":"2023-02-20T03:13:08.564Z","2.0.0":"2023-02-20T03:17:58.605Z","1.3.4":"2023-02-20T03:19:50.011Z","2.0.1":"2023-02-20T03:20:13.128Z","2.0.2":"2023-02-20T03:24:06.476Z","2.0.3":"2023-02-20T03:30:05.503Z","2.0.4-canary.1":"2023-02-20T06:33:18.608Z","3.0.1":"2023-02-20T06:38:15.539Z","3.0.2":"2023-02-20T06:43:52.245Z","3.0.3":"2023-02-20T06:49:31.536Z","3.0.5":"2023-02-21T06:04:49.648Z","3.0.6":"2023-02-23T12:33:50.242Z","3.0.7":"2023-02-28T08:51:08.223Z","3.0.8":"2023-03-09T07:54:46.709Z","3.0.9":"2023-03-14T13:24:00.514Z","4.0.0":"2023-04-06T04:27:01.730Z","5.0.0":"2023-04-11T01:25:49.906Z","6.0.0":"2023-04-16T09:18:23.214Z","6.0.1":"2023-04-16T09:43:46.920Z","6.0.2":"2023-04-16T10:05:52.838Z","6.0.3":"2023-04-21T19:41:00.896Z","6.1.0":"2023-05-02T01:24:52.309Z","6.1.1":"2023-05-02T02:15:11.471Z","6.1.2":"2023-05-02T02:22:05.627Z","6.1.4":"2023-05-02T02:25:07.123Z","6.1.5":"2023-05-02T02:30:47.318Z","6.1.6":"2023-05-02T02:51:21.465Z","6.2.0":"2023-05-02T03:36:15.742Z","6.2.1":"2023-05-02T03:42:01.055Z","6.2.2-canary.0":"2023-05-02T03:44:52.375Z","6.2.2-canary.3":"2023-05-02T03:55:56.063Z","6.2.3-canary.0":"2023-05-02T04:05:57.375Z","6.2.4-canary.0":"2023-05-02T04:06:46.727Z","6.2.5-canary.0":"2023-05-02T04:07:32.040Z","6.3.0-canary.0":"2023-05-02T04:10:46.367Z","6.4.0-canary.0":"2023-05-02T04:11:49.895Z","6.5.0-canary.0":"2023-05-02T04:12:47.200Z","6.6.0-canary.0":"2023-05-02T04:13:44.946Z","6.6.1-canary.0":"2023-05-02T04:18:40.217Z","6.6.2-canary.0":"2023-05-02T04:19:42.662Z","6.6.2-canary.1":"2023-05-02T04:25:26.829Z","6.6.2-canary.2":"2023-05-02T04:33:31.211Z","6.6.3-canary.0":"2023-05-02T05:15:02.202Z","6.6.3-canary.1":"2023-05-02T05:52:58.323Z","6.7.0":"2023-05-02T06:10:55.408Z","6.8.0":"2023-05-02T06:11:43.795Z","6.8.1-canary.0":"2023-05-02T07:54:01.790Z","6.9.0":"2023-05-02T08:04:15.599Z","6.9.1-canary.0":"2023-05-12T09:24:28.542Z","6.9.1-canary.1":"2023-05-12T09:44:27.177Z","6.10.0":"2023-05-12T09:56:12.776Z","7.1.0":"2023-05-12T09:59:15.425Z","7.2.0":"2023-05-12T10:34:26.260Z"},"maintainers":[{"name":"ctjlewis","email":"ctj.lewis@icloud.com"}],"description":"Hooks and components for working with OpenAI streams.","license":"MIT","readme":"# OpenAI for Next.js\n\n[**Github**](https://github.com/SpellcraftAI/nextjs-openai) |\n[**NPM**](https://npmjs.com/package/nextjs-openai) |\n[**Demo**](https://nextjs-openai.vercel.app) |\n[**Docs**](https://nextjs-openai.vercel.app/docs)\n\nAdds hooks and components for working with OpenAI streams.\n\n<img width=\"600\"\nsrc=\"https://github.com/SpellcraftAI/nextjs-openai/raw/master/public/nextjs-openai-demo.gif\">\n\n### Installation\n\n`nextjs-openai` includes frontend tools, and `openai-streams` includes tools for\nworking with OpenAI streams in your API Routes.\n\n```bash\nyarn add nextjs-openai openai-streams\n\n# -or-\n\nnpm i --save nextjs-openai openai-streams\n```\n\n### Hooks\n\n`useBuffer()` and `useTextBuffer()` are used to load an incrementing buffer of\ndata (and text) from a given URL.\n\n```tsx\nimport { useTextBuffer } from \"nextjs-openai\";\n\nexport default function Demo() {\n  const { buffer, refresh, cancel, done } = useTextBuffer({ \n    url: \"/api/demo\"\n  });\n  \n  return (\n    <div>\n      <StreamingText buffer={buffer} fade={600} />\n      <button onClick={refresh} disabled={!done}>Refresh</button>\n      <button onClick={cancel} disabled={done}>Cancel</button>\n    </div>\n  );\n}\n```\n\n### Components\n\n`<StreamingText>` and `<StreamingTextURL>` render text from a stream buffer\nusing a fade-in animation.\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Demo() {\n  return (\n    <StreamingTextURL \n      url=\"/api/demo\" \n      fade={600} \n      throttle={100} \n    />\n  );\n}\n```\n\n### Sending data and advanced usage\n\nIf you would like to change the type of network request made with\n`<StreamingTextURL>` or the `useBuffer()` and `useTextBuffer()` hooks, you can\nset the `{ method, data }` options.\n\n`{ data }` is sent as the POST request body by default. To use a GET request,\nset `{ method = \"GET\" }` and manually set the URL search params on `{ url }`.\n\n<sub>See\n[`src/pages/index.tsx`](https://github.com/SpellcraftAI/nextjs-openai/blob/master/src/pages/index.tsx)\nfor a live example.</sub>\n\n#### With `<StreamingTextURL>`\n\n```tsx\nimport { StreamingTextURL } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  // ...\n  return (\n    <StreamingTextURL url=\"/api/demo\" data={data}>\n  );\n}\n```\n\n#### With `useTextBuffer()`\n\n```tsx\nimport { useTextBuffer, StreamingText } from \"nextjs-openai\";\n\nexport default function Home() {\n  const [data, setData] = useState({ name: \"John\" });\n  const { buffer, refresh, cancel } = useTextBuffer({\n    url: \"/api/demo\",\n    throttle: 100,\n    data,\n    /**\n     * Optional: Override params for `fetch(url, params)`.\n     */\n    options: {\n      headers: {\n        // ...\n      }\n    }\n  });\n  // ...\n  return (\n    <StreamingText buffer={buffer}>\n  );\n}\n```\n\n### API Routes\n\nUse `openai-streams` to work with streams in your API Routes.\n\n#### Edge Runtime\n\n```ts\nimport { OpenAI } from \"openai-streams\";\n\nexport default async function handler() {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    },\n  );\n\n  return new Response(stream);\n}\n\nexport const config = {\n  runtime: \"edge\"\n};\n```\n\n#### Node <18\n\nIf you are not using Edge Runtime, import the `NodeJS.Readable` version from\n`openai-streams/node`.\n\n```ts\nimport type { NextApiRequest, NextApiResponse } from \"next\";\nimport { OpenAI } from \"openai-streams/node\";\n\nexport default async function test (_: NextApiRequest, res: NextApiResponse) {\n  const stream = await OpenAI(\n    \"completions\",\n    {\n      model: \"text-davinci-003\",\n      prompt: \"Write a happy sentence.\\n\\n\",\n      max_tokens: 25\n    }\n  );\n\n  stream.pipe(res);\n}\n```\n","readmeFilename":"README.md","keywords":["nextjs","openai","react","typescript","streams","gpt-3"],"homepage":"https://github.com/SpellcraftAI/nextjs-openai"}