Spaces:
Running
Running
Anurag commited on
Update labels for key rotation settings
Browse files- env-builder.js +20 -2
env-builder.js
CHANGED
|
@@ -471,6 +471,24 @@ const FIELDS = [
|
|
| 471 |
"ph": "true",
|
| 472 |
"tag": "advanced"
|
| 473 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 474 |
{
|
| 475 |
"g": "Startup",
|
| 476 |
"icon": "β‘",
|
|
@@ -1309,7 +1327,7 @@ const FIELDS = [
|
|
| 1309 |
"g": "Rotation Pools",
|
| 1310 |
"icon": "π",
|
| 1311 |
"k": "MOONSHOT_API_KEYS",
|
| 1312 |
-
"lbl": "Moonshot
|
| 1313 |
"type": "text",
|
| 1314 |
"tag": "advanced"
|
| 1315 |
},
|
|
@@ -1858,7 +1876,7 @@ const FIELDS = [
|
|
| 1858 |
"g": "Rotation Pools",
|
| 1859 |
"icon": "π",
|
| 1860 |
"k": "KIMI_API_KEYS",
|
| 1861 |
-
"lbl": "Kimi pool",
|
| 1862 |
"type": "text",
|
| 1863 |
"tag": "advanced"
|
| 1864 |
},
|
|
|
|
| 471 |
"ph": "true",
|
| 472 |
"tag": "advanced"
|
| 473 |
},
|
| 474 |
+
{
|
| 475 |
+
"g": "Plugins",
|
| 476 |
+
"icon": "π",
|
| 477 |
+
"k": "KEY_BLACKLIST_COOLDOWN_MS",
|
| 478 |
+
"lbl": "Key rotation base backoff (ms) β time a key is skipped after first 429/rate-limit (doubles on repeated failures; 24h after max strikes)",
|
| 479 |
+
"type": "text",
|
| 480 |
+
"ph": "60000",
|
| 481 |
+
"tag": "advanced"
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"g": "Plugins",
|
| 485 |
+
"icon": "π",
|
| 486 |
+
"k": "KEY_MAX_STRIKES",
|
| 487 |
+
"lbl": "Key rotation max strikes β consecutive 429/quota errors before a key is suspended for 24h",
|
| 488 |
+
"type": "text",
|
| 489 |
+
"ph": "3",
|
| 490 |
+
"tag": "advanced"
|
| 491 |
+
},
|
| 492 |
{
|
| 493 |
"g": "Startup",
|
| 494 |
"icon": "β‘",
|
|
|
|
| 1327 |
"g": "Rotation Pools",
|
| 1328 |
"icon": "π",
|
| 1329 |
"k": "MOONSHOT_API_KEYS",
|
| 1330 |
+
"lbl": "Moonshot pool (merged with KIMI_API_KEYS into one rotation pool)",
|
| 1331 |
"type": "text",
|
| 1332 |
"tag": "advanced"
|
| 1333 |
},
|
|
|
|
| 1876 |
"g": "Rotation Pools",
|
| 1877 |
"icon": "π",
|
| 1878 |
"k": "KIMI_API_KEYS",
|
| 1879 |
+
"lbl": "Kimi pool (merged with MOONSHOT_API_KEYS into one rotation pool)",
|
| 1880 |
"type": "text",
|
| 1881 |
"tag": "advanced"
|
| 1882 |
},
|