hedgequantx 2.7.44 → 2.7.45
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 +4 -4
package/package.json
CHANGED
package/src/pages/ai-agents.js
CHANGED
|
@@ -253,23 +253,23 @@ const handleCliProxyConnection = async (provider, config, boxWidth) => {
|
|
|
253
253
|
let foundModels = false;
|
|
254
254
|
for (let i = 0; i < 15; i++) {
|
|
255
255
|
await new Promise(r => setTimeout(r, 2000));
|
|
256
|
-
restartSpinner.text = `
|
|
256
|
+
restartSpinner.text = `WAITING FOR MODELS... (${(i + 1) * 2}S)`;
|
|
257
257
|
|
|
258
258
|
const status = await cliproxy.isRunning();
|
|
259
259
|
if (status.running) {
|
|
260
260
|
// Check if models are available (tokens loaded)
|
|
261
261
|
modelsResult = await cliproxy.fetchProviderModels(provider.id);
|
|
262
262
|
if (modelsResult.success && modelsResult.models.length > 0) {
|
|
263
|
-
restartSpinner.succeed(
|
|
263
|
+
restartSpinner.succeed(`${modelsResult.models.length} MODELS AVAILABLE`);
|
|
264
264
|
foundModels = true;
|
|
265
265
|
break;
|
|
266
266
|
}
|
|
267
267
|
}
|
|
268
268
|
}
|
|
269
269
|
|
|
270
|
-
// Stop spinner if still running (no models found after
|
|
270
|
+
// Stop spinner if still running (no models found after 30s)
|
|
271
271
|
if (!foundModels) {
|
|
272
|
-
restartSpinner.warn('
|
|
272
|
+
restartSpinner.warn('MODELS NOT LOADED - USING AUTO MODE');
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
// Show model selection or fallback to auto
|