open-agents-ai 0.184.60 → 0.184.61
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/dist/index.js +13 -8
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -49450,15 +49450,20 @@ async function showCohereDashboard(ctx) {
|
|
|
49450
49450
|
}
|
|
49451
49451
|
}
|
|
49452
49452
|
async function showModelPicker(ctx, local = false) {
|
|
49453
|
+
const BRAILLE_CYCLE = ["\u2800", "\u2840", "\u28C0", "\u28C4", "\u28E4", "\u28E6", "\u28F6", "\u28F7", "\u28FF", "\u28F7", "\u28F6", "\u28E6", "\u28E4", "\u28C4", "\u28C0", "\u2840"];
|
|
49454
|
+
let spinFrame = 0;
|
|
49455
|
+
const spinTimer = setInterval(() => {
|
|
49456
|
+
process.stdout.write(`\r ${c2.cyan("\u25CF")} Loading models ${c2.cyan(BRAILLE_CYCLE[spinFrame++ % BRAILLE_CYCLE.length])}`);
|
|
49457
|
+
}, 80);
|
|
49453
49458
|
try {
|
|
49454
|
-
|
|
49455
|
-
|
|
49456
|
-
|
|
49457
|
-
|
|
49458
|
-
|
|
49459
|
-
|
|
49460
|
-
|
|
49461
|
-
process.stdout.write(
|
|
49459
|
+
let models;
|
|
49460
|
+
try {
|
|
49461
|
+
models = await fetchModels(ctx.config.backendUrl, ctx.config.apiKey);
|
|
49462
|
+
} finally {
|
|
49463
|
+
clearInterval(spinTimer);
|
|
49464
|
+
process.stdout.write(`\r${" ".repeat(40)}\r`);
|
|
49465
|
+
}
|
|
49466
|
+
process.stdout.write(` ${c2.green("\u2714")} ${models.length} models loaded
|
|
49462
49467
|
`);
|
|
49463
49468
|
if (models.length === 0) {
|
|
49464
49469
|
renderWarning("No models found.");
|
package/package.json
CHANGED