UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

14 lines (13 loc) • 355 B
//#region src/config/model-cost.ts /** Merge rates without letting inherited tiers silently replace authored flat or zero pricing. */ function mergeModelCost(e, t) { if (!e || !t) return t ?? e; if (Object.keys(t).length === 0) return e; const { tieredPricing: n, ...r } = e; return { ...r, ...t }; } //#endregion export { mergeModelCost as t };