hedgequantx 2.7.50 → 2.7.52
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/app.js +2 -1
- package/src/pages/ai-agents.js +9 -1
package/package.json
CHANGED
package/src/app.js
CHANGED
package/src/pages/ai-agents.js
CHANGED
|
@@ -237,11 +237,19 @@ const handleCliProxyConnection = async (provider, config, boxWidth) => {
|
|
|
237
237
|
try { loginResult.childProcess.kill(); } catch (e) { /* ignore */ }
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
+
// Restart CLIProxy to load new tokens
|
|
241
|
+
const restartSpinner = ora({ text: 'RESTARTING CLIPROXY...', color: 'yellow' }).start();
|
|
242
|
+
await cliproxy.stop();
|
|
243
|
+
await new Promise(r => setTimeout(r, 1000));
|
|
244
|
+
await cliproxy.start();
|
|
245
|
+
await new Promise(r => setTimeout(r, 2000));
|
|
246
|
+
restartSpinner.stop();
|
|
247
|
+
|
|
240
248
|
// Fetch models from CLIProxy (retry a few times if needed)
|
|
241
249
|
let modelsResult = { success: false, models: [] };
|
|
242
250
|
const spinner = ora({ text: 'LOADING MODELS...', color: 'yellow' }).start();
|
|
243
251
|
|
|
244
|
-
for (let i = 0; i <
|
|
252
|
+
for (let i = 0; i < 10; i++) {
|
|
245
253
|
modelsResult = await cliproxy.fetchProviderModels(provider.id);
|
|
246
254
|
if (modelsResult.success && modelsResult.models.length > 0) {
|
|
247
255
|
spinner.stop();
|