UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

3 lines • 403 B
import"./session-key-BPgKfU2m.mjs";import{n as normalizeAccountId}from"./account-id-3yqrEsRn.mjs"; //!src/channels/plugins/media-limits.ts const MB=1048576;function resolveChannelMediaMaxBytes(e){const t=normalizeAccountId(e.accountId);const n=e.resolveChannelLimitMb({cfg:e.cfg,accountId:t})||e.cfg.agents?.defaults?.mediaMaxMb;return n?Math.floor(n*MB):void 0}export{resolveChannelMediaMaxBytes as t};