Skip to content
This repository was archived by the owner on May 15, 2026. It is now read-only.

Commit bea7626

Browse files
roomote[bot]roomotemrubens
authored
fix: add Kimi, MiniMax, and Qwen model configurations for Bedrock (#9905)
* 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 * fix: add preserveReasoning flag and update Kimi K2 context window - Added preserveReasoning: true to moonshot.kimi-k2-thinking model - Added preserveReasoning: true to minimax.minimax-m2 model - Updated Kimi K2 context window from 256_000 to 262_144 These changes ensure: 1. Reasoning traces are properly preserved for both models 2. Roo correctly recognizes task completion 3. Tool calls within reasoning traces are handled appropriately 4. Context window matches AWS Console specification * fix: update MiniMax M2 context window to 196_608 for Bedrock Based on AWS CLI testing, the actual context window limit for MiniMax M2 on Bedrock is 196,608 tokens, not 230,000 as initially configured. * Update packages/types/src/providers/bedrock.ts Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com> --------- Co-authored-by: Roo Code <roomote@roocode.com> Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com> Co-authored-by: roomote[bot] <219738659+roomote[bot]@users.noreply.github.com>
1 parent 1f7e1ee commit bea7626

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

packages/types/src/providers/bedrock.ts

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,52 @@ export const bedrockModels = {
439439
inputPrice: 0.02,
440440
description: "Amazon Titan Text Embeddings V2",
441441
},
442+
"moonshot.kimi-k2-thinking": {
443+
maxTokens: 32_000,
444+
contextWindow: 262_144,
445+
supportsImages: false,
446+
supportsPromptCache: false,
447+
supportsNativeTools: true,
448+
defaultToolProtocol: "native",
449+
preserveReasoning: true,
450+
inputPrice: 0.6,
451+
outputPrice: 2.5,
452+
description: "Kimi K2 Thinking (1T parameter MoE model with 32B active parameters)",
453+
},
454+
"minimax.minimax-m2": {
455+
maxTokens: 16_384,
456+
contextWindow: 196_608,
457+
supportsImages: false,
458+
supportsPromptCache: false,
459+
supportsNativeTools: true,
460+
defaultToolProtocol: "native",
461+
preserveReasoning: true,
462+
inputPrice: 0.3,
463+
outputPrice: 1.2,
464+
description: "MiniMax M2 (230B parameter MoE model with 10B active parameters)",
465+
},
466+
"qwen.qwen3-next-80b-a3b": {
467+
maxTokens: 8192,
468+
contextWindow: 262_144,
469+
supportsImages: false,
470+
supportsPromptCache: false,
471+
supportsNativeTools: true,
472+
defaultToolProtocol: "native",
473+
inputPrice: 0.15,
474+
outputPrice: 1.2,
475+
description: "Qwen3 Next 80B (MoE model with 3B active parameters)",
476+
},
477+
"qwen.qwen3-coder-480b-a35b-v1:0": {
478+
maxTokens: 8192,
479+
contextWindow: 262_144,
480+
supportsImages: false,
481+
supportsPromptCache: false,
482+
supportsNativeTools: true,
483+
defaultToolProtocol: "native",
484+
inputPrice: 0.45,
485+
outputPrice: 1.8,
486+
description: "Qwen3 Coder 480B (MoE model with 35B active parameters)",
487+
},
442488
} as const satisfies Record<string, ModelInfo>
443489

444490
export const BEDROCK_DEFAULT_TEMPERATURE = 0.3

0 commit comments

Comments
 (0)