chore: add latest api as dep with alias

This commit is contained in:
Daniel Avila 2023-03-20 02:18:03 -04:00
parent c85602b93b
commit 28c8f066d9
2 changed files with 67 additions and 0 deletions

66
api/package-lock.json generated
View file

@ -13,6 +13,7 @@
"@vscode/vscode-languagedetection": "^1.0.22",
"@waylaidwanderer/chatgpt-api": "^1.28.2",
"axios": "^1.3.4",
"chatgpt-latest": "npm:@waylaidwanderer/chatgpt-api@^1.31.6",
"cors": "^2.8.5",
"crypto": "^1.0.1",
"dotenv": "^16.0.3",
@ -2062,6 +2063,40 @@
"resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",
"integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA=="
},
"node_modules/chatgpt-latest": {
"name": "@waylaidwanderer/chatgpt-api",
"version": "1.31.6",
"resolved": "https://registry.npmjs.org/@waylaidwanderer/chatgpt-api/-/chatgpt-api-1.31.6.tgz",
"integrity": "sha512-Db6UK1FRvaUWbFRb6Lg8xnvjkSKjjt4iKYRKPvGNL8LdAiR9Th9e5rLVGHIbGeVBgWWiWH54ei3lQO+oGX9A6w==",
"dependencies": {
"@dqbd/tiktoken": "^1.0.2",
"@fastify/cors": "^8.2.0",
"@waylaidwanderer/fastify-sse-v2": "^3.1.0",
"@waylaidwanderer/fetch-event-source": "^3.0.1",
"boxen": "^7.0.1",
"clipboardy": "^3.0.0",
"dotenv": "^16.0.3",
"fastify": "^4.11.0",
"fetch-undici": "^3.0.1",
"https-proxy-agent": "^5.0.1",
"inquirer": "^9.1.4",
"inquirer-autocomplete-prompt": "^3.0.0",
"keyv": "^4.5.2",
"keyv-file": "^0.2.0",
"ora": "^6.1.2",
"undici": "^5.20.0",
"ws": "^8.12.0"
},
"bin": {
"chatgpt-api": "bin/server.js",
"chatgpt-cli": "bin/cli.js"
}
},
"node_modules/chatgpt-latest/node_modules/@dqbd/tiktoken": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@dqbd/tiktoken/-/tiktoken-1.0.2.tgz",
"integrity": "sha512-AjGTBRWsMoVmVeN55NLyupyM8TNamOUBl6tj5t/leLDVup3CFGO9tVagNL1jf3GyZLkWZSTmYVbPQ/M2LEcNzw=="
},
"node_modules/chokidar": {
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",
@ -6688,6 +6723,37 @@
"resolved": "https://registry.npmjs.org/chardet/-/chardet-0.7.0.tgz",
"integrity": "sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA=="
},
"chatgpt-latest": {
"version": "npm:@waylaidwanderer/chatgpt-api@1.31.6",
"resolved": "https://registry.npmjs.org/@waylaidwanderer/chatgpt-api/-/chatgpt-api-1.31.6.tgz",
"integrity": "sha512-Db6UK1FRvaUWbFRb6Lg8xnvjkSKjjt4iKYRKPvGNL8LdAiR9Th9e5rLVGHIbGeVBgWWiWH54ei3lQO+oGX9A6w==",
"requires": {
"@dqbd/tiktoken": "^1.0.2",
"@fastify/cors": "^8.2.0",
"@waylaidwanderer/fastify-sse-v2": "^3.1.0",
"@waylaidwanderer/fetch-event-source": "^3.0.1",
"boxen": "^7.0.1",
"clipboardy": "^3.0.0",
"dotenv": "^16.0.3",
"fastify": "^4.11.0",
"fetch-undici": "^3.0.1",
"https-proxy-agent": "^5.0.1",
"inquirer": "^9.1.4",
"inquirer-autocomplete-prompt": "^3.0.0",
"keyv": "^4.5.2",
"keyv-file": "^0.2.0",
"ora": "^6.1.2",
"undici": "^5.20.0",
"ws": "^8.12.0"
},
"dependencies": {
"@dqbd/tiktoken": {
"version": "1.0.2",
"resolved": "https://registry.npmjs.org/@dqbd/tiktoken/-/tiktoken-1.0.2.tgz",
"integrity": "sha512-AjGTBRWsMoVmVeN55NLyupyM8TNamOUBl6tj5t/leLDVup3CFGO9tVagNL1jf3GyZLkWZSTmYVbPQ/M2LEcNzw=="
}
}
},
"chokidar": {
"version": "3.5.3",
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.3.tgz",

View file

@ -23,6 +23,7 @@
"@vscode/vscode-languagedetection": "^1.0.22",
"@waylaidwanderer/chatgpt-api": "^1.28.2",
"axios": "^1.3.4",
"chatgpt-latest": "npm:@waylaidwanderer/chatgpt-api@^1.31.6",
"cors": "^2.8.5",
"crypto": "^1.0.1",
"dotenv": "^16.0.3",