openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
13 lines (12 loc) • 594 B
JavaScript
//#region src/shared/model-runtime-route.ts
const CLAUDE_CLI_SETUP_GUIDANCE = "If Claude Code is signed out, run claude auth login on the Gateway host, or choose another model.";
/** Presentation only: a provider name alone does not identify Anthropic's execution route. */
function resolveModelRuntimeRoute(e, t) {
if (t === "claude-cli" || e === "claude-cli" && !t) return "claudeCli";
if (e === "anthropic") {
if (t === "openclaw") return "anthropicApi";
if (!t) return "anthropicConfigured";
}
}
//#endregion
export { resolveModelRuntimeRoute as n, CLAUDE_CLI_SETUP_GUIDANCE as t };