From 000d60b90749fff4e8e268181224308e36f2b4d2 Mon Sep 17 00:00:00 2001 From: Diego Rodrigues de Sa e Souza <8016841+diegosouzapw@users.noreply.github.com> Date: Sun, 7 Jun 2026 08:12:33 -0300 Subject: [PATCH] test(translator): align gemini-2.5-flash maxOutputTokens cap to 65536 (#3358) (#3367) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #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). --- tests/unit/translator-claude-to-gemini.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/translator-claude-to-gemini.test.ts b/tests/unit/translator-claude-to-gemini.test.ts index b178a72b6b..1252c77dac 100644 --- a/tests/unit/translator-claude-to-gemini.test.ts +++ b/tests/unit/translator-claude-to-gemini.test.ts @@ -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", () => {