alwaysai
Version:
The alwaysAI command-line interface (CLI)
12 lines • 597 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.modelVersionPackageCacheGetPath = void 0;
const path_1 = require("path");
const paths_1 = require("../../paths");
const model_id_1 = require("./model-id");
function modelVersionPackageCacheGetPath(opts) {
const { publisher, name } = model_id_1.ModelId.parse(opts.id);
return (0, path_1.join)(paths_1.MODEL_PACKAGE_CACHE_DIR, `${publisher}.${name}.${opts.version}.tar.gz`);
}
exports.modelVersionPackageCacheGetPath = modelVersionPackageCacheGetPath;
//# sourceMappingURL=model-version-package-path.js.map