{"_id":"gpt-tokens","_rev":"40-b83566fa264534bc97176f6b8a3382e8","name":"gpt-tokens","dist-tags":{"latest":"1.3.14"},"versions":{"1.0.0":{"name":"gpt-tokens","version":"1.0.0","author":{"name":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.0.0","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"1b36277203ff89e306f4812334e665524c0ac302","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.0.0.tgz","fileCount":12,"integrity":"sha512-bMDDRvJY7jq3KapXF2GbqQ6VzPePVZ7yPdmtIJT1DFxJkYIS/0EEny4tYDcnJMfpJ/aAAGlQ9VMHqIfrFf2a4w==","signatures":[{"sig":"MEUCIGiZ8SkZzd8pJ7BaqmTu8iI0YxlX83hfuU6qq8zzNwCXAiEAmjV5QgV+B6jNaRznouz1AmNJ1pYQQZf2d6G6W77LksM=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":134863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPRmOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqShw/+NRdUmjVwfOsNvolaUJ7neA0FdSw+67FjUB+JgQMUAlOLU1DN\r\nB01z/v9OW54uPxCHSiXON5Y0PjJ2AQYQ3uhQCiFO9XGBnYBCljj7fe+tV1GF\r\ncgsgYJxty/5d4s+bVhmNctv0LqSV6Murj0JqaOL8CfbKjAsgRb9joQd790eX\r\nFJQQoPeoW4lsZ2W1EAU+VUkiSAuI6yzH3gZXxHt3TaD1v8uzLeWgXvR/orCK\r\nSX5Lg2YbAni0PpLIrFGjLu0eO8zBjbQROdgp0NZyPrG8C2ZliumALJGhpMc8\r\nhkURbsLsQj+7EUizkGX/ujVj4li0i4YAVQRqS+kMz2R/G3rnaHO5ynxqnfG6\r\nlQ9zrSWo7bfzqwJEMOo7DuI1YODsu37rcxp/h9BsGVMx/zIiUa7D246Q7xRt\r\npdLBKLZUAZkpXGtBi7E4tO+tY8YihHACKVV6qr/IZ0pQ94ysNACYBcP//EYy\r\ndjsejLehA59IYOGdQQbCaEaSkvWOZWZwwSTpTD8qMzJGqiE6OE4GlHEfKJjx\r\nxvQV2zuI/kSObgj0Ylvxfkrkq7fhwD32BbjaTmPzn9A1wS0XW1ezZ1h+vLSd\r\nKeH6YHL/F+elYlEiAcnyIIl0KrEHkjxOWh7lzUxCZv1582waO7S8ORe8+1wA\r\nf3LUGQYrTO/jhXmLj91DGqfDT3Mn2NIs8Gw=\r\n=QUzl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.ts","gitHead":"786eed16940c59a8869c88b3ab34c6fa4b684e4d","_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"deprecated":"This version has a memory leak bug","repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"9.5.0","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.15.0","dependencies":{"decimal.js":"^10.4.3","@dqbd/tiktoken":"^1.0.6"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.0.0_1681725838513_0.6516213314616426","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"gpt-tokens","version":"1.0.1","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.0.1","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"99c410595df5fe1b1c71832bb83a0146bf5d6d4d","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.0.1.tgz","fileCount":13,"integrity":"sha512-GmSOivmz8RcaC1MRoyuEMhzDCa2FEsgX+10P7BBwYyHD9gXxbFUy3fLiYaX+4ttMgHSR/+Wjz3pXBMdJVL8Mhg==","signatures":[{"sig":"MEUCIGiq1GWF+PJTPSqBCykCg9N+1Qyeclw+/psGMjcWobc0AiEAlNv7VIQKHVRa+MR4majvCWE2vs76d1hMvmyDMGPGXQw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":142896,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPRxEACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo4bA//c67nq32Er5LeWVjKG0bD64VOwv3tPE/MGYnYfyvtARzsif+x\r\nuj5605GT8pUTmTNzrvwp4pUeJ5DwFTFWoi4r0zSVSGa3v49HY+nTRAau21Ye\r\nKRzYBNGkTsCAsFAc87aiXTYE3n2JDkG027WznZXyKN8zef1aW1hrslPbFX3Z\r\nn6Pkwldp8wFBehWle4U7iUk8JqpJlabSLfy0IQCdYXUcMvqg62XYqquS7JjT\r\nXqSiVHz9blxOo3NFsrK9fGktuHNSXUAIM5f40FMuxpfU42eyaA7upsB+rNbn\r\nUzWFtYhz2gLavcuGq3NhiNQ0W+hi/3GDKjeZBf2qkDgAbJuWU4eBJtvStOlN\r\ncWG0YUs6szEWnZx7ZrJ5/FKgSOnuk/XjcMp20DkprLASmoxhPdZ/Zxc/+74j\r\n4AP62m2NJ3voDds+J3cQ+VYLtk0GrqGfth+zN4iaUfSXm1FZsZ9JOloEzu3C\r\nRFdyl4BYRiMIJy8e9XJ2daZEGTJHPNW4FzdyVPmalSYouu9WSK0q0N1GOc8C\r\n3L2fxf8w0QNGNy+MpB+LYdFTipl/Md4R9xtPb+BdRZXlCJGPB2mVqf7k6abD\r\nKFKDQOEmEgPNW3cnY6DIimBrovQIYuXyP1wLS+3B5GmCM0jQ3b0hy+y5zdQ5\r\nF6//kVY3afwGcaC68rSWjWMEm5tPhDeZgbY=\r\n=xASy\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","gitHead":"fd4b185adc66a01838187067390ae1688997ec6d","_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"deprecated":"This version has a memory leak bug","repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"9.5.0","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.15.0","dependencies":{"decimal.js":"^10.4.3","@dqbd/tiktoken":"^1.0.6"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.0.1_1681726531915_0.7244220295099775","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"gpt-tokens","version":"1.0.2","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.0.2","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"67be7b3060ff6aa30f594e58f6e7693d0840ddce","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.0.2.tgz","fileCount":10,"integrity":"sha512-AALa/UJs6NeGGvn4DqVdeWhvtMR91ZCFtNe4n4mp1T8vBBB7BUIC9CT3t/pUnxyK8pOtitT40NnKhrH0tgWZmg==","signatures":[{"sig":"MEQCIGoONZB9vuLcg/bzC3Md5ZOHhc0L2PaW7LN9VhY7xOMCAiA5slQ0booJqgD0a+CrHtLDQ+pT3xrpanUlRBxJdM59GQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":144339,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkPSM5ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoezA/+Mk2qzzegTqB055SEbOJMS+5SgW7486f/++DQMdiA7ldjCyGs\r\nU7RoZp8M8qtbhGVwsvcgmmG14gb19vCnIFVBymgCU9j7MNmfkblmmIYqbCZu\r\nmKBjM7Jk+1DOIWg/sn/jY3B9IJL5na7b/6Jt5gQaEkEz1Byde7NYvLC4ixou\r\n8BoIYwkUP+8uTE3JktCR36C9BPo1gDwC2nUZVm7boF16yMN7SytghYo3ZIt4\r\n2RqSYBV+CQItXSUpNndrGq8eIR/tZnmCki4U/5IyLCDOhjPvxQyLJvFjdd++\r\nbpy1O94jUH5m0SKDgq+JNABE3iaPJR5krGNKuCEOk+w8qrFX/HwU5OMMiN9k\r\nXSz5HvJ1u60h/k6CfJ6NDa0jcLIdkJm5ZsbfkelZFIkpzqG34niIA7u1r/TB\r\nhFp2+ojHsDt1TAHB9ZjQFbCf62/5QVEnLRktLgHkdG4ptTNMnIyBh4O4Tp8Y\r\nqH3XwtLcuMTJxcsUe1rIjC5NdYOdSmU2Ylosy78dWzb7QuYNZkTIUPwRuhPb\r\nHl9poKX/e9t+DxYvntpf8tdvdbdUY7P8a3/8zwMSbAd5r0IUhahynzO6C+I6\r\noBAo+wljPs6hHIOzEoHnJ687TE9ZvFeHk6BFqE0NmpEklhWGoG+DGUZUfFoF\r\n00xZPmdFnRP3qEKLqNjKIQSilJjJ9FV0jaA=\r\n=QIHc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"./index.d.ts","gitHead":"644003758fb158ee5b60c8778f43b9cc00530411","scripts":{"build":"tsc"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"deprecated":"This version has a memory leak bug","repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"9.5.0","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.15.0","dependencies":{"decimal.js":"^10.4.3","@dqbd/tiktoken":"^1.0.6"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.0.2_1681728313631_0.4337892270989929","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"gpt-tokens","version":"1.0.3","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.0.3","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"832ab658ffcae2b8bb5dbee673e7209e71671abf","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.0.3.tgz","fileCount":10,"integrity":"sha512-jnGabcHEd4C/bAJjr5gALl/pyraa6GA0rjlc8DRC+kgQKmtKeW6SxglTSLKQOu5U0rIRPwiwL9s3DiaxXuXF2Q==","signatures":[{"sig":"MEUCIExoo6xqZA1BighVRQmBKkjdYRktDJ6uLlt3lZDLC4lIAiEAuIr866BiVzipydTMLes5vwVtLMUMtJL9jiXtdO0JYR4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":147166,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkP5iLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrhxQ//WOZIBSH3aV5jE4lrYVCIDj6QNXaspKUfb7i3uYNlSLBGjKCv\r\nIjj7RWFoNtugprauiK/jEZu3GEWM/xZ7N8eobDieE4RYrkRk1ngS7uaysv6f\r\nHe/rNeLprb/kNPyHwUxNCN3Riu9lC4R5eEZahZqkOQOjGgyzm2keCv17A84o\r\nTUtWB2qRG/QjfQs/lkCt12yY2PD/AjLIk2sdwUiwym1Q06i3kndhlYsRK+GM\r\ntqrP5zs9V44fk1KRE1QoB57pzH45rzJE9Qc2GIVKCpBhLnHmNgFHQ+scfMpN\r\nvirQgPwy7WULgCvQXpxHl/4HcUtryhzp6bOh7Boo/h8gBsFZP/fBl+J+A+av\r\nRmpdiHPImaG8iCHoDcgM8A8auHEQPFSC6uQ7MHKPiuLoJklJmCBCaJR2CpRi\r\n1g16q6FUldl10U1q6whnhWPLVMYXXJkzWlQs5ex9747IHfUOxEwY5gOfr93l\r\nnRneMoMzWg5VVDJFoZWzJTIcY5GXG0vg/BgBOaBoGTehbheaLF+DhfRUgEgS\r\n4a6ROjIAAUuH06Tx1+i7uXZ7YTfj277Ka8O3mL7f+t7vMZfBr7JhFy/TKek9\r\n3pn4QjThik4o53C7/7REF9x4ecv0V+YHfGaK45qLQF5Kj5BA2gHqWQXvqOnm\r\nIjTHdId2blGDBOwYOH6sa5uE6LrkKab8850=\r\n=oQDT\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"./index.d.ts","gitHead":"2cdf79b628ad4f98065e80c3526f15f5fe0cf581","scripts":{"build":"yarn && tsc","publish":"yarn build && npm publish"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"deprecated":"This version has a memory leak bug","repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"9.5.0","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.15.0","dependencies":{"decimal.js":"^10.4.3","@dqbd/tiktoken":"^1.0.6"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.0.3_1681889419208_0.953331218778743","host":"s3://npm-registry-packages"}},"1.0.4":{"name":"gpt-tokens","version":"1.0.4","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.0.4","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"5e7e507e9ce0ecbc290466b4dfb654b8ec911f02","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.0.4.tgz","fileCount":11,"integrity":"sha512-BaBAQt3lR4itHzqwWlpE3c8OdAIWHJwobDqS9yVIO1vLRYoMXIl8TqgnfqXzzJUtPeHBtevqwjTY7dGzeBPSrA==","signatures":[{"sig":"MEUCIQDzXLdYYgH4ug+KAPZd4/4mRf3BJVu4225wQypTI/i4mQIgH9ClfuLqm/CQXlxuHk9QOQ1XwTZwOCejlAJWEJK8POU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":145207,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSQgJACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqMmQ//S/3ACOnNJuS3eeA5DV+GvTR5YV/b44YqH58blGS/7YJm1URl\r\nCS3HP1c4WLjT76s00gkQflxiqWZsAhvjqFvLhfRmM4i4sC21SUYDQvnmuAuk\r\nr/7Ho1j7un81aIIUNBKRXDMcint6RUyXYPeGVADFOzLYoRbXUTRtu8erSW8J\r\n8XtcicTDndKfFgE1VW0i9ZaRgmyRjDFniV2qB7OL7ZQXrukz7Rl4YKdm/QTY\r\ninX3RohcJFtItxgO6yP19KhiE0ggiJuHrrNqXDPls7EGmckR8m47KzQJbxEm\r\nflPuoN5No1qaKdc/EACkBxHqt3Ev6XQ+A1/F6wYTb+vt5lTgsmq5LYqV+Ypb\r\nQp+DORtDqZJGP+Zjlp+Ug3+jGMLTBYrApSByq3J0d0hLepFgNSVRHjdeR7El\r\nYll/ypGSBFg5U40/+B9YKJ41kFTutkNAC4buGk5S8RmPz9TCeeVfwyFx6TMu\r\n1+Zpe8VNrwpZFTuQEse3Ne23MUWdcCNMP6Q4618bc6m58I7THQ8KcyG1zVs/\r\nIvSDHCu5PrkHkcJC+o1yBv0fbbPQ85HkAptQ2pktMNV3vRfX72CxGaVMzKNW\r\nd0NwjnEhiQ5LUJci7+eMd2ywYFYNkq9SgvnZdXWbVso5HzHpEoWT3zdRhmlr\r\nOZMhrg5B4kV4F+AMqtdnJTf92awQQZKdYgg=\r\n=m0s4\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"./index.d.ts","gitHead":"dd91375011841cad8dd36ca7b6b88bac033ce526","scripts":{"test":"node test.js","build":"yarn && tsc && yarn test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"deprecated":"This version has a memory leak bug","repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"9.5.0","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.15.0","dependencies":{"decimal.js":"^10.4.3","@dqbd/tiktoken":"^1.0.6"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.0.4_1682507784828_0.47413238704531246","host":"s3://npm-registry-packages"}},"1.0.5":{"name":"gpt-tokens","version":"1.0.5","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.0.5","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"16e4f8703d0e5a56843f9afba09a1af69e6f0a72","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.0.5.tgz","fileCount":5,"integrity":"sha512-+cm81ksXb22mDWBOy6T/3By095ZTCAGp4WSc6b2hwOjucxsMVW9VN5ICO367ziCF45b9qKFtk1dP6r/u/BFqsA==","signatures":[{"sig":"MEUCIQDrFj/L+xepRBe9dMMIoViLpZn76nAeuOZJxgpMq/lQXwIgLbeD+LIIs2llKbX4jMEup4PqOBLBbs3//dZnSaFwd78=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13147,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSRLLACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrNJw/9Fvg1yg/js6+TYi1yp6AUYblfW6y5irwd/6sjrbQsCFCfXlYt\r\nN7QOGeh7g8d3r2lcjtn5LHWbLlw0CNi98is147GJpSP9NAsj1z9JC0bRBxQs\r\nebCVpGxmRPi9iQ1DULPGoK0yInABG8xjk9eKFZg6Xtaa89LT58LEOgtLt9mO\r\npmQwjxP5ZTFQpiBL3Xtg6v5xEH179GOSXN9jivrDIdR0YSLUowF6fHaJ+oUT\r\nE7c1HZc+mgBDCzYPWy5vvrfv+8y9CgeaKcBhI1MD/Mgum1JDXLH2ZBeic7d+\r\nd5f6Nq5Qnu9un0Xh9EOGPgHiD9oQYTEk1iQ+h6mYlfwhwYpUrUiOMeKHHpFt\r\nhIqka+9SqKMrhPkJB/wBQGoWEMJJqLfqdw2e7FKb7IdxgbTs9qFLAbJgniCH\r\nbEXjmjgd1HOBG58DBAovF0SNi+MT8+/npxcRsUKWar9YM/sXGDOtnOxOp7Vj\r\nMxiA371uiHJwGTwk06wU/MmqbIdfOAAZnb4rYG2W1QDaAQ8+9bET5Cu9LDwL\r\n9HUE1bpWd2Q125ZtXWXR3u+vLeCmol6WTRiIfuR0gKx8zlpRaqSPqieyfJpz\r\nyh3ojivuU0AQd38sw3ryCKOMDwRLR+GYjeHog2OGegrHG05OtkQpw6fmxZT2\r\nFr0NSm4jk/CEWi6G4gaAjXE6uPN+Te51opE=\r\n=GICW\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","gitHead":"056a79c74bfcde51d1b0d324481876a3047a98e2","scripts":{"test":"node test.js","build":"yarn && tsc && yarn test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"deprecated":"This version has a memory leak bug","repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"9.5.0","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.15.0","dependencies":{"decimal.js":"^10.4.3","@dqbd/tiktoken":"^1.0.6"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.0.5_1682510539200_0.9783068907909036","host":"s3://npm-registry-packages"}},"1.0.6":{"name":"gpt-tokens","version":"1.0.6","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.0.6","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"4ce4d55b465ac73b990d56a45240749238ffe51e","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.0.6.tgz","fileCount":7,"integrity":"sha512-+NM7F41xW0MLjuzAW5u/+uQ8PwbrpdWQ2sMDZnVFPO1ClIw1kXbD75U9BL+EKfAkIFgl6lw1d9eCZIDE1C+akA==","signatures":[{"sig":"MEQCIFFypzuh+VvOePXsXh5Qeq22AIF3Qd7Ie4vpwQloju7KAiBqdK0l+ltwkEijkMyEBg0fzGQPNSrw9iZy05JXaLnZ3g==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22809,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkSR7fACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrkrA//a3NK/OooTWo9q+lgxNUiRjgk0kXgfYdWFknpZhojMcktJfKw\r\nfuqqqJSIOZb9JEkVWBedRa+h4tt7LTnufOLoBMAe/vtmvR3crvZuFbJp99Qa\r\nA1Qr0p1UE4ZB2FDe3PynGIZPKz1RUphvb7eEkh7EsZGMtalcf2vk11gWXj/9\r\nssrtJObMsG8SBVpNX4nylkrrOeqbqOfecg+gnMnV+3kRF8XVLfWvaJ2G4/dP\r\nxj7TU3GiZ3v1fTc1jCVTR0P96KZajceMzEIznk3pkinP4YIkKIK9Y2fuY/tf\r\nnmeExqg7ElNwuZ4XvXIFjuL4mEDz1iQPexhAxJDFDohiwNZcrf6ZjLZNlpOj\r\nOp3K71Vvnm8SzBIvqO4w+9ca60qNaXYKkSuzK/VVoM8p2ETejMByvNJaxsY2\r\n8CNV3cp02iOfa0UETl63jjJ5FUWueqT5m3almyGXPvzU5LQRPBhkZ+MHfZsH\r\nMROqD0bWlmb15m6Cp/0ZuMWV+n81nHzXhJ2MF9rxcM0JOFohvV+zO9WXEjus\r\nV0zlPwHtA4nZXh+s8ZwM9LyU5Lu5Z6PnZdmcsoLXRx3Rv5MJaI/FWhDe9EOC\r\nZayZMERLFSWX29YhMiF9OaUuAbNrSMEqLe9bsnkEm7B7gWp9JlVI9Ac+wFj6\r\ng2gp3vF/xQoGFa3fj9tu6xY5X2TAbB556S4=\r\n=extd\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","types":"index.d.ts","module":"index.ts","gitHead":"056a79c74bfcde51d1b0d324481876a3047a98e2","scripts":{"test":"node test.js","build":"yarn && tsc && yarn test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"deprecated":"This version has a memory leak bug","repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"9.5.0","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.15.0","dependencies":{"decimal.js":"^10.4.3","@dqbd/tiktoken":"^1.0.6"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.0.6_1682513631284_0.8867704291498151","host":"s3://npm-registry-packages"}},"1.0.7":{"name":"gpt-tokens","version":"1.0.7","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.0.7","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"f6b0af9853992ed9651a0f09b2cbb8facc1b6032","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.0.7.tgz","fileCount":7,"integrity":"sha512-5XANnpcOZjiSL0HA0G4BSuyTfEP6N+oPbCIr8ICL1l+ftiIq/7Y9sCA83U/KxETxVAc6pQPgEIyNK/PGuLcFwA==","signatures":[{"sig":"MEYCIQC1ky+50mq3qoHYZzUe+8XoqL1iTy8ldhH7KFg1mflZ6QIhAM44OmmN0cDfM3v+JEpFzzMtWIUv6OwYI97Gm+e9s8RE","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22945},"main":"index.js","types":"index.d.ts","module":"index.ts","gitHead":"50a3c73b5e23e19b2592e7bb145dc9e65b2f17cd","scripts":{"test":"node test.js","build":"yarn && tsc && yarn test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"8.19.2","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.12.1","dependencies":{"decimal.js":"^10.4.3","@dqbd/tiktoken":"^1.0.6"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.0.7_1683821267868_0.8313313718453423","host":"s3://npm-registry-packages"}},"1.0.8":{"name":"gpt-tokens","version":"1.0.8","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.0.8","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"a91cd7d02d3b3e274f2cef6924a78f5153add6a4","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.0.8.tgz","fileCount":7,"integrity":"sha512-/ma1bbGpeuF+aBPexnjBl4nqBj1gjr0W6LeWyABkAhDsO9tZom+TN2rJFKBBlN5u7FQEjPTuXWFUAdnswlXp8g==","signatures":[{"sig":"MEQCIFxf3HamV7Y3RyzXjz445qvAz50lqa2ZmDxIlfZd4hTxAiBL73cSxT3bVO6I+VGz8Wuibd0n1HU5Jqlmdh8fUZpXJg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23527},"main":"index.js","types":"index.d.ts","module":"index.ts","gitHead":"47eae2c1a3a2da5532b7c293fbcec7086f2b366b","scripts":{"test":"node test.js","build":"yarn && tsc && yarn test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"9.5.1","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.16.0","dependencies":{"decimal.js":"^10.4.3","@dqbd/tiktoken":"^1.0.6"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.0.8_1686712112843_0.01942582478671029","host":"s3://npm-registry-packages"}},"1.0.9":{"name":"gpt-tokens","version":"1.0.9","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.0.9","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"37e27e54db2346bd45ca478eeaa394257eb112a0","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.0.9.tgz","fileCount":7,"integrity":"sha512-t7qNMDaYJevTgy1HyvFV746eh8L1LFjY7WhgdqCZPOLOVTuNdCZTXq7FLjxOGj3YYh0wyALrlpnoCKi8hKigLQ==","signatures":[{"sig":"MEQCIFIpp77fOJlAmssjU15YWQ8dF5hx4uM7ih06ggy2j52cAiByPTvXMTvz0waSsI/2sB8U6Ou/6XyBTV54wx2ldXvY0w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23069},"main":"index.js","types":"index.d.ts","module":"index.ts","gitHead":"f929736a8c347595c4cffad1431d75bc4fdb64dd","scripts":{"test":"node test.js","build":"yarn && tsc && yarn test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"9.5.1","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.16.0","dependencies":{"decimal.js":"^10.4.3","@dqbd/tiktoken":"^1.0.6"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.0.9_1686797835036_0.7760236747191178","host":"s3://npm-registry-packages"}},"1.0.10":{"name":"gpt-tokens","version":"1.0.10","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.0.10","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"f07f5e33f182e69c9ec6e9de73cbe5bdc32c9542","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.0.10.tgz","fileCount":7,"integrity":"sha512-DNWfqhu+ZAbjTUT76Xc5UBE+e7L0WejsrbiJy+/zgvA2C4697OFN6TLfQY7zaWlay8bNUKqLzbStz0VI0thDtQ==","signatures":[{"sig":"MEQCIAbQdXiQX7MRZvskMPeXDAM9P7lt11ljRhPOFIWPQPJMAiBIG/rW2WVirfH2PpZ4qlIpfALS0hzHrcIVPW+uxhOmKQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23504},"main":"index.js","types":"index.d.ts","module":"index.ts","gitHead":"df93ffbcac939464a917c3432c34415c8c339474","scripts":{"test":"node test.js","build":"yarn && tsc && yarn test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"9.5.1","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.16.0","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.7"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.0.10_1688095643505_0.3805187532999965","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"gpt-tokens","version":"1.1.0","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.1.0","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"02c47bde064873ebd0153d74e6bd202e3b4312b2","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.1.0.tgz","fileCount":7,"integrity":"sha512-93TAG+pCUWFMsOKNH6jERuP88AWA2C3lquV8OdKBZHFPm7KZXPjtpGRl3HFpfnRxY+TvaRIQoU7fIWPZLYPVxg==","signatures":[{"sig":"MEUCIQDTNW4c02ELXQlErjooULP7TW5pUyQExGrQwArXqPewowIgKS5VADoUir7pWJpvwl4ZBVhYABLUPCywAQLZbEYS6WE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":32565},"main":"index.js","types":"index.d.ts","module":"index.ts","gitHead":"676662a0075a11fbe77cf5ce146e3124eae6b2f5","scripts":{"build":"yarn && tsc && node test.js"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"9.5.1","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.16.0","dependencies":{"openai":"^3.3.0","decimal.js":"^10.4.3","js-tiktoken":"^1.0.7"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.1.0_1688972721722_0.3890948302360211","host":"s3://npm-registry-packages"}},"1.1.1":{"name":"gpt-tokens","version":"1.1.1","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.1.1","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"ad5889cc6b6d07b9cdd1e8f219e823025633e096","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.1.1.tgz","fileCount":7,"integrity":"sha512-fB1u0ZH7PywF9FByfWCqn6Hpp3so/pFUmk3AiV4QlOskr57LK8Ds3YJOjdemWKRGJQ+2pT9ikt++Eb+/et9gTQ==","signatures":[{"sig":"MEUCIEpmkCfT9zTtRAA6YQ2j8QJzIbM1OZmhc5G7gYrhdJ18AiEAxfp5tbByCWz0euW1G0pLC2QAzBE1Umx2AskXXQ9/O8s=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33626},"main":"index.js","types":"index.d.ts","module":"index.ts","gitHead":"da3e19f1690bcebdbac7c9a5d7eb845d51035b12","scripts":{"build":"yarn && tsc && node test.js"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"9.1.1","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.12.1","dependencies":{"openai":"^3.3.0","decimal.js":"^10.4.3","js-tiktoken":"^1.0.7"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.1.1_1690101450798_0.9011488218400752","host":"s3://npm-registry-packages"}},"1.1.2":{"name":"gpt-tokens","version":"1.1.2","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.1.2","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"d539c62a5dd13116d943f0361610d6aa58ccb36b","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.1.2.tgz","fileCount":7,"integrity":"sha512-Q/HdIRl6IuljdM649NgOA172IJf+Xv+ulLBoq1r/7GlzNpauXhZVNpsN+y34dVEzpy49XUg74CMR1BaaDvQtoA==","signatures":[{"sig":"MEUCIHKUiCC1vE6AAISwVeI7Alq+SV4ZKx16h817mXHprZW7AiEA2l7+cOKUTWlPNUTsG0cHat3UlD+llkkfgS595ELkd88=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":33975},"main":"index.js","types":"index.d.ts","module":"index.ts","gitHead":"65843e38f21fabad59f6c7e0a254ff71759956a9","scripts":{"build":"yarn && tsc && node test.js"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"9.1.1","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.12.1","dependencies":{"openai":"^3.3.0","decimal.js":"^10.4.3","js-tiktoken":"^1.0.7"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.1.2_1690210191849_0.9764782897461461","host":"s3://npm-registry-packages"}},"1.1.3":{"name":"gpt-tokens","version":"1.1.3","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.1.3","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"dist":{"shasum":"2bb14f3abee285ef3c1db3c7d3f51e71f3d48569","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.1.3.tgz","fileCount":8,"integrity":"sha512-WVG8bcsX/dE+IwEqtSQZNw1cbtnnlTeLg0aiP4ZNM/mMJpoV6CwnPYt5YZPdhxFqgMZVapGSsZsRQBrVJp49iQ==","signatures":[{"sig":"MEYCIQDpVTdNErJJwS1vYotf5V+t8FCem0GiNJ/S8OpxDpglZAIhANslv5XI+1fciVnm8jl6XAiV9vfuT+c7gurKmacoHzYA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":38423},"main":"index.js","types":"index.d.ts","module":"index.ts","scripts":{"build":"yarn && tsc && node test.js"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"https://github.com/Cainier/gpt-tokens","type":"git"},"description":"Calculate the token consumption and amount of openai gpt message","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2023 Cainier\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject 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,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"openai":"^4.6.1","decimal.js":"^10.4.3","js-tiktoken":"^1.0.7"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.1.3_1699421694898_0.5368148037196891","host":"s3://npm-registry-packages"}},"1.2.0":{"name":"gpt-tokens","version":"1.2.0","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.2.0","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"dist":{"shasum":"ae05c205002726d862d379c7ca05f8d6c7953226","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.2.0.tgz","fileCount":8,"integrity":"sha512-bi39NLFhuvDo3dZxtyz1ayznwb/bMq+mOrhZ/kK1Jta9+fpou/h3LA7ZtsiZVzlbSEd4oQXrN74yEAyv2F1xuw==","signatures":[{"sig":"MEQCIAOR5ANxaJWt3gTYBrXTkwdR4czxNi/rLsakl7MqwRE7AiAH5ilGnbjDqTFZYgVS8BalT2hQ16j6Vca528tdRvXaFA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":59609},"main":"index.js","types":"index.d.ts","module":"index.ts","scripts":{"build":"yarn && tsc && node test.js"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"https://github.com/Cainier/gpt-tokens","type":"git"},"description":"Calculate the token consumption and amount of openai gpt message","directories":{},"licenseText":"MIT License\n\nCopyright (c) 2023 Cainier\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject 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,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","dependencies":{"openai":"^4.6.1","decimal.js":"^10.4.3","js-tiktoken":"^1.0.7","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.2.0_1701512867929_0.7713905599469597","host":"s3://npm-registry-packages"}},"1.3.0":{"name":"gpt-tokens","version":"1.3.0","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.0","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"9752d8b32e5edb0987f80536bb00b1aae8300f8b","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.0.tgz","fileCount":7,"integrity":"sha512-ehNYJgX1ymL1uEZTXsZawDOEqEeVIZ5mfjMFyJlr63NH5/Qme/srQAXLbtF2j5Impw2PANSuIC/926AiPkkXag==","signatures":[{"sig":"MEYCIQDaIGvlkRKCfZQ0zC8zRSToHErx3Wrxh/LulWgwDW+vLQIhALwSTY13yncQxVK3ijTOF/0SAvKR9QX/h0o62KCW9cri","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":37226},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"import":"./dist/index.ts","require":"./dist/index.js"}},"gitHead":"6812bdd7b0fb4d411e2e2b64fa1472d6c9d7e4d3","scripts":{"test":"node test.js","build":"npm i && rm -rf dist && tsc && npm run test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"deprecated":"This version contains introduced errors","repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.2.3","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.19.0","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.10","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.0_1708221475531_0.5691603076959948","host":"s3://npm-registry-packages"}},"1.3.1":{"name":"gpt-tokens","version":"1.3.1","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.1","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"6940aee558f0d47b63ad197e3462d2459356d07c","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.1.tgz","fileCount":9,"integrity":"sha512-0VIWT6GE7knv1yMVoCeB+iTGViDtaUe1c9p3vYrNeYPPVJR2NHBb5Z07TZWNkg9AzqQJxSqfglTdkz8m4P+J7g==","signatures":[{"sig":"MEYCIQCVn4/ab8ye2mY8QIjevlx7OfCw8V7d92D+LvhiLeiCnQIhALDh9EOKv6hV2zJr9+DhsUxCYqMJu5AGXDtf6ovu1bj7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20706},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"import":"./dist/index.ts","require":"./dist/index.js"}},"gitHead":"6812bdd7b0fb4d411e2e2b64fa1472d6c9d7e4d3","scripts":{"test":"node test.js","build":"npm i && rm -rf dist && tsc && npm run test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"deprecated":"This version contains introduced errors","repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.2.3","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.19.0","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.10","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.1_1708221687562_0.9353114909520601","host":"s3://npm-registry-packages"}},"1.3.2":{"name":"gpt-tokens","version":"1.3.2","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.2","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"9fdf42ec5de1e2192a66a145899e2127db29d8a5","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.2.tgz","fileCount":9,"integrity":"sha512-kef4GajN/a5tJrx5JK4ujctbIHxOXyyd+I+NNbD0mYG5ZaHkkV3EsjL8r3hi3wOGF41/3n40LtNVBDga333dYw==","signatures":[{"sig":"MEUCIBB2uTr7tGQgq3OZhOgnCPEkVrR7zncM0XWT2nk2PQEAAiEAswm04gIaSxhKOXLINwkpkCKzqpGBaxFFQX6FnuCxL28=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20686},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"import":"./dist/index.ts","require":"./dist/index.js"}},"gitHead":"4956760c9154b15f7d5ecc7efbbac00eb60c43c0","scripts":{"test":"node test.js","build":"npm i && rm -rf dist && tsc && npm run test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"deprecated":"This version contains introduced errors","repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.2.3","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.19.0","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.10","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.2_1708222358635_0.405040223404038","host":"s3://npm-registry-packages"}},"1.3.3":{"name":"gpt-tokens","version":"1.3.3","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.3","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"531ebfc3694e581892aa2ad1e8ab6caf78f9a62c","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.3.tgz","fileCount":9,"integrity":"sha512-4j4GW6kyZtKeZnjUzDEiVi97jsPC+qKe3DQwhZ/QDkU7Dy+9W+KhobZvGDKsrm1je5RWaGjdDJqkpbqYh6ZfWw==","signatures":[{"sig":"MEYCIQCqSsh8/JMlj6fhOEVl5yMN8wwNABR6b3uBGtcygnbeXwIhAIElc4BDYZk3S0mmPXlQd7p5wA7tG9WBw4BpWObhGR+s","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20722},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"c7183ee2021c21edde37865bf9330350ba41c9ef","scripts":{"test":"node test.js","build":"npm i && rm -rf dist && tsc && npm run test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.2.3","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.19.0","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.10","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.3_1708700431669_0.6079151815346548","host":"s3://npm-registry-packages"}},"1.3.4":{"name":"gpt-tokens","version":"1.3.4","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.4","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"a7e4828017321b33d3886e2121cf4cf2bccbcbcb","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.4.tgz","fileCount":9,"integrity":"sha512-S+BPrCtnibdFxIbBcvAdcWOcf7719wzrjB2u+OlzIwmKMhYxO3retXWiWfOkVXf4+NCZ3lLNg1XP84uf0POjfQ==","signatures":[{"sig":"MEYCIQCaFIWRQknHLK9yMCzIsoiNh+OJfgkxLrtGjJ4U43GqFwIhALO5mBXCD6uVHf1i6cfwyf89ckkCI5pwGUgIR8ni1sPe","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20907},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"4e44d440f7c9131e2d7622b8463d2385ac687011","scripts":{"test":"node test.js","build":"npm i && rm -rf dist && tsc && npm run test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.2.3","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.19.0","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.10","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.4_1713231905810_0.4702022760278721","host":"s3://npm-registry-packages"}},"1.3.5":{"name":"gpt-tokens","version":"1.3.5","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.5","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"75fcf4662d7855b1d5b3c2b25ab78456785a364b","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.5.tgz","fileCount":9,"integrity":"sha512-aRZ5fOpyE1ISMtcfL16JyxeGrJPedvNVK5y8/74LYzwpTD2MTJ2P/nhKdgLMsg8ZZu8oNQORRX5L3O1MhWvQ0A==","signatures":[{"sig":"MEUCIQCVedg74dvIUBqwXpuE7jcr71Oe7Yn6Y3fDXBOUw/lxYAIgW2WPZWCG0/AaYRbKvejojshZyZ3x5diWUXcHArTMcM8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":20997},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"f9c7a5addc177e424395e9214d58073018d0a9ae","scripts":{"test":"node test.js","build":"npm i && rm -rf dist && tsc && npm run test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.5.0","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.20.2","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.10","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.5_1715753627948_0.21334805151769554","host":"s3://npm-registry-packages"}},"1.3.6":{"name":"gpt-tokens","version":"1.3.6","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.6","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"b451efade0cb2688013b5da773c671eb30525423","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.6.tgz","fileCount":9,"integrity":"sha512-s9t6+pbAsuk3yH2/ft2b/qemKYPJJuUOTBMGp6aBNuR9woAG11MQzN1slFFUEFeE6rLBUiXIcO6kI95DUf8iDQ==","signatures":[{"sig":"MEUCIQDq3mr8OszmFjEXZOfqCbwtdm+eKqbB5r4N3kOFb1hz2AIgOw7QYoUPEnI3J75PFlRAY7q0tq5rcgyrr1I4WWsxO/U=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21168},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"227456ad3d2d91248a93c6cbdecb8074d677d5b0","scripts":{"test":"node test.js","build":"npm i && rm -rf dist && tsc && npm run test"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.5.0","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"18.20.2","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.10","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.6_1715842231585_0.8062878606176063","host":"s3://npm-registry-packages"}},"1.3.7":{"name":"gpt-tokens","version":"1.3.7","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.7","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"19dba648a8657583784603b2ec96d8d010bf6ccd","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.7.tgz","fileCount":9,"integrity":"sha512-DqvYo1WA3DQ0HXYZ/tZQjJGaZ3uumgMZPAFeWYel3tSSXSJLHjtac0UnjZKD7I8SOPj8vwtj+oCZ/sa+GSGkSg==","signatures":[{"sig":"MEUCIQCW6rdvroPjGeGnAW8wYRtKnK2nQH2Pk9MwR1woRE2iMQIgT7XNxF/jsPfwd15wBav79XQ8OpRtGiPGmxTzXupG4jk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21305},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"f83f2002d60098e2bc00e4efe31bf4e1257f6cf2","scripts":{"test":"node tests/index.js","build":"npm i && rm -rf dist && tsc && npm run test","test:perf":"node tests/perf.js"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.7.0","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"20.15.0","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.12","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.7_1721639436383_0.9124710883811042","host":"s3://npm-registry-packages"}},"1.3.8":{"name":"gpt-tokens","version":"1.3.8","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.8","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"f9963a066c60469a703a4820c487a74976031e12","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.8.tgz","fileCount":9,"integrity":"sha512-B9Xylpb3h+k+hr8NBDZjpB9bi24CXhekMJ9ZnmZ3A7RWUpExxLuccfLoqNF61UiOEz0r+7VT1vxuLatr8E4KuA==","signatures":[{"sig":"MEYCIQDTct2m+8DEyHMGcX2RVD9VxFGp4pk5sqKyrSmFQGTD9gIhAPfqs44Wseu5EKxLhH3u3GN5CHpCZ+AnS4eRwHlqWQoU","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21612},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"13752ff84a8f7de47436ccb7e223533cdf98aade","scripts":{"test":"node tests/index.js","build":"npm i && rm -rf dist && tsc && npm run test","test:perf":"node tests/perf.js"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.7.0","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"20.15.0","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.12","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.8_1722307808758_0.2682778782796156","host":"s3://npm-registry-packages"}},"1.3.9":{"name":"gpt-tokens","version":"1.3.9","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.9","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"88eb0ff48ad60cbbca310a85b5f690ad98b1b789","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.9.tgz","fileCount":9,"integrity":"sha512-JxLo2ot/7opGHmllGg79sByP+QfL0VugPbPOPW6Gokd5zDApZuxvr+3Q2/NKJHdCqIJp6atZdI8Lqqt4XVVmiw==","signatures":[{"sig":"MEUCICAog2lNteI2lUk8LhjmUjwNp9LxWNCA3Yb7NxQ6far+AiEAvggvuWJlDCBvoo9Z4ihUtgLwe7KLHoymhCHmEVdkHTI=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":21896},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"385045c765401b7c7424ea2a01d2acb818a90a80","scripts":{"test":"node tests/index.js","build":"npm i && rm -rf dist && tsc && npm run test","test:perf":"node tests/perf.js"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.8.1","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"20.16.0","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.14","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.9_1725433420717_0.10978820782140031","host":"s3://npm-registry-packages"}},"1.3.10":{"name":"gpt-tokens","version":"1.3.10","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.10","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"f8029fb5eede17458ea296a250d5455bdd12797d","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.10.tgz","fileCount":9,"integrity":"sha512-8znc273Fp6/Gvww7O6XLRO+DEraYw3dT+nKH+KXUHzTmhIO1xQQuNWp8MZ6Gm5A0o7gtUd9sY0Hgq9RR/2Gxog==","signatures":[{"sig":"MEYCIQDxtV2s6C3g3+46x6I1stI0wziCWi0OX+Sb58rqqQEgyQIhAPfI3MnBXEzvUC4psHrv6qDxJK6oeTIRlM6hgB8+RGL+","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22316},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"a3f849969dcf394141c0294f9e01f29614c3646c","scripts":{"test":"node tests/index.js","build":"npm i && rm -rf dist && tsc && npm run test","test:perf":"node tests/perf.js"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.8.1","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"20.16.0","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.14","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.10_1726279957439_0.6804128047039866","host":"s3://npm-registry-packages"}},"1.3.11":{"name":"gpt-tokens","version":"1.3.11","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.11","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"89b6ff89cc19d98e037ef408d8dbbf35d172cda0","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.11.tgz","fileCount":9,"integrity":"sha512-xKHpBkTg70UcK3uIxU3QlfJxDxdkJyQd4yKAPQ2spunzto04P0EajFbjWX2LCiWwTL3FxSwK2zhR2BXqJcaaZw==","signatures":[{"sig":"MEQCIDTKxsPMJN1NT+cdEIrfa8mv1qtVW01rZHRgJ9BpW6BTAiB83DG4JyFSVxr5VQWr4HxzYcLAqmPFdV5NYJeZOvFZZw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22655},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"d7de06fd00400a78e928f4b11e35cdec1e98394e","scripts":{"test":"node tests/index.js","build":"npm i && rm -rf dist && tsc && npm run test","test:perf":"node tests/perf.js"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.8.1","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"20.16.0","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.14","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.11_1728001643452_0.31176443351169136","host":"s3://npm-registry-packages"}},"1.3.12":{"name":"gpt-tokens","version":"1.3.12","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.12","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"ee687163c42a9a82e602d87e404d504231c2b44b","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.12.tgz","fileCount":9,"integrity":"sha512-574AaGJrJvZqxgEKDSWADadp2k1NrjE2V/p0/tKPL1AwHATql4aJv+ULuXhysCN4l6V7/69ys+5E9mcVtR7VcA==","signatures":[{"sig":"MEYCIQC9hIWJU5QJLl1NeH0o7V/RklJMHaUembn/V0RlT/MPAAIhAOpJYFaR9Gsj4k01yJ97O9b1S6F71XoiNGxQs0pSL7mR","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":22836},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"27d93ffc48d645f057318a61919b43aa55766274","scripts":{"test":"node tests/index.js","build":"npm i && rm -rf dist && tsc && npm run test","test:perf":"node tests/perf.js"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.8.1","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"20.16.0","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.15","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.12_1728613948869_0.2995225728449802","host":"s3://npm-registry-packages"}},"1.3.13":{"name":"gpt-tokens","version":"1.3.13","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","_id":"gpt-tokens@1.3.13","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"homepage":"https://github.com/Cainier/gpt-tokens#readme","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"dist":{"shasum":"dc4258369f9f4ad719fb5a2491d5e841ac4d4018","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.13.tgz","fileCount":9,"integrity":"sha512-f1s9yc7jn2XCuy4jdeDJ5eaLwg1/fYKaLCxSE9osCQbQeBmoULr8XLNYYz4fr5ZzXzJH25m/9QwgUY0DCkUagA==","signatures":[{"sig":"MEUCIQCKy6h6q5dSqBOrfXB5ziGhsAL9tboPF1vOZDIhrR0iqwIgX4Jle9jmKd6ex+dr0YdtuqINBy7ruYv+CmVL3+NwMXY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23009},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"gitHead":"680833878257e249e6e5a66ff782f8ac5130d4b0","scripts":{"test":"node tests/index.js","build":"npm i && rm -rf dist && tsc && npm run test","test:perf":"node tests/perf.js"},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"repository":{"url":"git+https://github.com/Cainier/gpt-tokens.git","type":"git"},"_npmVersion":"10.8.2","description":"Calculate the token consumption and amount of openai gpt message","directories":{},"_nodeVersion":"20.18.1","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.15","openai-chat-tokens":"^0.2.8"},"_hasShrinkwrap":false,"devDependencies":{"openai":"^4.28.0","typescript":"^5.0.4","@types/node":"^12.20.0"},"_npmOperationalInternal":{"tmp":"tmp/gpt-tokens_1.3.13_1735111532912_0.8788312909155713","host":"s3://npm-registry-packages-npm-production"}},"1.3.14":{"name":"gpt-tokens","version":"1.3.14","description":"Calculate the token consumption and amount of openai gpt message","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"scripts":{"test":"node tests/index.js","test:perf":"node tests/perf.js","build":"npm i && rm -rf dist && tsc && npm run test"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.js","require":"./dist/index.js"}},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.ts","repository":{"type":"git","url":"git+https://github.com/Cainier/gpt-tokens.git"},"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","dependencies":{"decimal.js":"^10.4.3","js-tiktoken":"^1.0.15","openai-chat-tokens":"^0.2.8"},"devDependencies":{"@types/node":"^12.20.0","openai":"^4.28.0","typescript":"^5.0.4"},"_id":"gpt-tokens@1.3.14","gitHead":"78bbe778256a1dc2e242be642422f4c6da140d78","bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"homepage":"https://github.com/Cainier/gpt-tokens#readme","_nodeVersion":"20.18.1","_npmVersion":"10.8.2","dist":{"integrity":"sha512-cFNErQQYGWRwYmew0wVqhCBZxTvGNr96/9pMwNXqSNu9afxqB5PNHOKHlWtUC/P4UW6Ne2UQHHaO2PaWWLpqWQ==","shasum":"e468ecdb16ae2c5f07ae05ba62471429b6b95ff1","tarball":"https://registry.npmjs.org/gpt-tokens/-/gpt-tokens-1.3.14.tgz","fileCount":9,"unpackedSize":23234,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIHcJK9RuwJpDPeme/MT4+lHhsUDE8VuMhO3dIjOmrFUIAiEA/fo6JI4YzPOT1PCHXQZy1pWQzA/scL7U1RcVFGSR4yA="}]},"_npmUser":{"name":"cainier","email":"xingrong.dev@gmail.com"},"directories":{},"maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gpt-tokens_1.3.14_1739096682640_0.17894640891909575"},"_hasShrinkwrap":false}},"time":{"created":"2023-04-17T10:03:58.512Z","modified":"2025-02-09T10:24:43.012Z","1.0.0":"2023-04-17T10:03:58.672Z","1.0.1":"2023-04-17T10:15:32.066Z","1.0.2":"2023-04-17T10:45:13.789Z","1.0.3":"2023-04-19T07:30:19.397Z","1.0.4":"2023-04-26T11:16:24.978Z","1.0.5":"2023-04-26T12:02:19.388Z","1.0.6":"2023-04-26T12:53:51.451Z","1.0.7":"2023-05-11T16:07:48.052Z","1.0.8":"2023-06-14T03:08:33.004Z","1.0.9":"2023-06-15T02:57:15.268Z","1.0.10":"2023-06-30T03:27:23.656Z","1.1.0":"2023-07-10T07:05:21.946Z","1.1.1":"2023-07-23T08:37:30.951Z","1.1.2":"2023-07-24T14:49:52.016Z","1.1.3":"2023-11-08T05:34:55.114Z","1.2.0":"2023-12-02T10:27:48.094Z","1.3.0":"2024-02-18T01:57:55.717Z","1.3.1":"2024-02-18T02:01:27.778Z","1.3.2":"2024-02-18T02:12:38.790Z","1.3.3":"2024-02-23T15:00:31.807Z","1.3.4":"2024-04-16T01:45:06.023Z","1.3.5":"2024-05-15T06:13:48.107Z","1.3.6":"2024-05-16T06:50:31.740Z","1.3.7":"2024-07-22T09:10:36.545Z","1.3.8":"2024-07-30T02:50:09.007Z","1.3.9":"2024-09-04T07:03:40.881Z","1.3.10":"2024-09-14T02:12:37.617Z","1.3.11":"2024-10-04T00:27:23.632Z","1.3.12":"2024-10-11T02:32:29.039Z","1.3.13":"2024-12-25T07:25:33.096Z","1.3.14":"2025-02-09T10:24:42.827Z"},"bugs":{"url":"https://github.com/Cainier/gpt-tokens/issues"},"author":{"name":"Cainier","email":"xingrong.dev@gmail.com"},"license":"MIT","homepage":"https://github.com/Cainier/gpt-tokens#readme","keywords":["gpt","chatGPT","openai","tiktoken","token","tokens","consumption","amount"],"repository":{"type":"git","url":"git+https://github.com/Cainier/gpt-tokens.git"},"description":"Calculate the token consumption and amount of openai gpt message","maintainers":[{"name":"cainier","email":"xingrong.dev@gmail.com"}],"readme":"# gpt-tokens\n\n[![TypeScript](https://img.shields.io/badge/TypeScript-Ready-blue.svg)](https://www.typescriptlang.org/)\n\n> GPT tokens / price Calculate\n\n## Install\n\n```bash\n# npm or yarn\n\nnpm install gpt-tokens\nyarn add gpt-tokens\n```\n\n## Support\n\n### Basic Models\n\n* gpt-3.5-turbo\n* gpt-3.5-turbo-16k\n* gpt-4\n* gpt-4-32k\n* gpt-4-turbo-preview\n* gpt-3.5-turbo-0301\n* gpt-3.5-turbo-0613\n* gpt-3.5-turbo-1106\n* gpt-3.5-turbo-0125\n* gpt-3.5-turbo-16k-0613\n* gpt-4-0314\n* gpt-4-0613\n* gpt-4-32k-0314\n* gpt-4-32k-0613\n* gpt-4-1106-preview\n* gpt-4-0125-preview\n* gpt-4-turbo-2024-04-09\n* gpt-4-turbo\n* gpt-4o\n* gpt-4o-2024-05-13\n* gpt-4o-2024-08-06\n* gpt-4o-2024-11-20\n* gpt-4o-mini\n* gpt-4o-mini-2024-07-18\n* o1\n* o1-preview\n* o1-preview-2024-09-12\n* o1-mini\n* o1-mini-2024-09-12\n* o3-mini\n* chatgpt-4o-latest\n\n### Fine Tune Models\n\n* ft:gpt-3.5-turbo:xxx\n\n### Others\n\n* Fine tune training (Not rigorously tested)\n* Function calling (Not rigorously tested)\n\n## Usage\n\n### Basic chat messages\n\n```typescript\nimport { GPTTokens } from 'gpt-tokens'\n\nconst usageInfo = new GPTTokens({\n    model   : 'gpt-3.5-turbo-1106',\n    messages: [\n        { 'role' :'system', 'content': 'You are a helpful, pattern-following assistant that translates corporate jargon into plain English.' },\n        { 'role' :'user',   'content': 'This late pivot means we don\\'t have time to boil the ocean for the client deliverable.' },\n    ]\n})\n\nconsole.info('Used tokens: ', usageInfo.usedTokens)\nconsole.info('Used USD: ',    usageInfo.usedUSD)\n```\n\n### Fine tune training\n\n```typescript\nimport { GPTTokens } from 'gpt-tokens'\n\nconst usageInfo = new GPTTokens({\n    model   : 'gpt-3.5-turbo-1106',\n    training: {\n        data  : fs\n                .readFileSync(filepath, 'utf-8')\n                .split('\\n')\n                .filter(Boolean)\n                .map(row => JSON.parse(row)),\n        epochs: 7,\n    },\n})\n\nconsole.info('Used tokens: ', usageInfo.usedTokens)\nconsole.info('Used USD: ',    usageInfo.usedUSD)\n```\n\n### Fine tune chat messages\n\n```typescript\nimport { GPTTokens } from 'gpt-tokens'\n\nconst usageInfo = new GPTTokens({\n    fineTuneModel: 'ft:gpt-3.5-turbo-1106:opensftp::8IWeqPit',\n    messages     : [\n        { role: 'system', content: 'You are a helpful assistant.' },\n    ],\n})\n\nconsole.info('Used tokens: ', usageInfo.usedTokens)\nconsole.info('Used USD: ',    usageInfo.usedUSD)\n```\n\n### Function calling\n\n```typescript\nimport { GPTTokens } from 'gpt-tokens'\n\nconst usageInfo = new GPTTokens({\n    model   : 'gpt-3.5-turbo-1106',\n    messages: [\n        { role: 'user', content: 'What\\'s the weather like in San Francisco and Paris?' },\n    ],\n    tools   : [\n        {\n            type    : 'function',\n            function: {\n                name       : 'get_current_weather',\n                description: 'Get the current weather in a given location',\n                parameters : {\n                    type      : 'object',\n                    properties: {\n                        location: {\n                            type       : 'string',\n                            description: 'The city and state, e.g. San Francisco, CA',\n                        },\n                        unit    : {\n                            type: 'string',\n                            enum: ['celsius', 'fahrenheit'],\n                        },\n                    },\n                    required  : ['location'],\n                },\n            },\n        },\n    ]\n})\n\nconsole.info('Used tokens: ', usageInfo.usedTokens)\nconsole.info('Used USD: ',    usageInfo.usedUSD)\n```\n\n## Calculation method\n\n### Basic chat messages\n\n> Tokens calculation rules for prompt and completion:\n>\n> If the role of the last element of messages is not assistant, the entire messages will be regarded as a prompt, and **all content** will participate in the calculation of tokens\n>\n> If the role of the last element of messages is assistant, the last message is regarded as the completion returned by openai, and **only the 'content' content** in the completion participates in the calculation of tokens\n\nVerify the function above in [openai-cookbook](https://github.com/openai/openai-cookbook/blob/main/examples/How_to_count_tokens_with_tiktoken.ipynb)\n\n![openai-cookbook.png](openai-cookbook.png)\n\n### Function calling\n\nThanks for hmarr\n\nhttps://hmarr.com/blog/counting-openai-tokens/\n\n## Test in your project\n\n```bash\nnode test.js yourOpenAIAPIKey\n```\n\n## Dependencies\n\n- [js-tiktoken](https://github.com/dqbd/tiktoken)\n- [openai-chat-tokens](https://github.com/hmarr/openai-chat-tokens#readme)\n","readmeFilename":"README.md"}