Remove Kimi K2 Thinking model and thinking toggle#413
Remove Kimi K2 Thinking model and thinking toggle#413AnthonyRonning wants to merge 2 commits intomasterfrom
Conversation
- Remove kimi-k2-thinking from MODEL_CONFIG - Update CATEGORY_MODELS.reasoning_on to use kimi-k2-5 - Add backwards compatibility alias: kimi-k2-thinking → kimi-k2-5 - Remove thinking toggle buttons and Brain icon from UnifiedChat - Clean up unused imports Fixes #412 Co-Authored-By: Anthony <AnthonyRonning@users.noreply.github.com>
📝 WalkthroughWalkthroughRemoved the separate "kimi-k2-thinking" model and all reasoning-category UI/logic from the frontend; simplified category-to-model mappings and model selection flow; added a backwards-compatible alias mapping "kimi-k2-thinking" → "kimi-k2-5". Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 3 | ❌ 1❌ Failed checks (1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
|
@claude we need to double check marketing and pricing pages too. |
|
Claude finished @AnthonyRonning's task in 1m 16s —— View job Marketing and Pricing Pages Check Complete ✅I've thoroughly searched all marketing and pricing-related files for any references to the removed Kimi K2 Thinking model or the thinking toggle feature. Files CheckedMarketing & Pricing Pages:
Documentation:
Found References (All Correct!)
ConclusionNo changes needed! 🎉 The marketing and pricing pages are already correct. All references use the proper model names:
The PR successfully removed the deprecated model from the codebase while keeping the marketing materials accurate. |
Greptile OverviewGreptile SummaryThis PR successfully removes the Key Changes:
Incomplete Cleanup: Confidence Score: 4/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant User
participant ModelSelector
participant LocalState
participant UnifiedChat
participant Utils
Note over ModelSelector: Remove kimi-k2-thinking from MODEL_CONFIG
Note over ModelSelector: Remove reasoning category & reasoning_on/off from CATEGORY_MODELS
Note over ModelSelector: Remove Brain icon import
User->>ModelSelector: Select model
ModelSelector->>LocalState: setModel(modelId)
Note over LocalState: thinkingEnabled state still exists (unused)
User->>UnifiedChat: Interact with chat
Note over UnifiedChat: Thinking toggle buttons removed
Note over UnifiedChat: Brain icon import removed
Note over UnifiedChat: CATEGORY_MODELS import simplified
User->>Utils: aliasModelName("kimi-k2-thinking")
Utils-->>User: Returns "kimi-k2-5"
Note over Utils: Backwards compatibility preserved
|
|
@claude i never said to replace kimi-k2 with kimi-k2.5 I told you to remove the "reasoning on" thinking brain logic completely. And as a model alias fall back to kimi-k2. but it should be the primary coding model. Not replacing the reasoning on logic. |
|
Claude finished @AnthonyRonning's task in 1m 24s —— View job Fixing the implementation
|
|
@claude simply remove kimi k2 everywhere, remove the reasoning on logic everywhere, and only keep the simple alias in the method that exists in frontend/src/utils/utils.ts You're over thinking it. the kimi k2 thinking model is gone. remove it. |
|
Claude finished @AnthonyRonning's task in 4m 12s —— View job Implementation Complete ✅I've simplified the implementation by completely removing the reasoning category logic as requested. Tasks Completed
Changes MadeThe implementation has been simplified to just remove the kimi-k2-thinking model and all reasoning category logic: ModelSelector.tsx:
utils.ts:
Verification✅ Format passed --- | Current branch |
Simplified the implementation by completely removing the reasoning_on and reasoning_off category logic as requested. The kimi-k2-thinking model was already removed, now the reasoning category and all its associated logic have been removed as well. Changes: - Removed reasoning_on and reasoning_off from CATEGORY_MODELS - Removed reasoning category from CATEGORY_INFO - Removed thinking sync useEffect - Removed reasoning checks from getCurrentCategory() - Simplified handleCategorySelect() to remove reasoning logic - Removed "reasoning" from category list in dropdown - Removed reasoning checks from isActive calculation - Removed Brain icon import - Removed unused thinkingEnabled/setThinkingEnabled destructuring - Updated ModelCategory type to remove "reasoning" Co-Authored-By: Anthony <AnthonyRonning@users.noreply.github.com>
Deploying maple with
|
| Latest commit: |
ce9d72c
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://07829b93.maple-ca8.pages.dev |
| Branch Preview URL: | https://claude-issue-412-20260203-22.maple-ca8.pages.dev |
Additional Comments (5)
Prompt To Fix With AIThis is a comment left during a code review.
Path: frontend/src/state/LocalStateContext.tsx
Line: 67:68
Comment:
`thinkingEnabled` state is no longer used after removing the thinking toggle - should be removed
```suggestion
hasWhisperModel: true, // Default to true to avoid hiding button during loading
billingStatus: null as BillingStatus | null,
```
How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix With AIThis is a comment left during a code review.
Path: frontend/src/state/LocalStateContext.tsx
Line: 384:386
Comment:
`setThinkingEnabled` function is no longer used - should be removed along with the state variable
```suggestion
```
How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix With AIThis is a comment left during a code review.
Path: frontend/src/state/LocalStateContext.tsx
Line: 397:398
Comment:
Remove `thinkingEnabled` and `setThinkingEnabled` from context value since they're no longer used
```suggestion
setHasWhisperModel,
userPrompt: localState.userPrompt,
```
How can I resolve this? If you propose a fix, please make it concise.
Prompt To Fix With AIThis is a comment left during a code review.
Path: frontend/src/state/LocalStateContextDef.ts
Line: 34:36
Comment:
Remove `thinkingEnabled` and `setThinkingEnabled` from type definition since thinking toggle was removed
```suggestion
setHasWhisperModel: (hasWhisper: boolean) => void;
userPrompt: string;
```
How can I resolve this? If you propose a fix, please make it concise.
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! Prompt To Fix With AIThis is a comment left during a code review.
Path: frontend/src/state/LocalStateContextDef.ts
Line: 77:78
Comment:
Remove `thinkingEnabled` and `setThinkingEnabled` from default context value
```suggestion
setHasWhisperModel: () => void 0,
userPrompt: "",
```
<sub>Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!</sub>
How can I resolve this? If you propose a fix, please make it concise. |
|
this is all wrong |

Summary
Removes the Kimi K2 Thinking model from the codebase as requested in #412.
Changes
kimi-k2-thinkingfrom MODEL_CONFIGCATEGORY_MODELS.reasoning_onto usekimi-k2-5kimi-k2-thinking→kimi-k2-5Testing
Fixes #412
Generated with Claude Code
Summary by CodeRabbit
Bug Fixes
Chores