From d8a392a47766ee3deb17dfdff75ec285cfab0e92 Mon Sep 17 00:00:00 2001 From: Abhishek Divekar Date: Sun, 28 Jun 2026 22:06:22 +0530 Subject: [PATCH] fix(command-code): omit max_tokens when client omits it; correct registry caps (#5221) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Integrated into release/v3.8.40 — corrective max_tokens part already cherry-picked (e8d13ec17); this brings the registry maxOutputTokens caps. Thanks @adivekar-utexas. --- .../providers/registry/command-code/index.ts | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/open-sse/config/providers/registry/command-code/index.ts b/open-sse/config/providers/registry/command-code/index.ts index b3a35787b8..6bc96c2372 100644 --- a/open-sse/config/providers/registry/command-code/index.ts +++ b/open-sse/config/providers/registry/command-code/index.ts @@ -74,70 +74,70 @@ export const command_codeProvider: RegistryEntry = { name: "DeepSeek V4 Pro (CC)", supportsReasoning: true, contextLength: 1000000, - maxOutputTokens: 384000, + maxOutputTokens: 131072, }, { id: "deepseek/deepseek-v4-flash", name: "DeepSeek V4 Flash (CC)", supportsReasoning: true, contextLength: 1000000, - maxOutputTokens: 384000, + maxOutputTokens: 131072, }, { id: "moonshotai/Kimi-K2.6", name: "Kimi K2.6 (CC)", supportsReasoning: true, contextLength: 262144, - maxOutputTokens: 131072, + maxOutputTokens: 65536, }, { id: "moonshotai/Kimi-K2.5", name: "Kimi K2.5 (CC)", supportsReasoning: true, contextLength: 262144, - maxOutputTokens: 131072, + maxOutputTokens: 65536, }, { id: "zai-org/GLM-5.1", name: "GLM-5.1 (CC)", supportsReasoning: true, contextLength: 200000, - maxOutputTokens: 131072, + maxOutputTokens: 32768, }, { id: "zai-org/GLM-5", name: "GLM-5 (CC)", supportsReasoning: true, contextLength: 200000, - maxOutputTokens: 131072, + maxOutputTokens: 32768, }, { id: "MiniMaxAI/MiniMax-M2.7", name: "MiniMax M2.7 (CC)", supportsReasoning: true, contextLength: 1048576, - maxOutputTokens: 131072, + maxOutputTokens: 65536, }, { id: "MiniMaxAI/MiniMax-M2.5", name: "MiniMax M2.5 (CC)", supportsReasoning: true, contextLength: 1048576, - maxOutputTokens: 131072, + maxOutputTokens: 65536, }, { id: "Qwen/Qwen3.6-Max-Preview", name: "Qwen 3.6 Max (CC)", supportsReasoning: true, contextLength: 1000000, - maxOutputTokens: 131072, + maxOutputTokens: 32768, }, { id: "Qwen/Qwen3.6-Plus", name: "Qwen 3.6 Plus (CC)", supportsReasoning: true, contextLength: 1000000, - maxOutputTokens: 131072, + maxOutputTokens: 32768, }, ], };