Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

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

Diego Rodrigues de Sa e Souza000d60b90749
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", () => {