Fix lints.

This commit is contained in:
Mario Zechner 2025-10-03 23:21:59 +02:00
parent 6d046236bf
commit 99983af597
27 changed files with 855 additions and 1060 deletions

View file

@ -181,7 +181,7 @@ export const startModel = async (
"64k": 65536,
"128k": 131072,
};
const maxTokens = contextSizes[options.context.toLowerCase()] || parseInt(options.context);
const maxTokens = contextSizes[options.context.toLowerCase()] || parseInt(options.context, 10);
vllmArgs = vllmArgs.filter((arg) => !arg.includes("max-model-len"));
vllmArgs.push("--max-model-len", String(maxTokens));
}
@ -251,7 +251,7 @@ WRAPPER
`;
const pidResult = await sshExec(pod.ssh, startCmd);
const pid = parseInt(pidResult.stdout.trim());
const pid = parseInt(pidResult.stdout.trim(), 10);
if (!pid) {
console.error(chalk.red("Failed to start model runner"));
process.exit(1);

View file

@ -141,7 +141,7 @@ export const setupPod = async (
const [id, name, memory] = line.split(",").map((s) => s.trim());
if (id !== undefined) {
gpus.push({
id: parseInt(id),
id: parseInt(id, 10),
name: name || "Unknown",
memory: memory || "Unknown",
});