8900 commited on
Commit
1f60d2d
·
verified ·
1 Parent(s): 14fca12

Update setup-hf-config.mjs

Browse files
Files changed (1) hide show
  1. setup-hf-config.mjs +4 -2
setup-hf-config.mjs CHANGED
@@ -169,7 +169,7 @@ async function setupTelegram() {
169
  }
170
 
171
  // ---- main ----
172
- (async function() {
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
- }).catch(function(e) {
 
 
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
  });