{"_id":"@amplication/plugin-integrate-openai","_rev":"20-7fe17dacfb22b6942b92ce6b90178a70","name":"@amplication/plugin-integrate-openai","dist-tags":{"beta":"2.0.4-beta.pr-367.7fe9b5c","latest":"2.0.5"},"versions":{"1.0.0":{"name":"@amplication/plugin-integrate-openai","version":"1.0.0","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@1.0.0","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"danielediabolik@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"dist":{"shasum":"6d5d8a57002a001a1d5957efb37c0d9ea940d140","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-1.0.0.tgz","fileCount":13,"integrity":"sha512-EcyU+eFkuQxu526Gbnc3cIVc1CJCZ8pGlq7LAVT/PYFSvR1ay/ESQsMnFZFypZp9n3LwykvpFQ19KzB1Oh30Ng==","signatures":[{"sig":"MEUCIQDzB/imYEc8iR3sLMhJY/t+oiNluQQr/e0lpp+hxyrxDwIgYSWjZ30pHsky0x/dsBVEUy1dW3GD/7w63CTBkrtrC1o=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":15092},"main":"dist/index.js","gitHead":"63a07918973fa01bf051de89adcaabd2f321527d","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist","format:write":"prettier --write \"**/*.{js,ts}\""},"_npmUser":{"name":"mulygottlieb","email":"muly@amplication.com"},"_npmVersion":"8.11.0","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.3.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.21.0","recast":"^0.20.5","rimraf":"^5.0.1","babylon":"^6.18.0","webpack":"^5.75.0","prettier":"^2.8.7","ts-loader":"^9.4.2","typescript":"^4.9.3","@types/jest":"^29.5.0","webpack-cli":"^5.0.1","@babel/types":"^7.18.10","passport-jwt":"4.0.1","@babel/parser":"^7.18.11","jest-mock-extended":"^2.0.7","copy-webpack-plugin":"^11.0.0","nest-access-control":"^2.2.0","@typescript-eslint/parser":"^5.33.0","@amplication/code-gen-types":"^2.0.1","@amplication/code-gen-utils":"^0.0.4","@typescript-eslint/eslint-plugin":"^5.33.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_1.0.0_1690800758833_0.706675396213815","host":"s3://npm-registry-packages"}},"1.0.0-beta.pr-289.0d3954c":{"name":"@amplication/plugin-integrate-openai","version":"1.0.0-beta.pr-289.0d3954c","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@1.0.0-beta.pr-289.0d3954c","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"019cc02f8db80910dd08c53d89f7fcb2a3a08cf5","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-1.0.0-beta.pr-289.0d3954c.tgz","fileCount":15,"integrity":"sha512-0QIkQhs5z7RoghuXMDLr2RssPlPyqeVe0k49Patj3C4jPe5VAmFrBoviDTwjAgXnbGH9jxovg5YBPQLOO9f2Gg==","signatures":[{"sig":"MEUCIQDjrsG9CCJW0IXZl+Vv3smsRekzXck0/idQkyT02Q0R9wIgZBJ17NuGRsy6AOm8MuqxiidG4+YluZIJgYxJ/JLhHnY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16317},"main":"dist/index.js","readme":"# @amplication/plugin-integrate-openai\n\n[![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-integrate-openai)](https://www.npmjs.com/package/@amplication/plugin-integrate-openai)\n\nAdds a service to use OpenAI API\n\n## Purpose\n\nThis plugin adds a module and a service to use OpenAI API, and adds the `openai` package as a dependency.\nIt expose a single function `createChatCompletion` that can be used to create a chat completion using the OpenAI API.\n\n```ts\nconst result = await this.openaiService.createChatCompletion(\n  \"gpt-3.5-turbo\",\n  [\n    {\n      role: \"system\",\n      content: \"This is a test system message\",\n    },\n    {\n      role: \"user\",\n      content: \"This is a test user message\",\n    },\n  ],\n  {\n    temperature: 1,\n    max_tokens: 2048,\n    top_p: 1,\n    frequency_penalty: 0,\n    presence_penalty: 0,\n  }\n);\n```\n\n## Configuration\n\nThis plugin requires the following environment variables:\nOPENAI_API_KEY=[open-ai-key]\n\nNote:\nFor development purposes, the plugin adds the variable to the .env file, but you should never use .env to hold secrets in production, and you should never check in a secrets file to source control.\nYou should use a secrets manager like [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/) or [Azure Key Vault](https://azure.microsoft.com/en-us/services/key-vault/) to store secrets.\n","gitHead":"607d22a1059663ecf5a89c669e84d0f6f4e1eece","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist","format:write":"prettier --write \"**/*.{js,ts}\""},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"9.8.1","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.18.2","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^29.5.0","eslint":"^8.21.0","recast":"^0.20.5","rimraf":"^5.0.1","babylon":"^6.18.0","webpack":"^5.75.0","prettier":"^2.8.7","ts-loader":"^9.4.2","typescript":"^4.9.3","@types/jest":"^29.5.0","webpack-cli":"^5.0.1","@babel/types":"^7.18.10","passport-jwt":"4.0.1","@babel/parser":"^7.18.11","jest-mock-extended":"^2.0.7","copy-webpack-plugin":"^11.0.0","nest-access-control":"^2.2.0","@typescript-eslint/parser":"^5.33.0","@amplication/code-gen-types":"^2.0.17","@amplication/code-gen-utils":"^0.0.7","@typescript-eslint/eslint-plugin":"^5.33.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_1.0.0-beta.pr-289.0d3954c_1700659879883_0.3860409623791188","host":"s3://npm-registry-packages"}},"1.0.0-beta.pr-295.e09faa7":{"name":"@amplication/plugin-integrate-openai","version":"1.0.0-beta.pr-295.e09faa7","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@1.0.0-beta.pr-295.e09faa7","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"e3b9899e979fdd5c8c376a81185aa99f508b627a","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-1.0.0-beta.pr-295.e09faa7.tgz","fileCount":15,"integrity":"sha512-J1N8cLlbIuoETYPM7xtxKYeehoacEKnFgK1yVMtvQ8t/DveSOvUaWKxxasMc2u6Yg7FspwEPxI4B6OrjNDUMtg==","signatures":[{"sig":"MEUCIGx4GH/8y0MxbANZWHffsBv5G90W6f9TJ1OrAlz05NMTAiEAqScwCiuTB+/OaEzLkp7jU6Vz7SL2a7C11SBU2XjVpY8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16340},"main":"dist/index.js","readme":"# @amplication/plugin-integrate-openai\n\n[![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-integrate-openai)](https://www.npmjs.com/package/@amplication/plugin-integrate-openai)\n\nAdds a service to use OpenAI API\n\n## Purpose\n\nThis plugin adds a module and a service to use OpenAI API, and adds the `openai` package as a dependency.\nIt expose a single function `createChatCompletion` that can be used to create a chat completion using the OpenAI API.\n\n```ts\nconst result = await this.openaiService.createChatCompletion(\n  \"gpt-3.5-turbo\",\n  [\n    {\n      role: \"system\",\n      content: \"This is a test system message\",\n    },\n    {\n      role: \"user\",\n      content: \"This is a test user message\",\n    },\n  ],\n  {\n    temperature: 1,\n    max_tokens: 2048,\n    top_p: 1,\n    frequency_penalty: 0,\n    presence_penalty: 0,\n  }\n);\n```\n\n## Configuration\n\nThis plugin requires the following environment variables:\nOPENAI_API_KEY=[open-ai-key]\n\nNote:\nFor development purposes, the plugin adds the variable to the .env file, but you should never use .env to hold secrets in production, and you should never check in a secrets file to source control.\nYou should use a secrets manager like [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/) or [Azure Key Vault](https://azure.microsoft.com/en-us/services/key-vault/) to store secrets.\n","gitHead":"40155e1db719f85a5b8d4be19e317980ab63c633","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist","format:write":"prettier --write \"**/*.{js,ts}\""},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"9.8.1","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.18.2","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^29.5.0","eslint":"^8.21.0","recast":"^0.20.5","rimraf":"^5.0.1","babylon":"^6.18.0","webpack":"^5.75.0","prettier":"^2.8.7","ts-loader":"^9.4.2","typescript":"^4.9.3","@types/jest":"^29.5.0","webpack-cli":"^5.0.1","@babel/types":"^7.18.10","passport-jwt":"4.0.1","@babel/parser":"^7.18.11","jest-mock-extended":"^2.0.7","copy-webpack-plugin":"^11.0.0","nest-access-control":"^2.2.0","@typescript-eslint/parser":"^5.33.0","@amplication/code-gen-types":"^2.0.17","@amplication/code-gen-utils":"^0.0.7","@typescript-eslint/eslint-plugin":"^5.33.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_1.0.0-beta.pr-295.e09faa7_1701091165069_0.4380592258628948","host":"s3://npm-registry-packages"}},"1.0.1-beta.pr-297.80f0b66":{"name":"@amplication/plugin-integrate-openai","version":"1.0.1-beta.pr-297.80f0b66","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@1.0.1-beta.pr-297.80f0b66","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"b20f241907aa5505b7c8f877d437c5cb209fb173","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-1.0.1-beta.pr-297.80f0b66.tgz","fileCount":15,"integrity":"sha512-d+wI0b93H+WEO8UP5wXvzegzuZVFozLGrmWazNyHxUiJ2VEWiMhtzq9RMc020tjErJug7vnd1hgkCuNRoUkOOA==","signatures":[{"sig":"MEUCIQCnMi4zQfhSgEhgVfhYhkSoKMOaD6uabYI5O7C3YoLPYAIgChd0vGVc4gwO6ZE7tnBv7PLU+kNdEzZ5CtKLgchYigs=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16346},"main":"dist/index.js","readme":"# @amplication/plugin-integrate-openai\n\n[![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-integrate-openai)](https://www.npmjs.com/package/@amplication/plugin-integrate-openai)\n\nAdds a service to use OpenAI API\n\n## Purpose\n\nThis plugin adds a module and a service to use OpenAI API, and adds the `openai` package as a dependency.\nIt expose a single function `createChatCompletion` that can be used to create a chat completion using the OpenAI API.\n\n```ts\nconst result = await this.openaiService.createChatCompletion(\n  \"gpt-3.5-turbo\",\n  [\n    {\n      role: \"system\",\n      content: \"This is a test system message\",\n    },\n    {\n      role: \"user\",\n      content: \"This is a test user message\",\n    },\n  ],\n  {\n    temperature: 1,\n    max_tokens: 2048,\n    top_p: 1,\n    frequency_penalty: 0,\n    presence_penalty: 0,\n  }\n);\n```\n\n## Configuration\n\nThis plugin requires the following environment variables:\nOPENAI_API_KEY=[open-ai-key]\n\nNote:\nFor development purposes, the plugin adds the variable to the .env file, but you should never use .env to hold secrets in production, and you should never check in a secrets file to source control.\nYou should use a secrets manager like [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/) or [Azure Key Vault](https://azure.microsoft.com/en-us/services/key-vault/) to store secrets.\n","gitHead":"c7bc8663c51755347539711cfa02f9eda15f1941","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist","format:write":"prettier --write \"**/*.{js,ts}\""},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"9.8.1","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.18.2","_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"jest":"^29.5.0","eslint":"^8.21.0","recast":"^0.20.5","rimraf":"^5.0.1","babylon":"^6.18.0","webpack":"^5.75.0","prettier":"^2.8.7","ts-loader":"^9.4.2","typescript":"^4.9.3","@types/jest":"^29.5.0","webpack-cli":"^5.0.1","@babel/types":"^7.18.10","passport-jwt":"4.0.1","@babel/parser":"^7.18.11","jest-mock-extended":"^2.0.7","copy-webpack-plugin":"^11.0.0","nest-access-control":"^2.2.0","@typescript-eslint/parser":"^5.33.0","@amplication/code-gen-types":"^2.0.17","@amplication/code-gen-utils":"^0.0.7","@typescript-eslint/eslint-plugin":"^5.33.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_1.0.1-beta.pr-297.80f0b66_1701193106622_0.6954212517878195","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@amplication/plugin-integrate-openai","version":"1.0.1","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@1.0.1","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"692b01400dece7c8c51d11bc1e3056b6020d5396","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-1.0.1.tgz","fileCount":15,"integrity":"sha512-1uur4Bql5cjcwIYNLqiPInIaNpg5Bqb9ENig8WsllbSc2eFBNFGXqn0kfOSH3E+tQ7Z898XRaIti1si1v2W8/A==","signatures":[{"sig":"MEUCIB1Z020ctPTBryjve0udQtdOOa29+50KHDHNlxj/VuvmAiEA3YH/NPYMt/XwhWFiAasnDRs0tffPsZ7OmIsJWo9GhVE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16326},"main":"dist/index.js","gitHead":"cc05b0f0c9675cdae28fd7216ad4a04ac5169e99","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist","format:write":"prettier --write \"**/*.{js,ts}\""},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"9.8.1","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.18.2","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.21.0","recast":"^0.20.5","rimraf":"^5.0.1","babylon":"^6.18.0","webpack":"^5.75.0","prettier":"^2.8.7","ts-loader":"^9.4.2","typescript":"^4.9.3","@types/jest":"^29.5.0","webpack-cli":"^5.0.1","@babel/types":"^7.18.10","passport-jwt":"4.0.1","@babel/parser":"^7.18.11","jest-mock-extended":"^2.0.7","copy-webpack-plugin":"^11.0.0","nest-access-control":"^2.2.0","@typescript-eslint/parser":"^5.33.0","@amplication/code-gen-types":"^2.0.17","@amplication/code-gen-utils":"^0.0.7","@typescript-eslint/eslint-plugin":"^5.33.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_1.0.1_1701193691755_0.776052675561296","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@amplication/plugin-integrate-openai","version":"1.0.2","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@1.0.2","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"2a268ae8a74724e171a5a7839087668632912dec","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-1.0.2.tgz","fileCount":15,"integrity":"sha512-8YLNGRtcm497nhSiE6FyjtjUmdv9nmeLqDxseNd35yy9tAUNCQsheI6t3/voGdmtGtN1MOxtIYLnmuIu8BdQ/Q==","signatures":[{"sig":"MEUCIEWrV/J1XCHDZGPigUz51NPEL4WpAdp3EbSR3A7GHWSlAiEApyA2H7AIciydE23KM3giEeaKTREcKw09XgRbwwr4i+4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16036},"main":"dist/index.js","gitHead":"2430524073c1ab3ba27de8174e4a5322d3481aa0","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"10.2.3","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.21.0","recast":"^0.20.5","rimraf":"^5.0.1","babylon":"^6.18.0","webpack":"^5.75.0","prettier":"^2.8.7","ts-loader":"^9.4.2","typescript":"^4.9.3","@types/jest":"^29.5.0","webpack-cli":"^5.0.1","@babel/types":"^7.18.10","passport-jwt":"4.0.1","@babel/parser":"^7.18.11","jest-mock-extended":"^2.0.7","copy-webpack-plugin":"^11.0.0","nest-access-control":"^2.2.0","@typescript-eslint/parser":"^5.33.0","@amplication/code-gen-types":"^2.0.17","@amplication/code-gen-utils":"^0.0.7","@typescript-eslint/eslint-plugin":"^5.33.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_1.0.2_1703752159746_0.7353887913993196","host":"s3://npm-registry-packages"}},"1.0.3":{"name":"@amplication/plugin-integrate-openai","version":"1.0.3","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@1.0.3","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"bf6f437fab5237cf69f1ca20709a4a7cde9eaafb","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-1.0.3.tgz","fileCount":15,"integrity":"sha512-NJh41Xy3UbkBh5sksuKEIp/ylrtI9bdiqS445r8IG+CxHK7BDM6PqLtmD0BxpnhoaD7yh89zM2E1eZIF3MDyGA==","signatures":[{"sig":"MEUCICllhOLb8/oWlisxGnYVxwe0d7BnOzmBxobQKIGiWOX2AiEAgcD5IOFxeBayLf3+FLjDHC93gps2bK7qU9rw0rbxzGY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16036},"main":"dist/index.js","gitHead":"a3013af17c40f329488598221d037d0d30e3a96c","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"10.2.3","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.19.0","_hasShrinkwrap":false,"devDependencies":{"jest":"^29.5.0","eslint":"^8.21.0","recast":"^0.20.5","rimraf":"^5.0.1","babylon":"^6.18.0","webpack":"^5.75.0","prettier":"^2.8.7","ts-loader":"^9.4.2","typescript":"^4.9.3","@types/jest":"^29.5.0","webpack-cli":"^5.0.1","@babel/types":"^7.18.10","passport-jwt":"4.0.1","@babel/parser":"^7.18.11","jest-mock-extended":"^2.0.7","copy-webpack-plugin":"^11.0.0","nest-access-control":"^2.2.0","@typescript-eslint/parser":"^5.33.0","@amplication/code-gen-types":"^2.0.17","@amplication/code-gen-utils":"^0.0.7","@typescript-eslint/eslint-plugin":"^5.33.0"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_1.0.3_1703760960288_0.06461128294916452","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@amplication/plugin-integrate-openai","version":"2.0.0","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@2.0.0","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"0e77adf49bea2a369a41f4e2770ae1ebcdcfd89c","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-2.0.0.tgz","fileCount":15,"integrity":"sha512-kf6Lb2HEsByNykPQAVBAsePB2dPDeugL5ecT7Od4JmDX5kNP2ZPczK6gMTzK0ehVtpoWJoRV2QpKrMrYiKceiQ==","signatures":[{"sig":"MEUCIEYUIJQ/a0A8BCvBwFy0ETgkkKt76vc5/1UlJ0Uv035wAiEAkayo/bF2t7IRH6oLw95UzyRaXaJc/ymGfmtMME9rXSk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16489},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"e8b38999d71c29303e856a269acf77a6522e3957","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"10.2.3","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.19.0","dependencies":{"openai":"^4.24.2","@amplication/code-gen-types":"^2.0.21","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.56.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^3.1.1","ts-loader":"^9.5.1","typescript":"^5.2.2","@types/jest":"^29.5.11","webpack-cli":"^5.1.4","@babel/types":"^7.23.6","@babel/parser":"^7.23.6","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^11.0.0","@typescript-eslint/parser":"^6.18.1","@typescript-eslint/eslint-plugin":"^6.18.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_2.0.0_1704800624720_0.7342469647438026","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@amplication/plugin-integrate-openai","version":"2.0.1","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@2.0.1","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"33368b74f379ab5a5ffcda21df28269abc35170f","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-2.0.1.tgz","fileCount":15,"integrity":"sha512-jRtWuUpA7+YZoxyAl5zW9kq5YTmxYo1gUBXNIV4jIHU6MezbB7H/l7IjU7Tz/0IyOcODiDqA79J2zesn5UEevw==","signatures":[{"sig":"MEUCIFK50y+WHODI4MTnVoPqds2bPrM4DmIMY64Tq0MB92SyAiEAjsARx+l3H/DiplJ5BuRFzfWbDDJnWTZhk7nUHDpf5pw=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16492},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"3374c2b1a76fdf37e268bfd10eea8c14ae7e15b5","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"10.2.3","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.19.0","dependencies":{"openai":"^4.24.2","@amplication/code-gen-types":"^2.0.21","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.56.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^3.1.1","ts-loader":"^9.5.1","typescript":"^5.2.2","@types/jest":"^29.5.11","webpack-cli":"^5.1.4","@babel/types":"^7.23.6","@babel/parser":"^7.23.6","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^11.0.0","@typescript-eslint/parser":"^6.18.1","@typescript-eslint/eslint-plugin":"^6.18.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_2.0.1_1705588085492_0.6940131457184928","host":"s3://npm-registry-packages"}},"2.0.2":{"name":"@amplication/plugin-integrate-openai","version":"2.0.2","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@2.0.2","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"f0f0b8b806fe4218809bcc9f0cb5a7c6b3ac217a","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-2.0.2.tgz","fileCount":11,"integrity":"sha512-38skOeURUROA0UnirLHoEXo8LJ1hSXpz3kBblMQd8M4MZOHMoJX1VtZ1h14EvHOJfdOd0MRWuftZHlDbYsys3g==","signatures":[{"sig":"MEQCIBKxiHDFzXYNjdCw2WRWyk0y1jSi8UuWE4oQfYNks7DsAiBi4tU9hy+QAESn7mpzC3RDrYbHIqK+zLNXpqm+G7ePAw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7491},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"b691b143f55c108c744eb526b016d08f3ee027b0","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"deprecated":"This version is deprecated due to bugged release.","_npmVersion":"10.2.4","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.19.1","dependencies":{"openai":"^4.24.2","@amplication/code-gen-types":"^2.0.23","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.56.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^2.6.2","ts-loader":"^9.5.1","typescript":"^5.2.2","@types/jest":"^29.5.11","webpack-cli":"^5.1.4","@babel/types":"^7.23.6","@babel/parser":"^7.23.6","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^12.0.2","@typescript-eslint/parser":"^6.18.1","@typescript-eslint/eslint-plugin":"^6.18.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_2.0.2_1709917728189_0.7214108826094265","host":"s3://npm-registry-packages"}},"2.0.3":{"name":"@amplication/plugin-integrate-openai","version":"2.0.3","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@2.0.3","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"6be85d7b2efd5ea18a2d3354b60676dc1fe93f92","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-2.0.3.tgz","fileCount":15,"integrity":"sha512-HaLo+BN4Zlc6zVyYqBLGf6EwpsCdQ3s0bDT3rnd1EHSdRFdDWSt6yZbUqWVJ59+IpfOBMHU5czXeA2ZBfZZ2Dg==","signatures":[{"sig":"MEUCICsg68B0RWG2ejbNgaLyxgc6z8YSeA8jEalEpWSIpqaRAiEAl2PH5iJZvkU3EC8NcHgzCgGz7rBzNWK72FI2FKtkhpU=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16430},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"3bcbdd3404d2d13b3033284d1504c30ac01fd037","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"10.2.4","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.19.1","dependencies":{"openai":"^4.24.2","@amplication/code-gen-types":"^2.0.23","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.56.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^2.6.2","ts-loader":"^9.5.1","typescript":"^5.2.2","@types/jest":"^29.5.11","webpack-cli":"^5.1.4","@babel/types":"^7.23.6","@babel/parser":"^7.23.6","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^12.0.2","@typescript-eslint/parser":"^6.18.1","@typescript-eslint/eslint-plugin":"^6.18.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_2.0.3_1709920847088_0.1582522283969361","host":"s3://npm-registry-packages"}},"2.0.4-beta.pr-354.31d30ce":{"name":"@amplication/plugin-integrate-openai","version":"2.0.4-beta.pr-354.31d30ce","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@2.0.4-beta.pr-354.31d30ce","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"ac4f260f4fb62bc29cdb2b3d64bfc5b5a6bc938c","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-2.0.4-beta.pr-354.31d30ce.tgz","fileCount":6,"integrity":"sha512-yUFo29KG+WU8uEyJ+VsHn3i5ENjFj7j2WKGjOK1sWeLs6mou33uVahugtWcviHDOr5XXTOqxCa8fXhfos85l3Q==","signatures":[{"sig":"MEUCIGh4gSCYX7tA2KdYXXYSI/5iRSJo6Jhntmeidl8pLHo8AiEAmeDJmkgt4+57a61m16vhPHQuaO4dLFBc2CQ9iZvol58=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11649},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","readme":"# @amplication/plugin-integrate-openai\n\n[![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-integrate-openai)](https://www.npmjs.com/package/@amplication/plugin-integrate-openai)\n\nAdds a service to use OpenAI API\n\n## Purpose\n\nThis plugin adds a module and a service to use OpenAI API, and adds the `openai` package as a dependency.\nIt expose a single function `createChatCompletion` that can be used to create a chat completion using the OpenAI API.\n\n```ts\nconst result = await this.openaiService.createChatCompletion(\n  \"gpt-3.5-turbo\",\n  [\n    {\n      role: \"system\",\n      content: \"This is a test system message\",\n    },\n    {\n      role: \"user\",\n      content: \"This is a test user message\",\n    },\n  ],\n  {\n    temperature: 1,\n    max_tokens: 2048,\n    top_p: 1,\n    frequency_penalty: 0,\n    presence_penalty: 0,\n  }\n);\n```\n\n## Configuration\n\nThis plugin requires the following environment variables:\nOPENAI_API_KEY=[open-ai-key]\n\nNote:\nFor development purposes, the plugin adds the variable to the .env file, but you should never use .env to hold secrets in production, and you should never check in a secrets file to source control.\nYou should use a secrets manager like [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/) or [Azure Key Vault](https://azure.microsoft.com/en-us/services/key-vault/) to store secrets.\n","gitHead":"31d30ceddcfeef89aba68f985ee37516408aada3","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"10.2.4","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.19.1","dependencies":{"openai":"^4.24.2","@amplication/code-gen-types":"^2.0.23","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^8.56.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^2.6.2","ts-loader":"^9.5.1","typescript":"^5.2.2","@types/jest":"^29.5.11","webpack-cli":"^5.1.4","@babel/types":"^7.23.6","@babel/parser":"^7.23.6","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^12.0.2","@typescript-eslint/parser":"^6.18.1","@typescript-eslint/eslint-plugin":"^6.18.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_2.0.4-beta.pr-354.31d30ce_1710262231987_0.19595846693526764","host":"s3://npm-registry-packages"}},"2.0.4-beta.pr-354.1e83d71":{"name":"@amplication/plugin-integrate-openai","version":"2.0.4-beta.pr-354.1e83d71","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@2.0.4-beta.pr-354.1e83d71","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"ec665dffc4318fb02d3413db507515af14d7a01c","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-2.0.4-beta.pr-354.1e83d71.tgz","fileCount":5,"integrity":"sha512-fToRqzaXCEFM1Thil0YpvX4Ky9OqQrjAZSquhHSLLJl1wnlJrsx+OUnItubWLtvtMAr0DbJIsWihBaUeG9KRBQ==","signatures":[{"sig":"MEUCIAMCtBbzMd7l2p2LmJUOTj4rTwT1pefw1qagMPoRDIWjAiEAxGTvmo5tmpKo120UkHvUUSqrBf5mdJSJhe+nEYCW3vg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":5356},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","readme":"# @amplication/plugin-integrate-openai\n\n[![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-integrate-openai)](https://www.npmjs.com/package/@amplication/plugin-integrate-openai)\n\nAdds a service to use OpenAI API\n\n## Purpose\n\nThis plugin adds a module and a service to use OpenAI API, and adds the `openai` package as a dependency.\nIt expose a single function `createChatCompletion` that can be used to create a chat completion using the OpenAI API.\n\n```ts\nconst result = await this.openaiService.createChatCompletion(\n  \"gpt-3.5-turbo\",\n  [\n    {\n      role: \"system\",\n      content: \"This is a test system message\",\n    },\n    {\n      role: \"user\",\n      content: \"This is a test user message\",\n    },\n  ],\n  {\n    temperature: 1,\n    max_tokens: 2048,\n    top_p: 1,\n    frequency_penalty: 0,\n    presence_penalty: 0,\n  }\n);\n```\n\n## Configuration\n\nThis plugin requires the following environment variables:\nOPENAI_API_KEY=[open-ai-key]\n\nNote:\nFor development purposes, the plugin adds the variable to the .env file, but you should never use .env to hold secrets in production, and you should never check in a secrets file to source control.\nYou should use a secrets manager like [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/) or [Azure Key Vault](https://azure.microsoft.com/en-us/services/key-vault/) to store secrets.\n","gitHead":"1e83d71a2b825d341f058cf3221885d6628f0e23","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"10.2.4","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.19.1","dependencies":{"openai":"^4.24.2","@amplication/code-gen-types":"^2.0.23","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^8.56.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^2.6.2","ts-loader":"^9.5.1","typescript":"^5.2.2","@types/jest":"^29.5.11","webpack-cli":"^5.1.4","@babel/types":"^7.23.6","@babel/parser":"^7.23.6","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^12.0.2","@typescript-eslint/parser":"^6.18.1","@typescript-eslint/eslint-plugin":"^6.18.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_2.0.4-beta.pr-354.1e83d71_1710262957267_0.9569192605855628","host":"s3://npm-registry-packages"}},"2.0.4":{"name":"@amplication/plugin-integrate-openai","version":"2.0.4","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@2.0.4","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"393f73ddedaf46fa0395b8e4ccc3b739571af23c","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-2.0.4.tgz","fileCount":15,"integrity":"sha512-NGyTFsIZUBodTnFeg67xCvCCiutQ02S5M2FQHxqXLK2rMd54nLemLoQAIu9KFVauqkjBpreq3YGgWOeaGr+3Nw==","signatures":[{"sig":"MEYCIQCZWPDhaJDqpR+EpeFU9cL6nXwllXvgBDCwro3R1Xc1tQIhAMmB/EDxNTPkP+pXoKs2522BpY6d6SeE9uNJdvJManll","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16391},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"6ef2933792fa48e8ad60674a94b9766625e94e24","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"10.2.4","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.19.1","dependencies":{"openai":"^4.24.2","@amplication/code-gen-types":"^2.0.23","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.56.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^2.6.2","ts-loader":"^9.5.1","typescript":"^5.2.2","@types/jest":"^29.5.11","webpack-cli":"^5.1.4","@babel/types":"^7.23.6","@babel/parser":"^7.23.6","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^12.0.2","@typescript-eslint/parser":"^6.18.1","@typescript-eslint/eslint-plugin":"^6.18.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_2.0.4_1711537974138_0.8315639401791179","host":"s3://npm-registry-packages"}},"2.0.4-beta.pr-367.7fe9b5c":{"name":"@amplication/plugin-integrate-openai","version":"2.0.4-beta.pr-367.7fe9b5c","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@2.0.4-beta.pr-367.7fe9b5c","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"barshimi","email":"barshimi@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"ccf78c2248a2428644d571d6d4d0d4d86953aceb","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-2.0.4-beta.pr-367.7fe9b5c.tgz","fileCount":15,"integrity":"sha512-xUCVePstQvCv4TZq2ZJQREDmq0wvB9YQfERQF3s2yP8rY7qZgf/Ss4XrFCZwhm71IxjjNDeJ2kXTpSxzsKt9KQ==","signatures":[{"sig":"MEQCIGYJ01DFuZlj22BWI6txQhHgAPZuxRiqZaz2r3ZrBTyYAiAVY6RNjbIf/zlZnlolpXvcDsQlq88LNUO3+v19Wr8YQQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16447},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","readme":"# @amplication/plugin-integrate-openai\n\n[![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-integrate-openai)](https://www.npmjs.com/package/@amplication/plugin-integrate-openai)\n\nAdds a service to use OpenAI API\n\n## Purpose\n\nThis plugin adds a module and a service to use OpenAI API, and adds the `openai` package as a dependency.\nIt expose a single function `createChatCompletion` that can be used to create a chat completion using the OpenAI API.\n\n```ts\nconst result = await this.openaiService.createChatCompletion(\n  \"gpt-3.5-turbo\",\n  [\n    {\n      role: \"system\",\n      content: \"This is a test system message\",\n    },\n    {\n      role: \"user\",\n      content: \"This is a test user message\",\n    },\n  ],\n  {\n    temperature: 1,\n    max_tokens: 2048,\n    top_p: 1,\n    frequency_penalty: 0,\n    presence_penalty: 0,\n  }\n);\n```\n\n## Configuration\n\nThis plugin requires the following environment variables:\nOPENAI_API_KEY=[open-ai-key]\n\nNote:\nFor development purposes, the plugin adds the variable to the .env file, but you should never use .env to hold secrets in production, and you should never check in a secrets file to source control.\nYou should use a secrets manager like [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/) or [Azure Key Vault](https://azure.microsoft.com/en-us/services/key-vault/) to store secrets.\n","gitHead":"7fe9b5c5414809f4a81e56bb2dc1322899d89ad3","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"10.2.4","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.19.1","dependencies":{"openai":"^4.24.2","@amplication/code-gen-types":"^2.0.23","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"eslint":"^8.56.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^2.6.2","ts-loader":"^9.5.1","typescript":"^5.2.2","@types/jest":"^29.5.11","webpack-cli":"^5.1.4","@babel/types":"^7.23.6","@babel/parser":"^7.23.6","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^12.0.2","@typescript-eslint/parser":"^6.18.1","@typescript-eslint/eslint-plugin":"^6.18.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_2.0.4-beta.pr-367.7fe9b5c_1711895261581_0.1954654354839982","host":"s3://npm-registry-packages"}},"2.0.5":{"name":"@amplication/plugin-integrate-openai","version":"2.0.5","author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","_id":"@amplication/plugin-integrate-openai@2.0.5","maintainers":[{"name":"amplication-bot","email":"engineering@amplication.com"},{"name":"mulygottlieb","email":"muly@amplication.com"},{"name":"levivannoort","email":"vanNoort.levi@protonmail.com"},{"name":"overbit","email":"daniele.iasella@gmail.com"},{"name":"morhag","email":"mor@amplication.com"},{"name":"amitbarletz","email":"amit@amplication.com"},{"name":"yuvalhazaz","email":"hazaz.yuval@gmail.com"}],"nx":{},"dist":{"shasum":"d5560eac835327203c3f521b105be5d7ef3ee004","tarball":"https://registry.npmjs.org/@amplication/plugin-integrate-openai/-/plugin-integrate-openai-2.0.5.tgz","fileCount":15,"integrity":"sha512-3wnqgMAgNlUrNcEg9kkle3gTXYW92nPQPhsxkGUngStie93kpZwLG7uz+wyGKnA0IX7VotGXSHr+rBhG7js6ug==","signatures":[{"sig":"MEUCIH0WXQD1Sv5wreZcGtS6T7C4o1QvRLTYBLnBnnZCDg0mAiEAoeNqbECBnl331Vn/+bjs9KayEiv902h94KA+a2Zvr/g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":16427},"jest":{"rootDir":"src/tests","testRegex":".*\\.spec\\.ts$","transform":{"^.+\\.(t|j)s$":"ts-jest"},"passWithNoTests":true,"testEnvironment":"node","collectCoverageFrom":["**/*.(t|j)s"],"moduleFileExtensions":["js","json","ts"]},"main":"dist/index.js","gitHead":"4f08fd12ad0715ae0bc08b994b0ed45fd811ac77","scripts":{"dev":"webpack --watch","build":"webpack","prebuild":"rimraf dist"},"_npmUser":{"name":"amplication-bot","email":"engineering@amplication.com"},"_npmVersion":"10.5.0","description":"Add a module and a service to use OpenAI API to Amplication generated code","directories":{},"_nodeVersion":"18.20.2","dependencies":{"openai":"^4.24.2","@amplication/code-gen-types":"^2.0.23","@amplication/code-gen-utils":"^0.0.9"},"_hasShrinkwrap":false,"devDependencies":{"eslint":"^8.56.0","rimraf":"^5.0.5","ts-jest":"^29.1.1","webpack":"^5.89.0","prettier":"^2.6.2","ts-loader":"^9.5.1","typescript":"^5.2.2","@types/jest":"^29.5.11","webpack-cli":"^5.1.4","@babel/types":"^7.23.6","@babel/parser":"^7.23.6","jest-mock-extended":"^3.0.5","copy-webpack-plugin":"^12.0.2","@typescript-eslint/parser":"^6.18.1","@typescript-eslint/eslint-plugin":"^6.18.1"},"_npmOperationalInternal":{"tmp":"tmp/plugin-integrate-openai_2.0.5_1714404686724_0.6457163047755243","host":"s3://npm-registry-packages"}}},"time":{"created":"2023-07-31T10:52:38.769Z","modified":"2024-09-09T13:32:39.761Z","1.0.0":"2023-07-31T10:52:38.983Z","1.0.0-beta.pr-289.0d3954c":"2023-11-22T13:31:20.040Z","1.0.0-beta.pr-295.e09faa7":"2023-11-27T13:19:25.273Z","1.0.1-beta.pr-297.80f0b66":"2023-11-28T17:38:26.855Z","1.0.1":"2023-11-28T17:48:11.944Z","1.0.2":"2023-12-28T08:29:19.917Z","1.0.3":"2023-12-28T10:56:00.483Z","2.0.0":"2024-01-09T11:43:44.875Z","2.0.1":"2024-01-18T14:28:05.622Z","2.0.2":"2024-03-08T17:08:48.329Z","2.0.3":"2024-03-08T18:00:47.330Z","2.0.4-beta.pr-354.31d30ce":"2024-03-12T16:50:32.130Z","2.0.4-beta.pr-354.1e83d71":"2024-03-12T17:02:37.420Z","2.0.4":"2024-03-27T11:12:54.283Z","2.0.4-beta.pr-367.7fe9b5c":"2024-03-31T14:27:41.739Z","2.0.5":"2024-04-29T15:31:26.909Z"},"author":{"name":"Yuval Hazaz"},"license":"Apache-2.0","description":"Add a module and a service to use OpenAI API to Amplication generated code","maintainers":[{"email":"engineering@amplication.com","name":"amplication-bot"},{"email":"muly@amplication.com","name":"mulygottlieb"},{"email":"vanNoort.levi@protonmail.com","name":"levivannoort"},{"email":"mor@amplication.com","name":"morhag"},{"email":"hazaz.yuval@gmail.com","name":"yuvalhazaz"}],"readme":"# @amplication/plugin-integrate-openai\n\n[![NPM Downloads](https://img.shields.io/npm/dt/@amplication/plugin-integrate-openai)](https://www.npmjs.com/package/@amplication/plugin-integrate-openai)\n\nAdds a service to use OpenAI API\n\n## Purpose\n\nThis plugin adds a module and a service to use OpenAI API, and adds the `openai` package as a dependency.\nIt expose a single function `createChatCompletion` that can be used to create a chat completion using the OpenAI API.\n\n```ts\nconst result = await this.openaiService.createChatCompletion(\n  \"gpt-3.5-turbo\",\n  [\n    {\n      role: \"system\",\n      content: \"This is a test system message\",\n    },\n    {\n      role: \"user\",\n      content: \"This is a test user message\",\n    },\n  ],\n  {\n    temperature: 1,\n    max_tokens: 2048,\n    top_p: 1,\n    frequency_penalty: 0,\n    presence_penalty: 0,\n  }\n);\n```\n\n## Configuration\n\nThis plugin requires the following environment variables:\nOPENAI_API_KEY=[open-ai-key]\n\nNote:\nFor development purposes, the plugin adds the variable to the .env file, but you should never use .env to hold secrets in production, and you should never check in a secrets file to source control.\nYou should use a secrets manager like [AWS Secrets Manager](https://aws.amazon.com/secrets-manager/) or [Azure Key Vault](https://azure.microsoft.com/en-us/services/key-vault/) to store secrets.\n","readmeFilename":"README.md"}