@pollinations/cli 0.1.81 → 0.1.82
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 +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -14,7 +14,7 @@ var init_package = __esm({
|
|
|
14
14
|
"package.json"() {
|
|
15
15
|
package_default = {
|
|
16
16
|
name: "@pollinations/cli",
|
|
17
|
-
version: "0.1.
|
|
17
|
+
version: "0.1.82",
|
|
18
18
|
description: "The Pollinations CLI \u2014 for humans, AI agents, and everything in between",
|
|
19
19
|
type: "module",
|
|
20
20
|
bin: {
|
|
@@ -6044,7 +6044,9 @@ var modelsCommand = new Command20("models").description(
|
|
|
6044
6044
|
);
|
|
6045
6045
|
}
|
|
6046
6046
|
const rows = await fetchModelStats(windowMinutes);
|
|
6047
|
-
const
|
|
6047
|
+
const filtered = opts.type !== "all" || params.size || opts.voices;
|
|
6048
|
+
if (!opts.reliability) params.set("reliability", "all");
|
|
6049
|
+
const names = filtered ? new Set((await listModels()).map((m) => m.name)) : void 0;
|
|
6048
6050
|
const valid = rows.filter(
|
|
6049
6051
|
(r) => r.model !== "undefined" && Number(r.total_requests ?? 0) > 1 && (!names || names.has(String(r.model)))
|
|
6050
6052
|
);
|