8900 commited on
Update setup-hf-config.mjs
Browse files- setup-hf-config.mjs +4 -2
setup-hf-config.mjs
CHANGED
|
@@ -169,7 +169,7 @@ async function setupTelegram() {
|
|
| 169 |
}
|
| 170 |
|
| 171 |
// ---- main ----
|
| 172 |
-
|
| 173 |
await setupTelegram();
|
| 174 |
|
| 175 |
try {
|
|
@@ -184,7 +184,9 @@ async function setupTelegram() {
|
|
| 184 |
}
|
| 185 |
|
| 186 |
console.log("[setup] Done. auth=" + (gatewayToken ? "token" : "password") + " model=" + defaultModel + " proxies=" + trustedProxies.length);
|
| 187 |
-
}
|
|
|
|
|
|
|
| 188 |
console.error("[setup] Fatal: " + e.message);
|
| 189 |
process.exit(1);
|
| 190 |
});
|
|
|
|
| 169 |
}
|
| 170 |
|
| 171 |
// ---- main ----
|
| 172 |
+
async function main() {
|
| 173 |
await setupTelegram();
|
| 174 |
|
| 175 |
try {
|
|
|
|
| 184 |
}
|
| 185 |
|
| 186 |
console.log("[setup] Done. auth=" + (gatewayToken ? "token" : "password") + " model=" + defaultModel + " proxies=" + trustedProxies.length);
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
main().then(() => process.exit(0)).catch((e) => {
|
| 190 |
console.error("[setup] Fatal: " + e.message);
|
| 191 |
process.exit(1);
|
| 192 |
});
|