v0.5.4 - Fix lockstep versioning and update all packages

This commit is contained in:
Mario Zechner 2025-08-09 19:37:12 +02:00
parent 3a9c3a2ed6
commit f579a3f112
7 changed files with 23 additions and 17 deletions

View file

@ -545,8 +545,11 @@ export const viewLogs = async (name: string, options: { pod?: string }) => {
* Show known models and their hardware requirements
*/
export const showKnownModels = async () => {
const modelsJson = await import("../models.json", { assert: { type: "json" } });
const models = modelsJson.default.models;
const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
const modelsJsonPath = join(__dirname, "..", "models.json");
const modelsJson = JSON.parse(readFileSync(modelsJsonPath, "utf-8"));
const models = modelsJson.models;
// Get active pod info if available
const activePod = getActivePod();