From 35b141df4d904ef7b60b8d6879d3aa6204bdf512 Mon Sep 17 00:00:00 2001 From: Yomuko Date: Wed, 6 Nov 2024 13:25:11 +0800 Subject: [PATCH] fix: api exception call not throwing error --- dist/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 68d3c97..2dd8da3 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6042,7 +6042,7 @@ var import_dotenv = __toESM(require_main(), 1); import_dotenv.default.config(); var Config = class { constructor() { - this.PORT = process.env.PORT || "/"; + this.PORT = process.env.PORT || "8787"; this.API_PREFIX = process.env.API_PREFIX || "/"; this.API_KEY = process.env.API_KEY || ""; this.MAX_RETRY_COUNT = process.env.MAX_RETRY_COUNT || 3; @@ -6335,9 +6335,9 @@ __name(newChatCompletionWithModel, "newChatCompletionWithModel"); if (typeof addEventListener === "function") return; const ittyServer = createServerAdapter(router.fetch); - console.log(`Listening on http://localhost:${config2.PORT || 8787}`); + console.log(`Listening on http://localhost:${config2.PORT}`); const httpServer = createServer2(ittyServer); - httpServer.listen(config2.PORT || 8787); + httpServer.listen(config2.PORT); })(); var api_default = router; export {