From b931236c935d07ea70a48b429ee73be8e40057db Mon Sep 17 00:00:00 2001 From: Roo Code Date: Sun, 7 Dec 2025 17:33:16 +0000 Subject: [PATCH 1/2] fix: add Kimi, MiniMax, and Qwen model configurations for Bedrock - Add moonshot.kimi-k2-thinking with 32K max tokens and 256K context - Add minimax.minimax-m2 with 16K max tokens and 230K context - Add qwen.qwen3-next-80b-a3b with 8K max tokens and 262K context - Add qwen.qwen3-coder-480b-a35b-v1:0 with 8K max tokens and 262K context All models configured with native tool support and appropriate pricing. Fixes #9902 --- packages/types/src/providers/bedrock.ts | 44 +++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/packages/types/src/providers/bedrock.ts b/packages/types/src/providers/bedrock.ts index de44e715606..52808800f1a 100644 --- a/packages/types/src/providers/bedrock.ts +++ b/packages/types/src/providers/bedrock.ts @@ -439,6 +439,50 @@ export const bedrockModels = { inputPrice: 0.02, description: "Amazon Titan Text Embeddings V2", }, + "moonshot.kimi-k2-thinking": { + maxTokens: 32_000, + contextWindow: 256_000, + supportsImages: false, + supportsPromptCache: false, + supportsNativeTools: true, + defaultToolProtocol: "native", + inputPrice: 0.6, + outputPrice: 2.5, + description: "Kimi K2 Thinking (1T parameter MoE model with 32B active parameters)", + }, + "minimax.minimax-m2": { + maxTokens: 16_384, + contextWindow: 230_000, + supportsImages: false, + supportsPromptCache: false, + supportsNativeTools: true, + defaultToolProtocol: "native", + inputPrice: 0.3, + outputPrice: 1.2, + description: "MiniMax M2 (230B parameter MoE model with 10B active parameters)", + }, + "qwen.qwen3-next-80b-a3b": { + maxTokens: 8192, + contextWindow: 262_144, + supportsImages: false, + supportsPromptCache: false, + supportsNativeTools: true, + defaultToolProtocol: "native", + inputPrice: 0.15, + outputPrice: 1.2, + description: "Qwen3 Next 80B (MoE model with 3B active parameters)", + }, + "qwen.qwen3-coder-480b-a35b-v1:0": { + maxTokens: 8192, + contextWindow: 262_144, + supportsImages: false, + supportsPromptCache: false, + supportsNativeTools: true, + defaultToolProtocol: "native", + inputPrice: 0.45, + outputPrice: 1.8, + description: "Qwen3 Coder 480B (MoE model with 35B active parameters)", + }, } as const satisfies Record export const BEDROCK_DEFAULT_TEMPERATURE = 0.3 From f0653c3bf30894b11ebe176944059fa6e262f1be Mon Sep 17 00:00:00 2001 From: Roo Code Date: Mon, 8 Dec 2025 02:41:02 +0000 Subject: [PATCH 2/2] feat: add preserveReasoning flag to Kimi and MiniMax reasoning models --- packages/types/src/providers/bedrock.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/types/src/providers/bedrock.ts b/packages/types/src/providers/bedrock.ts index 52808800f1a..f89c270f7a2 100644 --- a/packages/types/src/providers/bedrock.ts +++ b/packages/types/src/providers/bedrock.ts @@ -446,6 +446,7 @@ export const bedrockModels = { supportsPromptCache: false, supportsNativeTools: true, defaultToolProtocol: "native", + preserveReasoning: true, inputPrice: 0.6, outputPrice: 2.5, description: "Kimi K2 Thinking (1T parameter MoE model with 32B active parameters)", @@ -457,6 +458,7 @@ export const bedrockModels = { supportsPromptCache: false, supportsNativeTools: true, defaultToolProtocol: "native", + preserveReasoning: true, inputPrice: 0.3, outputPrice: 1.2, description: "MiniMax M2 (230B parameter MoE model with 10B active parameters)",