openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
3 lines • 813 B
JavaScript
import{r as defaultRuntime}from"./runtime-DIcLIHcp.mjs";import{t as formatCliCommand}from"./command-format-D7KhNLP0.mjs";import{n as runCommandWithRuntime,t as resolveOptionFromCommand}from"./cli-utils-Dm67QQ71.mjs";
//!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.`)}export{defaultRuntime,rejectAgentScopedModelCommand,resolveModelAgentOption,runModelsCommand};