fix: 移除多余的依赖

This commit is contained in:
ikechan8370 2023-04-04 16:32:10 +08:00
parent 20f46717aa
commit f8e741b0ca
2 changed files with 1 additions and 1 deletions

View file

@ -7,7 +7,6 @@
"chatgpt": "^5.1.1",
"delay": "^5.0.0",
"eventsource": "^2.0.2",
"http": "0.0.1-security",
"https-proxy-agent": "5.0.1",
"keyv": "^4.5.2",
"keyv-file": "^0.2.0",

View file

@ -60,6 +60,7 @@ export class OfficialChatGPTClient {
},
referrer: 'https://chat.openai.com/chat'
}
logger.info('using api3 reverse proxy: ' + url)
let requestLib = url.startsWith('https') ? https : http
const req = requestLib.request(url, option, (res) => {
statusCode = res.statusCode