UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 723 B
import{i as getCurrentPluginMetadataSnapshot}from"./current-plugin-metadata-snapshot-CYi8VAby.mjs";import{i as buildModelAliasIndex}from"./model-selection-shared-CIOFxJ36.mjs";import{n as resolveDefaultModelForAgent}from"./model-selection-config-CnvHkHXn.mjs";import"./model-selection-CNHinoVN.mjs"; //!src/auto-reply/reply/directive-handling.defaults.ts 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})}}export{resolveDefaultModel as t};