UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) • 559 B
import "./session-key-CqAyZeVk.mjs"; import { n as normalizeAccountId } from "./account-id-BqKT3GuY.mjs"; //#region src/channels/plugins/media-limits.ts const MB = 1048576; /** Resolves channel media limit bytes from account-specific config or agent defaults. */ 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; } //#endregion export { resolveChannelMediaMaxBytes as t };