UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

14 lines (13 loc) 630 B
import "./defaults-CdX9UGcX.js"; import { a as resolveAgentModelPrimaryValue } from "./model-input-BuGMCNOz.js"; import { n as parseModelRef } from "./model-selection-normalize-D1HuPOqZ.js"; //#region src/commands/doctor/shared/primary-model-ref.ts function resolveDoctorPrimaryModelRef(cfg, agentModel) { const raw = resolveAgentModelPrimaryValue(agentModel) ?? resolveAgentModelPrimaryValue(cfg.agents?.defaults?.model) ?? "gpt-5.6-sol"; return parseModelRef(raw, "openai", { allowPluginNormalization: false }) ?? { provider: "openai", model: "gpt-5.6-sol" }; } //#endregion export { resolveDoctorPrimaryModelRef as t };