UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

29 lines (28 loc) • 919 B
import { i as getCurrentPluginMetadataSnapshot } from "./current-plugin-metadata-snapshot-H0TP3PFt.mjs"; import { i as buildModelAliasIndex } from "./model-selection-shared-9Kz63Hhm.mjs"; import { n as resolveDefaultModelForAgent } from "./model-selection-config-Bvf5WqHo.mjs"; import "./model-selection-C2A4Wyix.mjs"; //#region src/auto-reply/reply/directive-handling.defaults.ts /** Resolve default provider/model plus alias index for directive parsing. */ function resolveDefaultModel(e) { const t = getCurrentPluginMetadataSnapshot({ config: e.cfg, allowWorkspaceScopedSnapshot: true }); const n = { cfg: e.cfg, agentId: e.agentId, manifestPlugins: t }; const { provider: r, model: i } = resolveDefaultModelForAgent(n); return { defaultProvider: r, defaultModel: i, aliasIndex: buildModelAliasIndex({ ...n, defaultProvider: r }) }; } //#endregion export { resolveDefaultModel as t };