Skip to content

Franklin Agent 3.35.3 — docs only

Choose a tag to compare

@VickyXAI VickyXAI released this 20 Jul 23:50

No runtime change. Ships a corrected comment in src/gateway-models.ts.

The note added in 3.35.2 said the gateway's max_output values are "not enforced: Franklin sends max_tokens 16384 to haiku today and the gateway accepts it." Accepting a request and honoring it are different things.

Both gateway handlers clamp with Math.min(request.max_tokens, model.maxOutput) and derive the price quote from the clamped ceiling. An over-cap request is accepted rather than rejected — the handler logs capping to <limit> server-side, where the caller never sees it, and continues. The clamp only becomes visible when a reply is long enough to hit it, which is why the short smoke test behind that claim returned a clean 200 while the model was capped at an eighth of its real ceiling.

The rule the comment supports is unchanged and still correct: static tables stay authoritative. Only the stated reason was wrong, and a wrong reason is how a right rule gets reverted by the next person who checks it.

Underlying gateway-side fix for the wrong values: BlockRunAI/blockrun#266.

Local suite 634 pass.