UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

17 lines (16 loc) • 886 B
import { r as defaultRuntime } from "./runtime-B-SLYP-m.mjs"; import { t as formatCliCommand } from "./command-format-CqdwUgPk.mjs"; import { n as runCommandWithRuntime, t as resolveOptionFromCommand } from "./cli-utils-BPmaaZlG.mjs"; //#region src/cli/models-cli.runtime.ts function runModelsCommand(e) { return runCommandWithRuntime(defaultRuntime, e); } function resolveModelAgentOption(e) { return resolveOptionFromCommand(e, "agent"); } function rejectAgentScopedModelCommand(e, t) { if (resolveOptionFromCommand(e, "agent") === void 0) return; throw new Error(`openclaw models ${t} does not support --agent; it is global and never agent-scoped. Remove --agent, or run ${formatCliCommand("openclaw agents list")} and set the per-agent model in agent config.`); } //#endregion export { defaultRuntime, rejectAgentScopedModelCommand, resolveModelAgentOption, runModelsCommand };