mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 06:04:51 +00:00
Fix lints.
This commit is contained in:
parent
6d046236bf
commit
99983af597
27 changed files with 855 additions and 1060 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue