MCPcopy
hub / github.com/simstudioai/sim / getBase64DecodedByteBudget

Function getBase64DecodedByteBudget

apps/sim/lib/workflows/streaming/streaming.ts:186–188  ·  view source on GitHub ↗
(remainingJsonBytes: number)

Source from the content-addressed store, hash-verified

184}
185
186function getBase64DecodedByteBudget(remainingJsonBytes: number): number {
187 return Math.max(0, Math.floor(((remainingJsonBytes - 2) * 3) / 4))
188}
189
190function assertSelectedOutputBytes(value: unknown): number {
191 const bytes = getInlineJsonByteLength(value) ?? 0

Callers 2

buildMinimalResultFunction · 0.85
onBlockCompleteCallbackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected