{"_id":"huggingface","_rev":"7-40acff0f89ec94a97967610df4c3fa5f","name":"huggingface","dist-tags":{"latest":"1.4.0"},"versions":{"1.0.0":{"version":"1.0.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=14"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"huggingface","author":{"name":"Tim Mikeladze","email":"tim.mikeladze@gmail.com"},"description":"Typescript wrapper for the Hugging Face Inference API","repository":{"type":"git","url":"git+https://github.com/TimMikeladze/huggingface.git"},"keywords":["hugging face","hugging face typescript","huggingface","huggingface-inference-api","huggingface-inference-api-typescript"],"module":"dist/huggingface.esm.js","size-limit":[{"path":"dist/huggingface.cjs.production.min.js","limit":"10 KB"},{"path":"dist/huggingface.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"7.0.8","husky":"8.0.1","size-limit":"7.0.8","tsdx":"0.14.1","tslib":"2.4.0","typescript":"4.7.4"},"resolutions":{"node-notifier":">=8.0.1"},"dependencies":{"isomorphic-unfetch":"3.1.0"},"gitHead":"7ed79d12b91c7aa579e3b20da219401d4b32d83a","bugs":{"url":"https://github.com/TimMikeladze/huggingface/issues"},"homepage":"https://github.com/TimMikeladze/huggingface#readme","_id":"huggingface@1.0.0","_nodeVersion":"14.18.3","_npmVersion":"8.11.0","dist":{"integrity":"sha512-QrWU+vz3eC9682ohwkXEOc0QjIMwVj0dCzrDY4Hevwf8wV8S1TD/GfqRybLt5RRBKInF08RHpaDJDD5xrpU9ew==","shasum":"a74d7914abffad92633ee930cbe4d93d34eec80c","tarball":"https://registry.npmjs.org/huggingface/-/huggingface-1.0.0.tgz","fileCount":14,"unpackedSize":194108,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICMa4bG9iD2+OXxuFg/zh7tNxi14/Rvyq7kC2DuG8+AXAiEAg5rQhx8H42dvMLDcSCLvILTk1qvxfKa72n3+lblUd9c="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiuwENACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqM0Q//Xok+EWAyTxMGs6SmcrAV5lQ9Y+4wKHnP2OBA3kxmxRSMMLyS\r\nxwndxlWQjiB/0uu3YsRtKfcpECKaKRJKlmlRwxcfnZm+DOdT+uSun9w7gyNs\r\nRkvGKYGspFKc2qWRCSj5gFyIrMvBLcx2RoyRpOPtMlBDIya3+wQTqiGJmV1v\r\nATlIdqFldUmMYGqJXcl/x7OdjNRZZ59VbgE+1cXPZrLvGzG35Thyc9yFyqFu\r\ncQtgGP+s0i4RoL+ekouub0+v5eYe+v84TF3ThqOgT8wH6SQxldDXZ3/LzYAl\r\nDcQ2c8SMxTgcB5suvEUy5VWL6q154rD0kUrBivBu04o+sP1n0GtVVJuf/lRZ\r\nsvchLvR0T9WQ+Fl5acmfp++I6YIJ6bl8OTkxYiQlxlauRPEKAuEpsN46ZRK1\r\nTfRaOgpMCC+kPVuWXPT33d1nOwJthVrocwBXmWYNqewQcCCWd9ky4EezyyuM\r\n7sw8T/kGErdD/BrLGI6kFSV5IM+QjLhUzPoOqgnvisAfIdIvV8m4dlGdwlx8\r\ndKNBpmMtclHiy9NktUn8xjJsc7us8e3ZQt9OiWVbfpynwQI0omk6IGcf9Bjw\r\nK1LF3Q0xk2O28GBg8sIhFV8OOZSkfpFN2nmP7l5M/2K8RnBumxiJUVAsmYpe\r\n3zfp4hbw3PrQVgtdDY8GE0dsZpszOG/a2Cg=\r\n=Ly0E\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"},"directories":{},"maintainers":[{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/huggingface_1.0.0_1656422669070_0.653004482738242"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.1.0":{"version":"1.1.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=14"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"huggingface","author":{"name":"Tim Mikeladze","email":"tim.mikeladze@gmail.com"},"description":"Typescript wrapper for the Hugging Face Inference API","repository":{"type":"git","url":"git+https://github.com/TimMikeladze/huggingface.git"},"keywords":["hugging face","hugging face typescript","huggingface","huggingface-inference-api","huggingface-inference-api-typescript"],"module":"dist/huggingface.esm.js","size-limit":[{"path":"dist/huggingface.cjs.production.min.js","limit":"10 KB"},{"path":"dist/huggingface.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"7.0.8","husky":"8.0.1","size-limit":"7.0.8","tsdx":"0.14.1","tslib":"2.4.0","typescript":"4.7.4"},"resolutions":{"node-notifier":">=8.0.1"},"dependencies":{"isomorphic-unfetch":"3.1.0"},"gitHead":"9dd41b6fdf377da90b421fc906d3b61b84f9c3ea","bugs":{"url":"https://github.com/TimMikeladze/huggingface/issues"},"homepage":"https://github.com/TimMikeladze/huggingface#readme","_id":"huggingface@1.1.0","_nodeVersion":"14.18.3","_npmVersion":"8.11.0","dist":{"integrity":"sha512-yy8hKvtVqwiSaqnc9jZZxVBNrbqUPkfVAQuRngFrE0diVy94JXPk1wvXaoxGd9QNRJCwrGQGH8ZP9IYAGDW6+g==","shasum":"61f3099e671535c280ce68fabb9813c9b2df9a2b","tarball":"https://registry.npmjs.org/huggingface/-/huggingface-1.1.0.tgz","fileCount":14,"unpackedSize":195882,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBQ3n8F4Pr1Too8TF3nCAdNLKCf6PYrYGRapGpW458beAiEAubCX6LBbslmYQ7iFxKhiG9qlJjZaaDorJZiJvdkk7kA="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivDqlACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqNnhAAjnoHHgrx8R5ySbzDTqz6bFur3zilGIsDx+OWOUh42psZs1/+\r\nPuEw7dejunc0pNdEnWvT2xMDd5EwnnGb6vomXbCDUmP6UjkUVsf9bD8cShCX\r\nsd+PP/A9yAwYPEFC3CkIQK7ovhONkQ9S1KC5X8ChoHFAuAHlg/3HCbq0xPLx\r\nL8eClTgQ6mJTbhwe180MSAv76imPEMoGSeM9PMn4uZO2dbaJHx/T+TO+/1I8\r\nuJPTczOWE9g0hd7wxT/OQAMYy4HJaGPee0NO5nj9KXes+73LvmVZCtWOkVbV\r\nVtb/jStS5UcWsfrO54/htDqVnB3RPC6KGG+YYBTn2Yk6jqELr6i90F1U4fcN\r\nXOl01/aolMqzAoX3u81ZqZ4ZC2H44ctM1R2Sva6dgzprqw68nFreVr5asfa6\r\nSy8Hwn3Czp4buguUcrOPxds3ki9z0lEwhhuzAaBg3/9HGmC9c6/0JSnPEwjn\r\nNE3Aw3AkxHjBK6iSynUvC96V6ddJs9NOjSZ4TrnmCRszJnhtr8xAhj6U+p9a\r\nqxc/tKdCQLATVsxtEPDDAxBvDHejQhQ3GujUrpkLTi3YSfFS/B2LUp4tVJaz\r\nxa2Y7pf7grrl0XT1UBq/F7w+MYlh7lsUeNsw89qLYlLCjFvS3actEXAggBk6\r\n6/wtlZ/nt4uFtKwJ4opcL/iGyQvgCcs9a70=\r\n=UrFY\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"},"directories":{},"maintainers":[{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/huggingface_1.1.0_1656502949758_0.09364543525358648"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.1.1":{"version":"1.1.1","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=14"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why"},"peerDependencies":{},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"huggingface","author":{"name":"Tim Mikeladze","email":"tim.mikeladze@gmail.com"},"description":"Typescript wrapper for the Hugging Face Inference API","repository":{"type":"git","url":"git+https://github.com/TimMikeladze/huggingface.git"},"keywords":["hugging face","hugging face typescript","huggingface","huggingface-inference-api","huggingface-inference-api-typescript"],"module":"dist/huggingface.esm.js","size-limit":[{"path":"dist/huggingface.cjs.production.min.js","limit":"10 KB"},{"path":"dist/huggingface.esm.js","limit":"10 KB"}],"devDependencies":{"@size-limit/preset-small-lib":"7.0.8","husky":"8.0.1","size-limit":"7.0.8","tsdx":"0.14.1","tslib":"2.4.0","typescript":"4.7.4"},"resolutions":{"node-notifier":">=8.0.1"},"dependencies":{"isomorphic-unfetch":"3.1.0"},"gitHead":"b52374638551546c5ca55102009b2c06b79ece59","bugs":{"url":"https://github.com/TimMikeladze/huggingface/issues"},"homepage":"https://github.com/TimMikeladze/huggingface#readme","_id":"huggingface@1.1.1","_nodeVersion":"14.18.3","_npmVersion":"8.11.0","dist":{"integrity":"sha512-6SOGAGLQeN3rwGSinCsUwpMC6ZOYl6PqegVkCNidH9EpD6JONM4AeSADDibzg0Rvvw849OXr/TcxtNjBr5K/IQ==","shasum":"a76677a8df3358fad2270ca29c1f40acc21c9e46","tarball":"https://registry.npmjs.org/huggingface/-/huggingface-1.1.1.tgz","fileCount":14,"unpackedSize":196128,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEgeD4eUtmwLAOP6KWmLHPw8Zg5UZSsOMeBOjIguiyYSAiA1o5RKBoNcRuqjwcxjX1M3CBWmcOPuLSsNWy/ncdFFOw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJivDtBACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoSEA//bWTuqoRVGiPkmtKhmw+HWcdNDBQEYm/wYRF6SrK9+qY5EDdW\r\nqTuqviXKLFcIOb9zVSigKhABEf92q4RrnIA2EEPpmVpOLfB45aALc9EThuAs\r\nfw1uAI8CNo5b0rUGdIdZ//1ILmhKM9bN9GujsDgGTbL1wMyJIUyGm+5ilst3\r\nnC8OYGwW2FNs3m8NJoN8zbH6GedWKIo7DJnKOLZJ4E8P7fQ6+R8TK7Er4LKS\r\n5lERUjNxnZ+6Q3SgCPLTqV9m5qDO/FP9DwzdKaTi2axm54dI8VokEf4YukHW\r\nk1KFoevm1iWM3tQKWK/aDwA4Ziy6fbfAWpMWoOq5XkK7aMT/T40eHMm+idNL\r\nZ40siSjDhivGPGC/kmeFS0Yow457ZujLeFNvLe27tcYYvWU63dLAJmiICMNN\r\nGflNEZ5056JiiuRRjJi/a8yDjVEmZJqX8NmqQ0PAi5W9ARwWC+Fvi9ViBMub\r\nmiIl8qzwEwPAHhmnHOoeYeeU1TWHoft82ROllzADudQMZm63XjZ+ab1OK5az\r\nojfsE/h/ZSbIU74VLxkndNxaOkgSFRgfdzQe/Vd3t4gNvrl2FnPAEuy2fQL4\r\nwlAs9eq4JPjZMAoodSmJtHbqc9ArtQxD1OoNccVfHB9AObjOXGaPuawTRnhd\r\nhM9V1tORflS/Mq9u9KKQolZLmZkxNZKwSUE=\r\n=b8co\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"},"directories":{},"maintainers":[{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/huggingface_1.1.1_1656503105672_0.4392836965401501"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.1.2":{"version":"1.1.2","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=14"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why","release":"yarn release-it"},"peerDependencies":{},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"huggingface","author":{"name":"Tim Mikeladze","email":"tim.mikeladze@gmail.com"},"description":"Typescript wrapper for the Hugging Face Inference API","repository":{"type":"git","url":"git+https://github.com/TimMikeladze/huggingface.git"},"keywords":["hugging face","hugging face typescript","huggingface","huggingface-inference-api","huggingface-inference-api-typescript"],"module":"dist/huggingface.esm.js","size-limit":[{"path":"dist/huggingface.cjs.production.min.js","limit":"10 KB"},{"path":"dist/huggingface.esm.js","limit":"10 KB"}],"release-it":{"git":{"commitMessage":"chore(release): v${version}"},"github":{"release":true},"npm":{"publish":false}},"devDependencies":{"@size-limit/preset-small-lib":"7.0.8","husky":"8.0.1","release-it":"15.4.2","size-limit":"7.0.8","tsdx":"0.14.1","tslib":"2.4.0","typescript":"4.7.4"},"resolutions":{"node-notifier":">=8.0.1"},"dependencies":{"isomorphic-unfetch":"3.1.0"},"gitHead":"0163f61c79ce43fbdaace580e233948e0879b8b8","bugs":{"url":"https://github.com/TimMikeladze/huggingface/issues"},"homepage":"https://github.com/TimMikeladze/huggingface#readme","_id":"huggingface@1.1.2","_nodeVersion":"14.18.3","_npmVersion":"8.11.0","dist":{"integrity":"sha512-AJSe6Nr9+Qla6gixZB48dcA9wYf/wiVFznivqDJLPTmEl3bTXU1VGE9hstFa+D1eyg3PC/mZ68xP2lmzT7uCiQ==","shasum":"70c0698eb3f049801662d101c239d7ba95b28ad9","tarball":"https://registry.npmjs.org/huggingface/-/huggingface-1.1.2.tgz","fileCount":14,"unpackedSize":197590,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDJa806pD2aSX3+ObryUKHNl3wVCG7U2Y6A0xcgGOB8UAiEAtqsp7y0K1cV1SQNxAZiY9MSyttWhKtvi85XUjekwo+A="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjLHq7ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrOEg//eqE52IBrPsz1U9H5xVLmX+zN8dNff7M0ylGpSvRIdrrjTN+G\r\n33LCM7Cw+8hspzXBm6p9U24P9M2KfP4+RShIkvkIbz5Uxmxnj0/nDa5MpaL7\r\nhTgKWOotoTRX33nx9r+06xsEri1hMd5FDDcT3KIUPO3KJ7v/qWtV+xWoLRkS\r\n8AwrTl8rF/msRy6sWeWvM5ubVXtBg2CXE3ydR7FTldgdzRk5AawLwLPzUCnF\r\nn7FQievd79thNHViBsKtYtqXl3LJYuAPVLKZMvYdv6GWxZQ2X2SruhvWVhHx\r\nzoOvHiTiD5yfSCZre2aAuh9KrJ8kAiLYMooT8F0qM7OJvph1tYsQcyX5AxA8\r\nLvyKO6sA+p3I4W2EtixSY0FnIKT9k6Q9/xu9Zi/iA2+idL5ZaikHFeHxo+bg\r\npAHRoWep9wdcm86kmGX/3Nr/YQnF2I7gVppyTFyBNPhYgajp+lYj4mAfb3f1\r\nu0juqnsjgmnwRjHubLKSbU2GdrqxXruiqv/buksLHh4mBPlY1PmiG0uVRuTS\r\nemXtpY0GCfBSWURX9o/jEN+suglajpKnCDOJrwJD11ijUARyZm4QwV0i/+KU\r\n2wfuMGU2ZJyWxZI+h4zXwE91MhcFgLnZHNuVFO0PXrVtZiP3Vi9VcEjp4jdA\r\nkq6DvyQI8U553uu5ss94TZ5v4DXTzePANxM=\r\n=UOkE\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"},"directories":{},"maintainers":[{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/huggingface_1.1.2_1663859386857_0.23572271839548953"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.2.0":{"version":"1.2.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=14"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why","release":"yarn release-it"},"peerDependencies":{},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"huggingface","author":{"name":"Tim Mikeladze","email":"tim.mikeladze@gmail.com"},"description":"Typescript wrapper for the Hugging Face Inference API","repository":{"type":"git","url":"git+https://github.com/TimMikeladze/huggingface.git"},"keywords":["hugging face","hugging face typescript","huggingface","huggingface-inference-api","huggingface-inference-api-typescript"],"module":"dist/huggingface.esm.js","size-limit":[{"path":"dist/huggingface.cjs.production.min.js","limit":"10 KB"},{"path":"dist/huggingface.esm.js","limit":"10 KB"}],"release-it":{"git":{"commitMessage":"chore(release): v${version}"},"github":{"release":true},"npm":{"publish":false}},"devDependencies":{"@size-limit/preset-small-lib":"7.0.8","husky":"8.0.1","release-it":"15.4.2","size-limit":"7.0.8","tsdx":"0.14.1","tslib":"2.4.0","typescript":"4.7.4"},"resolutions":{"node-notifier":">=8.0.1"},"dependencies":{"isomorphic-unfetch":"3.1.0"},"gitHead":"0ed4a54066bc4b9acebf9d6318ecb8df54f685a3","bugs":{"url":"https://github.com/TimMikeladze/huggingface/issues"},"homepage":"https://github.com/TimMikeladze/huggingface#readme","_id":"huggingface@1.2.0","_nodeVersion":"14.18.3","_npmVersion":"8.11.0","dist":{"integrity":"sha512-PTKmn9vPchDcjFl/L2UFNVEk9/UhEijalTI167kgraGKBFN5S5v+HPL2DfBRMR2wFnso8TBIe4W6tRg7k3UhPg==","shasum":"14ddbbf8c7567372ddd32c0e66fb38f0408e52a3","tarball":"https://registry.npmjs.org/huggingface/-/huggingface-1.2.0.tgz","fileCount":14,"unpackedSize":226981,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDcSSBaFwQG9odUCb4RCuh7YXpdw+a0DuLrbCViG8nf8AIgfrnHsyk+Du09ClCLKlgLRD8v40R+FgxnguipFMSPr0U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMsBHACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrHiw/8DGaxanAXIQ3Cp0gWmSJAAUO80JAoPbMbGMXD7yMLN1OVmTXv\r\nCO46w+BN0NrgvD82/ID5sakQN82PzEzoHifvtNqXDhgqHmgPqNv2bPb5YYAH\r\nAjlT1nqLVMtKpQ9TGDUmf/e5+IQW6cHkzfZYv8wIbw877SgNr/CIL2p8ANw3\r\nmRYvNdteYaC+zAUmxDwRXpFj0ir//DOxoSvndxgNGlVZNkH5p3g4BWK/Jr3a\r\niBn8PQGsHAkabuu71iG9T5tIYE0oPhCmUlKF7SQ/io6jGod62uA1557Fox/d\r\not5ebl9LDzgWb3vUJ+pQ5KqG9p3N+8D73ntgbVnlB5fkZYVDLy42oHpk3hFx\r\ntekMQ6I7DL86k5u63a6Zp1iYrgE4bko9HSPXGnO0Kc0f6RDNGA2RKpm49//w\r\nTJV4vqtFUHpeCoEQtXOBKnpvaGS7eo1L/XV/YWfW1+XkYXGS8oi+wtN5XPzI\r\nnwv63DiuihxQLaU8E7GB1f3mP23sMP+VtURDVyBLqER+WHPGDEtDkj6dxC36\r\nndzM52TANCc3fnayf8F8FBhYgTMq3XX/gkRVZc2JG+561OSNHsKBPVZttgQQ\r\nMZqXJs/ATGKN/RiYRtXe/5GnSB/DGjLnba7opTsTVTpt5mwnHiCsTqZoS2Rl\r\nAImj57wNbT4gUfvUPLjKvylsxHi7jR+zEbY=\r\n=THLF\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"},"directories":{},"maintainers":[{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/huggingface_1.2.0_1664270407434_0.702130449863658"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.3.0":{"version":"1.3.0","license":"MIT","main":"dist/index.js","typings":"dist/index.d.ts","engines":{"node":">=14"},"scripts":{"start":"tsdx watch","build":"tsdx build","test":"tsdx test","lint":"tsdx lint","prepare":"tsdx build","size":"size-limit","analyze":"size-limit --why","release":"yarn release-it"},"peerDependencies":{},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":80,"semi":true,"singleQuote":true,"trailingComma":"es5"},"name":"huggingface","author":{"name":"Tim Mikeladze","email":"tim.mikeladze@gmail.com"},"description":"Typescript wrapper for the Hugging Face Inference API","repository":{"type":"git","url":"git+https://github.com/TimMikeladze/huggingface.git"},"keywords":["hugging face","hugging face typescript","huggingface","huggingface-inference-api","huggingface-inference-api-typescript"],"module":"dist/huggingface.esm.js","size-limit":[{"path":"dist/huggingface.cjs.production.min.js","limit":"10 KB"},{"path":"dist/huggingface.esm.js","limit":"10 KB"}],"release-it":{"git":{"commitMessage":"chore(release): v${version}"},"github":{"release":true},"npm":{"publish":false}},"devDependencies":{"@size-limit/preset-small-lib":"7.0.8","husky":"8.0.1","release-it":"15.4.2","size-limit":"7.0.8","tsdx":"0.14.1","tslib":"2.4.0","typescript":"4.7.4"},"resolutions":{"node-notifier":">=8.0.1"},"dependencies":{"isomorphic-unfetch":"3.1.0"},"gitHead":"efb42b4177c691970541d13db4e88182b8ff5f2d","bugs":{"url":"https://github.com/TimMikeladze/huggingface/issues"},"homepage":"https://github.com/TimMikeladze/huggingface#readme","_id":"huggingface@1.3.0","_nodeVersion":"14.18.3","_npmVersion":"8.11.0","dist":{"integrity":"sha512-G89npEBbw4jqDl/EcY/ROowcWwgW0hEkuA6VenO9dk77lXJ43kJYXLmaTwNQdYjldazAx/gOWhPaVM4kYgfA3w==","shasum":"3c6b216ccd8d1c932ead59d053313e53c701a5ae","tarball":"https://registry.npmjs.org/huggingface/-/huggingface-1.3.0.tgz","fileCount":14,"unpackedSize":242303,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC9boDF0vS6gbHLmCcNY4mzopVVOZF43BoYBCM4eJ6GwAiEAnB97XUfDNX/aIC9Mcp1CALT1g1qNMaR0FEUDwsfF/2E="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjMtqMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr6rRAAjThHNxb4l66GDlt1WOTRULzSQAwjebtsp2xsh1yXdeBdCXdB\r\n4pTrD5uMxb1x1ou5cd495GSqf0Twc9TqyWN3HtH7N+a9u14CIEkjCTpz2NO+\r\n0oWTFBGqow/EGnlnO5xmRIT507I23OHxNKBHuZKbBgg18ShUfdNVwH4D4NZ+\r\nhVF8BTy6WjsA9tNbyO2RF5yuOlzzW272t+urUmc4N+KLgVaIyrN3phkkGLGN\r\nLhdIbIgWu6ttAWwnqG8bFJzqdYO0UjC7fR8c29nTOo57P/6PaAFQ2zQPrTXZ\r\ncCNdmVSgNkQljU/fgLeeWho62LoqjGcYxmjnjX3zt8HYll1JyowKU7DwtGsw\r\nnSgTEC9GkRTokA4gFEPWRIkCqLYNOvh73k7rgk22mkHAf2wilSBjrks2KaN9\r\nOARHeOhWEpfiGlbzR1JrXopy5hQEZv2ml+/m+1bDb6oSXrL5yLEGIWJ74mGa\r\nEVkLmxByIbaWLM6gOTc6BTlNSZE++fOxQdg6rOrQvPxRYYBVM3upFkvxTP/g\r\n/+KgfWPxnOrz88zt/gmRZotxvTQwyS+HN0GlIxKg/eo/qa1sp5I1FAHStHK+\r\n6ZpjSEzuF/mL+S8ZYZLHd0hf6x0mHruyvGFUAR+rBO8A3M2HVyjRkFabs3te\r\nO06qxOEOivBg1TX6E0DesWjUJWGg3uCpxJM=\r\n=HCHd\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"},"directories":{},"maintainers":[{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/huggingface_1.3.0_1664277131917_0.5419005265442909"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."},"1.4.0":{"name":"huggingface","version":"1.4.0","license":"MIT","author":{"name":"Tim Mikeladze","email":"tim.mikeladze@gmail.com"},"description":"Typescript wrapper for the Hugging Face Inference API","repository":{"type":"git","url":"git+https://github.com/TimMikeladze/huggingface.git"},"keywords":["hugging face","hugging face typescript","huggingface","huggingface-inference-api","huggingface-inference-api-typescript","inference","ai"],"engines":{"node":">=14"},"source":"src/index.ts","types":"dist/index.d.ts","type":"module","exports":{"require":"./dist/index.cjs","default":"./dist/index.modern.js"},"main":"./dist/index.cjs","module":"./dist/index.module.js","unpkg":"./dist/index.umd.js","scripts":{"dev":"microbundle watch src/{index}.ts --target node -f modern","build":"rm -rf dist && microbundle src/{index}.ts","lint":"eslint --fix \"{src,test}/**/*.+(ts|tsx|js|jsx)\" && prettier --write .","test":"yarn node --experimental-vm-modules $(yarn bin jest) --passWithNoTests","test:ci":"yarn test --ci --coverage","type-check":"tsc","release":"release-it","commit":"commit-it"},"release-it":{"git":{"commitMessage":"🔖 | v${version}"},"github":{"release":true},"npm":{"publish":false}},"lint-staged":{"**/*.{ts,js,jsx,tsx}":"eslint --fix","*":"prettier --write"},"husky":{"hooks":{"pre-commit":"lint-staged"}},"devDependencies":{"@types/jest":"29.4.0","@types/node":"18.13.0","@typescript-eslint/eslint-plugin":"5.52.0","@typescript-eslint/parser":"5.52.0","commit-it":"0.0.11","dotenv":"16.0.3","eslint":"8.34.0","eslint-config-standard":"17.0.0","eslint-plugin-import":"2.27.5","eslint-plugin-n":"15.6.1","eslint-plugin-node":"11.1.0","eslint-plugin-promise":"6.1.1","eslint-plugin-typescript-sort-keys":"2.1.0","husky":"8.0.3","jest":"29.4.3","lint-staged":"13.1.2","microbundle":"0.15.1","prettier":"2.8.4","release-it":"15.6.0","ts-jest":"29.0.5","typescript":"4.9.5"},"dependencies":{"isomorphic-unfetch":"4.0.2"},"resolutions":{},"gitHead":"79e5983a2896fd5d75e076c861bb2c080764a8ab","bugs":{"url":"https://github.com/TimMikeladze/huggingface/issues"},"homepage":"https://github.com/TimMikeladze/huggingface#readme","_id":"huggingface@1.4.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-1R79GhEZRkAzpC6KZMJT++V3EhEjODHyOTeVNOjP3zD7p4HZ1rDfuw2ucjIjLWWljGyvxWWASEIvXF2hHqCJzw==","shasum":"04083899f3638d4574528b698d9ad6751516f9a6","tarball":"https://registry.npmjs.org/huggingface/-/huggingface-1.4.0.tgz","fileCount":13,"unpackedSize":167432,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC98QUJIPSPrBPc8M7Ew8zezLsPPRgV+jcAj+yrm0Eq2wIgHjgfIPLRItUFKL8gxEHILO/tpZv1Y+Pg+C1Wi3H0+20="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJj7uksACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrfShAAjXSmwPAWkuS4a2B3jmmhT7r1MSFaDSl+6Y8q3DL0EK/ewBUr\r\nCDuuuyrhtr2usAR1mQKPU7BVivmb9ib0I5z3VBBT36UuJLXERNvZxqxqi1pJ\r\nOM77UE8N8yeQzJUuh5ZiUNfenHQqKaW2DQxqSQzC2/8WLIAKfiB2XwkSt0DO\r\nWR+oC6bzw+kgR6ewbdtJV7qB+jTlKLVW8k/WMmuArj3xC9ZHAOrAwCeFC04H\r\nipJC75V4q3bJ512FYgvQTteql03/AMz5muPCR6/3i77cD3bA4ld3s1CnZBOV\r\nDbeeXLKXZxYHahRAVa1xw9YmhfnFiMqXH8W1ccgHew7Q/mNqg4dkZWUTBpvZ\r\nPmQTOs0TylSY2DLckcTjxyuumfI+SvQOv+kawGnvQUivZdDKLf5219sOfK5K\r\n56/I3F2po/WYAQGzcqAUePOfe5aO17JPGjR0tnIr9IB3YASTKJi54u+e/YcU\r\no5mmW0TO5PZG/rhYFot0XSFctzhR8teJ1qqfJT8QkzU1Mo19KJTf9357dDoh\r\n+aV1wcZXCC3vmMELezknBLOxkpcZ//SF6J0/fqpUKV/l3pp74DXJejU5GWjv\r\nn7GnAfRksv3e2HXFz2LH3ipaaU0tGPTL1wjlWqmC5wV4WYjaPlFagnErEDTx\r\ngS/RpAwz+gFL4hYxmCs8vC2Upe3oyy+Aw/w=\r\n=BcY2\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"},"directories":{},"maintainers":[{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/huggingface_1.4.0_1676601644551_0.19699616489273142"},"_hasShrinkwrap":false,"deprecated":"Package no longer supported. Contact Support at https://www.npmjs.com/support for more info."}},"time":{"created":"2022-06-28T13:24:29.070Z","1.0.0":"2022-06-28T13:24:29.260Z","modified":"2023-03-03T17:48:27.860Z","1.1.0":"2022-06-29T11:42:29.940Z","1.1.1":"2022-06-29T11:45:05.880Z","1.1.2":"2022-09-22T15:09:47.123Z","1.2.0":"2022-09-27T09:20:07.611Z","1.3.0":"2022-09-27T11:12:12.113Z","1.4.0":"2023-02-17T02:40:44.704Z"},"maintainers":[{"name":"tmikeladze","email":"tim.mikeladze@gmail.com"}],"description":"Typescript wrapper for the Hugging Face Inference API","homepage":"https://github.com/TimMikeladze/huggingface#readme","keywords":["hugging face","hugging face typescript","huggingface","huggingface-inference-api","huggingface-inference-api-typescript","inference","ai"],"repository":{"type":"git","url":"git+https://github.com/TimMikeladze/huggingface.git"},"author":{"name":"Tim Mikeladze","email":"tim.mikeladze@gmail.com"},"bugs":{"url":"https://github.com/TimMikeladze/huggingface/issues"},"license":"MIT","readme":"# 🤗 Hugging Face Inference API\n\nA Typescript powered wrapper for the Hugging Face Inference API. Learn more about the Inference API at [Hugging Face](https://huggingface.co/docs/api-inference/index).\n\n## Install\n\n```console\nnpm install huggingface\n\nyarn add huggingface\n\npnpm add huggingface\n```\n\n## Usage\n\n❗**Important note:** Using an API key is optional to get started (simply provide a random string), however you will be rate limited eventually. Join [Hugging Face](https://huggingface.co/join) and then visit [access tokens](https://huggingface.co/settings/tokens) to generate your API key.\n\n### Basic examples\n\n```typescript\nimport HuggingFace from 'huggingface'\n\nconst hf = new HuggingFace('your api key')\n\n// Natural Language\n\nawait hf.fillMask({\n  model: 'bert-base-uncased',\n  inputs: '[MASK] world!'\n})\n\nawait hf.summarization({\n  model: 'facebook/bart-large-cnn',\n  inputs:\n    'The tower is 324 metres (1,063 ft) tall, about the same height as an 81-storey building, and the tallest structure in Paris. Its base is square, measuring 125 metres (410 ft) on each side. During its construction, the Eiffel Tower surpassed the Washington Monument to become the tallest man-made structure in the world, a title it held for 41 years until the Chrysler Building in New York City was finished in 1930.',\n  parameters: {\n    max_length: 100\n  }\n})\n\nawait hf.questionAnswer({\n  model: 'deepset/roberta-base-squad2',\n  inputs: {\n    question: 'What is the capital of France?',\n    context: 'The capital of France is Paris.'\n  }\n})\n\nawait hf.tableQuestionAnswer({\n  model: 'google/tapas-base-finetuned-wtq',\n  inputs: {\n    query: 'How many stars does the transformers repository have?',\n    table: {\n      Repository: ['Transformers', 'Datasets', 'Tokenizers'],\n      Stars: ['36542', '4512', '3934'],\n      Contributors: ['651', '77', '34'],\n      'Programming language': ['Python', 'Python', 'Rust, Python and NodeJS']\n    }\n  }\n})\n\nawait hf.textClassification({\n  model: 'distilbert-base-uncased-finetuned-sst-2-english',\n  inputs: 'I like you. I love you.'\n})\n\nawait hf.textGeneration({\n  model: 'gpt2',\n  inputs: 'The answer to the universe is'\n})\n\nawait hf.tokenClassification({\n  model: 'dbmdz/bert-large-cased-finetuned-conll03-english',\n  inputs: 'My name is Sarah Jessica Parker but you can call me Jessica'\n})\n\nawait hf.translation({\n  model: 't5-base',\n  inputs: 'My name is Wolfgang and I live in Berlin'\n})\n\nawait hf.zeroShotClassification({\n  model: 'facebook/bart-large-mnli',\n  inputs: [\n    'Hi, I recently bought a device from your company but it is not working as advertised and I would like to get reimbursed!'\n  ],\n  parameters: { candidate_labels: ['refund', 'legal', 'faq'] }\n})\n\nawait hf.conversational({\n  model: 'microsoft/DialoGPT-large',\n  inputs: {\n    past_user_inputs: ['Which movie is the best ?'],\n    generated_responses: ['It is Die Hard for sure.'],\n    text: 'Can you explain why ?'\n  }\n})\n\nawait hf.featureExtraction({\n  model: 'sentence-transformers/paraphrase-xlm-r-multilingual-v1',\n  inputs: {\n    source_sentence: 'That is a happy person',\n    sentences: [\n      'That is a happy dog',\n      'That is a very happy person',\n      'Today is a sunny day'\n    ]\n  }\n})\n\n// Audio\n\nawait hf.automaticSpeechRecognition({\n  model: 'facebook/wav2vec2-large-960h-lv60-self',\n  data: readFileSync('test/sample1.flac')\n})\n\nawait hf.audioClassification({\n  model: 'superb/hubert-large-superb-er',\n  data: readFileSync('test/sample1.flac')\n})\n\n// Computer Vision\n\nawait hf.imageClassification({\n  data: readFileSync('test/cheetah.png'),\n  model: 'google/vit-base-patch16-224'\n})\n\nawait hf.objectDetection({\n  data: readFileSync('test/cats.png'),\n  model: 'facebook/detr-resnet-50'\n})\n\nawait hf.imageSegmentation({\n  data: readFileSync('test/cats.png'),\n  model: 'facebook/detr-resnet-50-panoptic'\n})\n```\n\n## Supported APIs\n\n### Natural Language Processing\n\n- [x] Fill mask\n- [x] Summarization\n- [x] Question answering\n- [x] Table question answering\n- [x] Text classification\n- [x] Text generation\n- [x] Text2Text generation\n- [x] Token classification\n- [x] Named entity recognition\n- [x] Translation\n- [x] Zero-shot classification\n- [x] Conversational\n- [x] Feature extraction\n\n### Audio\n\n- [x] Automatic speech recognition\n- [x] Audio classification\n\n### Computer Vision\n\n- [x] Image classification\n- [x] Object detection\n- [x] Image segmentation\n\n## Running tests\n\n```console\nHF_API_KEY=\"your api key\" yarn test\n```\n\n## Options\n\n```typescript\nexport declare class HuggingFace {\n  private readonly apiKey\n  private readonly defaultOptions\n  constructor(apiKey: string, defaultOptions?: Options)\n  /**\n   * Tries to fill in a hole with a missing word (token to be precise). That’s the base task for BERT models.\n   */\n  fillMask(args: FillMaskArgs, options?: Options): Promise<FillMaskReturn>\n  /**\n   * This task is well known to summarize longer text into shorter text. Be careful, some models have a maximum length of input. That means that the summary cannot handle full books for instance. Be careful when choosing your model.\n   */\n  summarization(\n    args: SummarizationArgs,\n    options?: Options\n  ): Promise<SummarizationReturn>\n  /**\n   * Want to have a nice know-it-all bot that can answer any question?. Recommended model: deepset/roberta-base-squad2\n   */\n  questionAnswer(\n    args: QuestionAnswerArgs,\n    options?: Options\n  ): Promise<QuestionAnswerReturn>\n  /**\n   * Don’t know SQL? Don’t want to dive into a large spreadsheet? Ask questions in plain english! Recommended model: google/tapas-base-finetuned-wtq.\n   */\n  tableQuestionAnswer(\n    args: TableQuestionAnswerArgs,\n    options?: Options\n  ): Promise<TableQuestionAnswerReturn>\n  /**\n   * Usually used for sentiment-analysis this will output the likelihood of classes of an input. Recommended model: distilbert-base-uncased-finetuned-sst-2-english\n   */\n  textClassification(\n    args: TextClassificationArgs,\n    options?: Options\n  ): Promise<TextClassificationReturn>\n  /**\n   * Use to continue text from a prompt. This is a very generic task. Recommended model: gpt2 (it’s a simple model, but fun to play with).\n   */\n  textGeneration(\n    args: TextGenerationArgs,\n    options?: Options\n  ): Promise<TextGenerationReturn>\n  /**\n   * Usually used for sentence parsing, either grammatical, or Named Entity Recognition (NER) to understand keywords contained within text. Recommended model: dbmdz/bert-large-cased-finetuned-conll03-english\n   */\n  tokenClassification(\n    args: TokenClassificationArgs,\n    options?: Options\n  ): Promise<TokenClassificationReturn>\n  /**\n   * This task is well known to translate text from one language to another. Recommended model: Helsinki-NLP/opus-mt-ru-en.\n   */\n  translation(\n    args: TranslationArgs,\n    options?: Options\n  ): Promise<TranslationReturn>\n  /**\n   * This task is super useful to try out classification with zero code, you simply pass a sentence/paragraph and the possible labels for that sentence, and you get a result. Recommended model: facebook/bart-large-mnli.\n   */\n  zeroShotClassification(\n    args: ZeroShotClassificationArgs,\n    options?: Options\n  ): Promise<ZeroShotClassificationReturn>\n  /**\n   * This task corresponds to any chatbot like structure. Models tend to have shorter max_length, so please check with caution when using a given model if you need long range dependency or not. Recommended model: microsoft/DialoGPT-large.\n   *\n   */\n  conversational(\n    args: ConversationalArgs,\n    options?: Options\n  ): Promise<ConversationalReturn>\n  /**\n   * This task reads some text and outputs raw float values, that are usually consumed as part of a semantic database/semantic search.\n   */\n  featureExtraction(\n    args: FeatureExtractionArgs,\n    options?: Options\n  ): Promise<FeatureExtractionReturn>\n  /**\n   * This task reads some audio input and outputs the said words within the audio files.\n   * Recommended model (english language): facebook/wav2vec2-large-960h-lv60-self\n   */\n  automaticSpeechRecognition(\n    args: AutomaticSpeechRecognitionArgs,\n    options?: Options\n  ): Promise<AutomaticSpeechRecognitionReturn>\n  /**\n   * This task reads some audio input and outputs the likelihood of classes.\n   * Recommended model:  superb/hubert-large-superb-er\n   */\n  audioClassification(\n    args: AudioClassificationArgs,\n    options?: Options\n  ): Promise<AudioClassificationReturn>\n  /**\n   * This task reads some image input and outputs the likelihood of classes.\n   * Recommended model: google/vit-base-patch16-224\n   */\n  imageClassification(\n    args: ImageClassificationArgs,\n    options?: Options\n  ): Promise<ImageClassificationReturn>\n  /**\n   * This task reads some image input and outputs the likelihood of classes & bounding boxes of detected objects.\n   * Recommended model: facebook/detr-resnet-50\n   */\n  objectDetection(\n    args: ObjectDetectionArgs,\n    options?: Options\n  ): Promise<ObjectDetectionReturn>\n  /**\n   * This task reads some image input and outputs the likelihood of classes & bounding boxes of detected objects.\n   * Recommended model: facebook/detr-resnet-50-panoptic\n   */\n  imageSegmentation(\n    args: ImageSegmentationArgs,\n    options?: Options\n  ): Promise<ImageSegmentationReturn>\n  request(\n    args: Args & {\n      data?: any\n    },\n    options?: Options & {\n      binary?: boolean\n    }\n  ): Promise<any>\n  private static toArray\n}\n\nexport declare type Options = {\n  /**\n   * (Default: false). Boolean to use GPU instead of CPU for inference (requires Startup plan at least).\n   */\n  use_gpu?: boolean\n  /**\n   * (Default: true). Boolean. There is a cache layer on the inference API to speedup requests we have already seen. Most models can use those results as is as models are deterministic (meaning the results will be the same anyway). However if you use a non deterministic model, you can set this parameter to prevent the caching mechanism from being used resulting in a real new query.\n   */\n  use_cache?: boolean\n  /**\n   * (Default: false) Boolean. If the model is not ready, wait for it instead of receiving 503. It limits the number of requests required to get your inference done. It is advised to only set this flag to true after receiving a 503 error as it will limit hanging in your application to known places.\n   */\n  wait_for_model?: boolean\n  /**\n   * (Default: true) Boolean. If a request 503s and wait_for_model is set to false, the request will be retried with the same parameters but with wait_for_model set to true.\n   */\n  retry_on_error?: boolean\n}\nexport declare type Args = {\n  model: string\n}\nexport declare type FillMaskArgs = Args & {\n  inputs: string\n}\nexport declare type FillMaskReturn = {\n  /**\n   * The probability for this token.\n   */\n  score: number\n  /**\n   * The id of the token\n   */\n  token: number\n  /**\n   * The string representation of the token\n   */\n  token_str: string\n  /**\n   * The actual sequence of tokens that ran against the model (may contain special tokens)\n   */\n  sequence: string\n}[]\nexport declare type SummarizationArgs = Args & {\n  /**\n   * A string to be summarized\n   */\n  inputs: string\n  parameters?: {\n    /**\n     * (Default: None). Integer to define the minimum length in tokens of the output summary.\n     */\n    min_length?: number\n    /**\n     * (Default: None). Integer to define the maximum length in tokens of the output summary.\n     */\n    max_length?: number\n    /**\n     * (Default: None). Integer to define the top tokens considered within the sample operation to create new text.\n     */\n    top_k?: number\n    /**\n     * (Default: None). Float to define the tokens that are within the sample operation of text generation. Add tokens in the sample for more probable to least probable until the sum of the probabilities is greater than top_p.\n     */\n    top_p?: number\n    /**\n     * (Default: 1.0). Float (0.0-100.0). The temperature of the sampling operation. 1 means regular sampling, 0 means always take the highest score, 100.0 is getting closer to uniform probability.\n     */\n    temperature?: number\n    /**\n     * (Default: None). Float (0.0-100.0). The more a token is used within generation the more it is penalized to not be picked in successive generation passes.\n     */\n    repetition_penalty?: number\n    /**\n     * (Default: None). Float (0-120.0). The amount of time in seconds that the query should take maximum. Network can cause some overhead so it will be a soft limit.\n     */\n    max_time?: number\n  }\n}\nexport declare type SummarizationReturn = {\n  /**\n   * The string after translation\n   */\n  summary_text: string\n}\nexport declare type QuestionAnswerArgs = Args & {\n  inputs: {\n    question: string\n    context: string\n  }\n}\nexport declare type QuestionAnswerReturn = {\n  /**\n   * A string that’s the answer within the text.\n   */\n  answer: string\n  /**\n   * A float that represents how likely that the answer is correct\n   */\n  score: number\n  /**\n   * The index (string wise) of the start of the answer within context.\n   */\n  start: number\n  /**\n   * The index (string wise) of the stop of the answer within context.\n   */\n  end: number\n}\nexport declare type TableQuestionAnswerArgs = Args & {\n  inputs: {\n    /**\n     * The query in plain text that you want to ask the table\n     */\n    query: string\n    /**\n     * A table of data represented as a dict of list where entries are headers and the lists are all the values, all lists must have the same size.\n     */\n    table: Record<string, string[]>\n  }\n}\nexport declare type TableQuestionAnswerReturn = {\n  /**\n   * The plaintext answer\n   */\n  answer: string\n  /**\n   * a list of coordinates of the cells referenced in the answer\n   */\n  coordinates: number[][]\n  /**\n   * A list of coordinates of the cells contents\n   */\n  cells: string[]\n  /**\n   * The aggregator used to get the answer\n   */\n  aggregator: string\n}\nexport declare type TextClassificationArgs = Args & {\n  /**\n   * A string to be classified\n   */\n  inputs: string\n}\nexport declare type TextClassificationReturn = {\n  /**\n   * The label for the class (model specific)\n   */\n  label: string\n  /**\n   * A floats that represents how likely is that the text belongs to this class.\n   */\n  score: number\n}[]\nexport declare type TextGenerationArgs = Args & {\n  /**\n   * A string to be generated from\n   */\n  inputs: string\n  parameters?: {\n    /**\n     * (Default: None). Integer to define the top tokens considered within the sample operation to create new text.\n     */\n    top_k?: number\n    /**\n     * (Default: None). Float to define the tokens that are within the sample operation of text generation. Add tokens in the sample for more probable to least probable until the sum of the probabilities is greater than top_p.\n     */\n    top_p?: number\n    /**\n     * (Default: 1.0). Float (0.0-100.0). The temperature of the sampling operation. 1 means regular sampling, 0 means always take the highest score, 100.0 is getting closer to uniform probability.\n     */\n    temperature?: number\n    /**\n     * (Default: None). Float (0.0-100.0). The more a token is used within generation the more it is penalized to not be picked in successive generation passes.\n     */\n    repetition_penalty?: number\n    /**\n     * (Default: None). Int (0-250). The amount of new tokens to be generated, this does not include the input length it is a estimate of the size of generated text you want. Each new tokens slows down the request, so look for balance between response times and length of text generated.\n     */\n    max_new_tokens?: number\n    /**\n     * (Default: None). Float (0-120.0). The amount of time in seconds that the query should take maximum. Network can cause some overhead so it will be a soft limit. Use that in combination with max_new_tokens for best results.\n     */\n    max_time?: number\n    /**\n     * (Default: True). Bool. If set to False, the return results will not contain the original query making it easier for prompting.\n     */\n    return_full_text?: boolean\n    /**\n     * (Default: 1). Integer. The number of proposition you want to be returned.\n     */\n    num_return_sequences?: number\n    /**\n     * (Optional: True). Bool. Whether or not to use sampling, use greedy decoding otherwise.\n     */\n    do_sample?: boolean\n  }\n}\nexport declare type TextGenerationReturn = {\n  /**\n   * The continuated string\n   */\n  generated_text: string\n}\nexport declare type TokenClassificationArgs = Args & {\n  /**\n   * A string to be classified\n   */\n  inputs: string\n  parameters?: {\n    /**\n     * (Default: simple). There are several aggregation strategies:\n     *\n     * none: Every token gets classified without further aggregation.\n     *\n     * simple: Entities are grouped according to the default schema (B-, I- tags get merged when the tag is similar).\n     *\n     * first: Same as the simple strategy except words cannot end up with different tags. Words will use the tag of the first token when there is ambiguity.\n     *\n     * average: Same as the simple strategy except words cannot end up with different tags. Scores are averaged across tokens and then the maximum label is applied.\n     *\n     * max: Same as the simple strategy except words cannot end up with different tags. Word entity will be the token with the maximum score.\n     */\n    aggregation_strategy?: 'none' | 'simple' | 'first' | 'average' | 'max'\n  }\n}\nexport declare type TokenClassificationReturnValue = {\n  /**\n   * The type for the entity being recognized (model specific).\n   */\n  entity_group: string\n  /**\n   * How likely the entity was recognized.\n   */\n  score: number\n  /**\n   * The string that was captured\n   */\n  word: string\n  /**\n   * The offset stringwise where the answer is located. Useful to disambiguate if word occurs multiple times.\n   */\n  start: number\n  /**\n   * The offset stringwise where the answer is located. Useful to disambiguate if word occurs multiple times.\n   */\n  end: number\n}\nexport declare type TokenClassificationReturn = TokenClassificationReturnValue[]\nexport declare type TranslationArgs = Args & {\n  /**\n   * A string to be translated\n   */\n  inputs: string\n}\nexport declare type TranslationReturn = {\n  /**\n   * The string after translation\n   */\n  translation_text: string\n}\nexport declare type ZeroShotClassificationArgs = Args & {\n  /**\n   * a string or list of strings\n   */\n  inputs: string | string[]\n  parameters: {\n    /**\n     * a list of strings that are potential classes for inputs. (max 10 candidate_labels, for more, simply run multiple requests, results are going to be misleading if using too many candidate_labels anyway. If you want to keep the exact same, you can simply run multi_label=True and do the scaling on your end.\n     */\n    candidate_labels: string[]\n    /**\n     * (Default: false) Boolean that is set to True if classes can overlap\n     */\n    multi_label?: boolean\n  }\n}\nexport declare type ZeroShotClassificationReturnValue = {\n  sequence: string\n  labels: string[]\n  scores: number[]\n}\nexport declare type ZeroShotClassificationReturn =\n  ZeroShotClassificationReturnValue[]\nexport declare type ConversationalArgs = Args & {\n  inputs: {\n    /**\n     * The last input from the user in the conversation.\n     */\n    text: string\n    /**\n     * A list of strings corresponding to the earlier replies from the model.\n     */\n    generated_responses?: string[]\n    /**\n     * \tA list of strings corresponding to the earlier replies from the user. Should be of the same length of generated_responses.\n     */\n    past_user_inputs?: string[]\n  }\n  parameters?: {\n    /**\n     * (Default: None). Integer to define the minimum length in tokens of the output summary.\n     */\n    min_length?: number\n    /**\n     * (Default: None). Integer to define the maximum length in tokens of the output summary.\n     */\n    max_length?: number\n    /**\n     * (Default: None). Integer to define the top tokens considered within the sample operation to create new text.\n     */\n    top_k?: number\n    /**\n     * (Default: None). Float to define the tokens that are within the sample operation of text generation. Add tokens in the sample for more probable to least probable until the sum of the probabilities is greater than top_p.\n     */\n    top_p?: number\n    /**\n     * (Default: 1.0). Float (0.0-100.0). The temperature of the sampling operation. 1 means regular sampling, 0 means always take the highest score, 100.0 is getting closer to uniform probability.\n     */\n    temperature?: number\n    /**\n     * (Default: None). Float (0.0-100.0). The more a token is used within generation the more it is penalized to not be picked in successive generation passes.\n     */\n    repetition_penalty?: number\n    /**\n     * (Default: None). Float (0-120.0). The amount of time in seconds that the query should take maximum. Network can cause some overhead so it will be a soft limit.\n     */\n    max_time?: number\n  }\n}\nexport declare type ConversationalReturn = {\n  generated_text: string\n  conversation: {\n    generated_responses: string[]\n    past_user_inputs: string[]\n  }\n  warnings: string[]\n}\nexport declare type FeatureExtractionArgs = Args & {\n  /**\n   * The inputs vary based on the model. For example when using sentence-transformers/paraphrase-xlm-r-multilingual-v1 the inputs will look like this:\n   *\n   *  inputs: {\n   *    \"source_sentence\": \"That is a happy person\",\n   *    \"sentences\": [\"That is a happy dog\", \"That is a very happy person\", \"Today is a sunny day\"]\n   */\n  inputs: Record<string, any> | Record<string, any>[]\n}\n/**\n * Returned values are a list of floats, or a list of list of floats (depending on if you sent a string or a list of string, and if the automatic reduction, usually mean_pooling for instance was applied for you or not. This should be explained on the model's README.\n */\nexport declare type FeatureExtractionReturn = (number | number[])[]\nexport declare type ImageClassificationArgs = Args & {\n  /**\n   * Binary image data\n   */\n  data: any\n}\nexport declare type ImageClassificationReturnValue = {\n  /**\n   * The label for the class (model specific)\n   */\n  score: number\n  /**\n   * A float that represents how likely it is that the image file belongs to this class.\n   */\n  label: string\n}\nexport declare type ImageClassificationReturn = ImageClassificationReturnValue[]\nexport declare type ObjectDetectionArgs = Args & {\n  /**\n   * Binary image data\n   */\n  data: any\n}\nexport declare type ObjectDetectionReturnValue = {\n  /**\n   * A float that represents how likely it is that the detected object belongs to the given class.\n   */\n  score: number\n  /**\n   * The label for the class (model specific) of a detected object.\n   */\n  label: string\n  /**\n   * A dict (with keys [xmin,ymin,xmax,ymax]) representing the bounding box of a detected object.\n   */\n  box: {\n    xmin: number\n    ymin: number\n    xmax: number\n    ymax: number\n  }\n}\nexport declare type ObjectDetectionReturn = ObjectDetectionReturnValue[]\nexport declare type ImageSegmentationArgs = Args & {\n  /**\n   * Binary image data\n   */\n  data: any\n}\nexport declare type ImageSegmentationReturnValue = {\n  /**\n   * A float that represents how likely it is that the detected object belongs to the given class.\n   */\n  score: number\n  /**\n   * The label for the class (model specific) of a segment.\n   */\n  label: string\n  /**\n   * A str (base64 str of a single channel black-and-white img) representing the mask of a segment.\n   */\n  mask: string\n}\nexport declare type ImageSegmentationReturn = ImageSegmentationReturnValue[]\nexport declare type AutomaticSpeechRecognitionArgs = Args & {\n  /**\n   * Binary audio data\n   */\n  data: any\n}\nexport declare type AutomaticSpeechRecognitionReturn = {\n  /**\n   * The text that was recognized from the audio\n   */\n  text: string\n}\nexport declare type AudioClassificationArgs = Args & {\n  /**\n   * Binary audio data\n   */\n  data: any\n}\nexport declare type AudioClassificationReturnValue = {\n  /**\n   * The label for the class (model specific)\n   */\n  label: string\n  /**\n   * A float that represents how likely it is that the audio file belongs to this class.\n   */\n  score: number\n}\nexport declare type AudioClassificationReturn = AudioClassificationReturnValue[]\n```\n","readmeFilename":"README.md"}