Update index.js

should import DEBUG
This commit is contained in:
Fayland Lam
2023-03-28 09:20:50 +08:00
committed by GitHub
parent 9669484fe0
commit aa2e636ec8
+2 -2
View File
@@ -1,7 +1,7 @@
import express, { json, urlencoded } from 'express';
import { completions, chatCompletions } from './routes.js';
import { corsMiddleware, rateLimitMiddleware } from './middlewares.js';
import { SERVER_PORT } from './config.js';
import { DEBUG, SERVER_PORT } from './config.js';
let app = express();
@@ -30,4 +30,4 @@ app.post("/v1/chat/completions", chatCompletions);
// Start server
app.listen(SERVER_PORT, () => {
console.log(`Listening on ${SERVER_PORT} ...`);
});
});