{"_id":"@boateo6/easy-chatgpt","_rev":"1-3c31d2ab3592f83947785409d9dfadd9","name":"@boateo6/easy-chatgpt","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@boateo6/easy-chatgpt","version":"1.0.0","description":"Generate chat replies and images using openai's api in a simple way!","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["GPT-3","Chat Replies","Image Generating"],"author":{"name":"boateo6"},"license":"ISC","dependencies":{"@types/node":"^18.0.6","node-fetch":"^3.2.6","openai":"^3.2.1"},"devDependencies":{},"_id":"@boateo6/easy-chatgpt@1.0.0","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-BQBWW7SDvNhGe2PVWh0xL8E+Vq6cMF/rUXXwJu2Yi2FJusT/HhVLl7+67otuC1LjCn1hebP+01Ib4spsWskknA==","shasum":"de39043a0c44f33b14bb10eb29048f5febc06fc7","tarball":"https://registry.npmjs.org/@boateo6/easy-chatgpt/-/easy-chatgpt-1.0.0.tgz","fileCount":10,"unpackedSize":14202,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDdhlwcRk5IZ42B+/wU2XEM5Xt/d9qjNM+I9xOUnnkRfwIhANdv6fC3HpiqH2Tfu8FOQ9nE+ST2W/Rp0OGREz6ONl9Z"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFEIeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoFvg/+O92j8zwrJXqqCS5nAT4ml4+RasC6XQ3lUVWk0Kfet3H95mgA\r\nF/tolBU087cVa9cb4lQ+WZLbHWJt5I+7PSt9RgPN0Pli0E70FWgfKVuvmik5\r\nrFbsNh8V0RGIwABJAu5O3qyueTpWcHLvFqoYXFRwAan2Fhsbgu0AHX7ELgwR\r\nWo+UQLnHE5YBb2ILVi5et8cbfV1WWVxvp60T7odsTBqse/7kzUBni1cbLE0D\r\nXqONdKjo0wsW+Td5n5/eYaNKHB6ojZCs0LQXZ8DtorqFnwaJesXTP1NUYaPR\r\nxlBS609HPB1gCJOknS+E5nDW/hGgJ6Ca2Ti8hXT+5PkhJEKictnuOhlBOUFQ\r\nyWUQzIFBcY4/2Ksdoq5ekr/agxguMwZG2nz0ItpE0TNTjV3jlK5+OqiBLYJ0\r\nqKcoxxtyNLaK7Ekmrm1Upkvfrb5f2N9vjHB3SB+8nrNqU7MxwQco7UbtxFzS\r\nqbqbYf5GYVEcCeTTKGRR9omLPb5M0AueZhsCuEUHpJQttdRZYrX/JHxOkWUw\r\ng9oVeN5n63EjcxpAiI0bxnVqpig6z1D267e8Dj/97otqksY3scDge1mBn+D6\r\nIXlOm4tG/X51AcA0diq2DIrjmP6321nWm1lZOcTzg5mLMiEYyZTBCdhgSFkX\r\nd3hYO8oQBmUvdIYvs/y1AZyB418ApoRDNFM=\r\n=1JeO\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"boateo6","email":"boateo6Business@gmail.com"},"directories":{},"maintainers":[{"name":"boateo6","email":"boateo6Business@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-chatgpt_1.0.0_1679049246276_0.506416569621116"},"_hasShrinkwrap":false},"1.0.1":{"name":"@boateo6/easy-chatgpt","version":"1.0.1","description":"Generate chat replies and images using openai's api in a simple way!","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"keywords":["GPT-3","Chat Replies","Image Generating"],"author":{"name":"boateo6"},"license":"ISC","dependencies":{"@types/node":"^18.0.6","node-fetch":"^3.2.6","openai":"^3.2.1"},"devDependencies":{},"_id":"@boateo6/easy-chatgpt@1.0.1","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-gyZs500Kb7rfj6L8sxfxVGNkIULDQyr5oiuFtRS+yQ32iNU1giCwAiTeFCxo614hVGF7oCbZCP61U/7XvH641Q==","shasum":"5cdc3bc94bc81d75393a542522b1d38eb5a30236","tarball":"https://registry.npmjs.org/@boateo6/easy-chatgpt/-/easy-chatgpt-1.0.1.tgz","fileCount":10,"unpackedSize":14202,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDpN3cLke3x76ujNrchyU6lQF9Zt18nlOuKqjVYUbjbwwIhAOEYraNWuUGi4WdOSw9+OEduBRcGCRCkdKsdFJX3/zLs"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJkFU2IACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoBcxAAh/6HysTl0ctYWXTUmUiSfwlUEi4CJcXlD6EHXgCefQZjHZjk\r\ne2IVSVyW6ONxyis7eoStSiUeS2Mmcrldtu6s4URXop4F9u/Zo4h9UvzkRDWh\r\ncqmI59CkuLfgOmqdoSxPrIkSMlc2JK8Gf0ArYYVnTn0NHD0XlqW2K/HpxfdX\r\ng+L1OZ0N7qo6BNbjtYfwnAuYJOYEpYDALhgSLnr2jCXKothObyeHQK/5twXF\r\nJoKkW/rdicA+PqPpkIsc4EzbNSYarOPjfKcNfBSeG6M5qKDmIwf6m1NmbRHH\r\nJdiqnGfd97qbMOSRNswtiqeYmpRgHptqQRvagZPD4BGOSwd0mjlc/TzkDtm+\r\nha22FhRRsZcp7gV8SFRAsguaMfrgwEANSQSeeHH9XLMTwc89jEDQj/JQlTWu\r\nSTxQb4pLlmMAR12SdbWyqC192W6yvIe53KPUxBdyLAlzg8glyBsVOLPXTzg8\r\nMsKZ9VGttcQixeidMlW+o01GO56ATwwoAhr6h13nTlwDILzGM9qB1Q6uNRHP\r\nNUJh/7vawSJvFK/v5mheYfsW8dDdj+ibFf8cmvWqbloflUSimJuJ9teLVzRD\r\na46cdJwVgcqTDFP5c0ftUJlD3Fc1S5JDaT30rmApSmFGTXlGkooYyWW/9w1e\r\nABBayecxICnCQ/Jv8i83M3Qj/ZCSfH5IviI=\r\n=d9zL\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"boateo6","email":"boateo6Business@gmail.com"},"directories":{},"maintainers":[{"name":"boateo6","email":"boateo6Business@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/easy-chatgpt_1.0.1_1679117704647_0.31401106822052904"},"_hasShrinkwrap":false}},"time":{"created":"2023-03-17T10:34:06.198Z","1.0.0":"2023-03-17T10:34:06.448Z","modified":"2023-03-18T05:35:04.896Z","1.0.1":"2023-03-18T05:35:04.785Z"},"maintainers":[{"name":"boateo6","email":"boateo6Business@gmail.com"}],"description":"Generate chat replies and images using openai's api in a simple way!","keywords":["GPT-3","Chat Replies","Image Generating"],"author":{"name":"boateo6"},"license":"ISC","readme":"# Announcement\n> There is no announcements yet...\n\n# Update\n> There is not update information yet...\n\n# Getting Started\n\n## Require:\n- Require parts of the package by the following line.\n``` javascript\nconst { Config, Completion, Image, Output } = require(\"@boateo6/easy-chatgpt\")\n```\n\n## Configuration:\n- Make a configuration by the following.\n  - Replace \"**YOUR_OPENAI_APIKEY**\" with the OpenAI APIKey that you can generate form [here](https://platform.openai.com/account/api-keys)!\n``` javascript\nconst config = new Config()\nconfig.setApiKey(\"YOUR_OPENAI_APIKEY\")\n```\n\n# Usage\n\n## Completion:\n- To make a completion do the following...\n``` javacript\nconst data = new Completion()\ndata.setModel(\"text-davinci-003\")\ndata.setPrompt(\"Hello (Give a reply)\")\ndata.setMaxTokens(1024)\ndata.setN(1)\ndata.setStop(null)\ndata.setTemp(0.7)\n```\n- To get an output from this do the add the following after the above code...\n  - \"**config**\" here is the configuration you created before.\n  - \"**data**\" here is the data from the completion you created above.\n  - \"**output.run()**\" here will make the program run to get an output form all the above.\n- Here is the code:\n``` javascript\nconst output = new Output(config, data)\noutput.run().then(response => {\n  // Do something with the response you got\n}).catch(error => {\n  // Handle the error\n})\n```\n### Full Code:\n``` javascript\nconst data = new Completion()\ndata.setModel(\"text-davinci-003\")\ndata.setPrompt(\"Hello (Give a reply)\")\ndata.setMaxTokens(1024)\ndata.setN(1)\ndata.setStop(null)\ndata.setTemp(0.7)\n\nconst output = new Output(config, data)\noutput.run().then(response => {\n  // Do something with the response you got\n}).catch(error => {\n  // Handle the error\n})\n```\n\n## Image Generation:\n- To make data for the generation of the image you want do the following...\n``` javascript\nconst data = new Image()\ndata.setPrompt(\"A waterfall with fog\")\ndata.setN(1)\ndata.setSize(\"1024x1024\")\ndata.setResponseFormat(\"url\")\n```\n- To get an output from this we do the same...\n``` javascript\nconst output = new Output(config, data)\noutput.run().then(image_url => {\n  // Do something with the image url/file you get\n}).catch(error => {\n  // Handle the error\n})\n```\n### Full Code:\n``` javascript\nconst data = new Image()\ndata.setPrompt(\"A waterfall with fog\")\ndata.setN(1)\ndata.setSize(\"1024x1024\")\ndata.setResponseFormat(\"url\")\n\nconst output = new Output(config, data)\noutput.run().then(image_url => {\n  // Do something with the image url/file you get\n}).catch(error => {\n  // Handle the error\n})\n```\n\n# Ending\n### Here we come to the end of this package's instructions.\n### For more help you can visit the [OpenAI docs](https://platform.openai.com/docs/introduction).\n### We will keep adding updates to this package in the future!","readmeFilename":"readme.md"}