test(translator): align gemini-2.5-flash maxOutputTokens cap to 65536 (#3358) (#3367)

#3358 added the gemini-2.5-flash model spec with its real 65536 max-output cap
(previously the model had no spec and fell to an 8192 default). The Claude→Gemini
clamp test still asserted 8192, so it failed deterministically — the single real
failure behind the v3.8.14 CI red (Unit Tests 3/8, Coverage Shard 3/8, Node
24/26 Compatibility 1/2 all hit this one test; E2E 5/6 was fail-fast collateral).
This commit is contained in:
Diego Rodrigues de Sa e Souza
2026-06-07 08:12:33 -03:00
committed by GitHub
parent 591084052a
commit 67447d1969

View File

@@ -116,7 +116,9 @@ test("Claude -> Gemini clamps maxOutputTokens to the model cap", () => {
false
);
assert.equal(result.generationConfig.maxOutputTokens, 8192);
// #3358 added the gemini-2.5-flash model spec (real cap 65536, not the old
// 8192 default). An over-cap request clamps to the model's true max output.
assert.equal(result.generationConfig.maxOutputTokens, 65536);
});
test("Claude -> Gemini converts text and base64 images to Gemini parts", () => {