-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathpackage.json
More file actions
44 lines (44 loc) · 1.79 KB
/
Copy pathpackage.json
File metadata and controls
44 lines (44 loc) · 1.79 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
"name": "openai_forward",
"version": "1.0.0",
"description": "Forward any request to the API endpoint of OpenAI, with the forwarding path being https://api.openai.com/. This service is deployed on a web server on the Internet, which forwards requests on a specified port to OpenAI. Theoretically, this forwarding mechanism can help to connect to the OpenAI API. This service only performs data forwarding and does not involve any processing of private data.",
"main": "index.js",
"scripts": {
"dev": "nodemon --ext \".ts,.js\" --watch \"./src\" --exec \"ts-node ./src/index.ts",
"build": "rimraf ./build && tsc && ncc build ./src/index.ts -t -o build",
"start": "npm run build && node build/index.js",
"pkg:win": "npm run build &&rimraf ./dist/binaries/* && pkg ./build/index.js -t node16-win-x64 -o dist/binaries/forward_openapi",
"pkg:linux": "npm run build &&rimraf ./dist/binaries/* && pkg ./build/index.js -t node16-linux-x64 -o dist/binaries/forward_openapi"
},
"author": "",
"license": "ISC",
"dependencies": {
"cors": "^2.8.5",
"dotenv": "^16.0.3",
"fast-proxy-lite": "^1.1.1",
"log4js": "^6.7.0",
"node-fetch": "^2.6.7",
"proxy-agent": "^5.0.0",
"restana": "^4.9.6"
},
"devDependencies": {
"@types/cors": "^2.8.13",
"@types/node": "^18.11.9",
"@types/node-fetch": "^2.6.2",
"@types/pump": "^1.1.1",
"@typescript-eslint/eslint-plugin": "^5.30.4",
"@typescript-eslint/parser": "^5.30.4",
"@vercel/ncc": "^0.34.0",
"copyfiles": "^2.4.1",
"dotenv-cli": "^6.0.0",
"eslint": "^8.19.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.2.1",
"nodemon": "^2.0.20",
"pkg": "^5.8.1",
"prettier": "^2.7.1",
"rimraf": "^3.0.2",
"ts-node": "^10.9.1",
"typescript": "^4.8.4"
}
}