Update server.js
Browse files
server.js
CHANGED
|
@@ -42,12 +42,17 @@ const PROVIDERS = [
|
|
| 42 |
id: "ventarys-mirror",
|
| 43 |
url: "https://ventarys-mirror-1.hf.space/v1/chat/completions",
|
| 44 |
proxySecret: "sk-52650650a50f0v10vg150vs0v"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
}
|
| 46 |
];
|
| 47 |
|
| 48 |
const MAX_PER_PROVIDER = 3;
|
| 49 |
const QUEUE_TIMEOUT = 25000;
|
| 50 |
-
let currentLoad = { "llm7": 0, "ventarys-mirror": 0 };
|
| 51 |
|
| 52 |
// --- RATE LIMITING (Basado en la IP real del usuario) ---
|
| 53 |
const limiter = rateLimit({
|
|
|
|
| 42 |
id: "ventarys-mirror",
|
| 43 |
url: "https://ventarys-mirror-1.hf.space/v1/chat/completions",
|
| 44 |
proxySecret: "sk-52650650a50f0v10vg150vs0v"
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
id: "ventarys-mirror-2",
|
| 48 |
+
url: "https://ventarys-mirror-2.hf.space/v1/chat/completions",
|
| 49 |
+
proxySecret: "sk-52650650a50f0v10vg150vs0v"
|
| 50 |
}
|
| 51 |
];
|
| 52 |
|
| 53 |
const MAX_PER_PROVIDER = 3;
|
| 54 |
const QUEUE_TIMEOUT = 25000;
|
| 55 |
+
let currentLoad = { "llm7": 0, "ventarys-mirror": 0 , "ventarys-mirror-2": 0 };
|
| 56 |
|
| 57 |
// --- RATE LIMITING (Basado en la IP real del usuario) ---
|
| 58 |
const limiter = rateLimit({
|