hedgequantx 2.7.61 → 2.7.62
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/pages/ai-agents.js +2 -19
package/package.json
CHANGED
package/src/pages/ai-agents.js
CHANGED
|
@@ -237,26 +237,9 @@ const handleCliProxyConnection = async (provider, config, boxWidth) => {
|
|
|
237
237
|
try { loginResult.childProcess.kill(); } catch (e) { /* ignore */ }
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
//
|
|
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
|
-
|
|
248
|
-
// Fetch models from CLIProxy (retry a few times if needed)
|
|
249
|
-
let modelsResult = { success: false, models: [] };
|
|
240
|
+
// Fetch models from CLIProxy
|
|
250
241
|
const spinner = ora({ text: 'LOADING MODELS...', color: 'yellow' }).start();
|
|
251
|
-
|
|
252
|
-
for (let i = 0; i < 10; i++) {
|
|
253
|
-
modelsResult = await cliproxy.fetchProviderModels(provider.id);
|
|
254
|
-
if (modelsResult.success && modelsResult.models.length > 0) {
|
|
255
|
-
spinner.stop();
|
|
256
|
-
break;
|
|
257
|
-
}
|
|
258
|
-
await new Promise(r => setTimeout(r, 1000));
|
|
259
|
-
}
|
|
242
|
+
const modelsResult = await cliproxy.fetchProviderModels(provider.id);
|
|
260
243
|
spinner.stop();
|
|
261
244
|
|
|
262
245
|
if (modelsResult.success && modelsResult.models.length > 0) {
|