UNPKG

alwaysai

Version:

The alwaysAI command-line interface (CLI)

17 lines 701 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const alwayscli_1 = require("@alwaysai/alwayscli"); const rpc_client_1 = require("../../rpc-client"); const chalk_1 = require("chalk"); exports.list = alwayscli_1.createLeaf({ name: 'list', description: 'List alwaysAI models', async action() { console.error(`${chalk_1.default.red('WARNING:')} This command is deprecated`); const rpcClient = await rpc_client_1.RpcClient(); const modelVersions = await rpcClient.listModelVersions(); const uniqueIds = [...new Set(modelVersions.map(({ id }) => id))]; return uniqueIds.join('\n'); }, }); //# sourceMappingURL=list.js.map