mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 12:00:15 +00:00
Fix pods CLI: remove reference to non-existent stopAllModels
This commit is contained in:
parent
c86f2a0136
commit
8ed6f6dd85
1 changed files with 1 additions and 3 deletions
|
|
@ -4,7 +4,7 @@ import { spawn } from "child_process";
|
||||||
import { readFileSync } from "fs";
|
import { readFileSync } from "fs";
|
||||||
import { dirname, join } from "path";
|
import { dirname, join } from "path";
|
||||||
import { fileURLToPath } from "url";
|
import { fileURLToPath } from "url";
|
||||||
import { listModels, startModel, stopModel, viewLogs } from "./commands/models.js";
|
import { listModels, showKnownModels, startModel, stopAllModels, stopModel, viewLogs } from "./commands/models.js";
|
||||||
import { listPods, removePodCommand, setupPod, switchActivePod } from "./commands/pods.js";
|
import { listPods, removePodCommand, setupPod, switchActivePod } from "./commands/pods.js";
|
||||||
import { promptModel } from "./commands/prompt.js";
|
import { promptModel } from "./commands/prompt.js";
|
||||||
import { getActivePod, loadConfig } from "./config.js";
|
import { getActivePod, loadConfig } from "./config.js";
|
||||||
|
|
@ -241,7 +241,6 @@ try {
|
||||||
const modelId = args[1];
|
const modelId = args[1];
|
||||||
if (!modelId) {
|
if (!modelId) {
|
||||||
// Show available models
|
// Show available models
|
||||||
const { showKnownModels } = await import("./commands/models.js");
|
|
||||||
await showKnownModels();
|
await showKnownModels();
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
@ -306,7 +305,6 @@ try {
|
||||||
const name = args[1];
|
const name = args[1];
|
||||||
if (!name) {
|
if (!name) {
|
||||||
// Stop all models on the active pod
|
// Stop all models on the active pod
|
||||||
const { stopAllModels } = await import("./commands/models.js");
|
|
||||||
await stopAllModels({ pod: podOverride });
|
await stopAllModels({ pod: podOverride });
|
||||||
} else {
|
} else {
|
||||||
await stopModel(name, { pod: podOverride });
|
await stopModel(name, { pod: podOverride });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue