feat: add MiniMax M2.7 as configurable backend for Ask about Code#53
Open
octo-patch wants to merge 1 commit intojohannesjo:mainfrom
Open
feat: add MiniMax M2.7 as configurable backend for Ask about Code#53octo-patch wants to merge 1 commit intojohannesjo:mainfrom
octo-patch wants to merge 1 commit intojohannesjo:mainfrom
Conversation
The "Ask about Code" inline Q&A feature now supports MiniMax as an
alternative to the Claude Code CLI. Users can switch providers in
Settings and supply a MINIMAX_API_KEY to use MiniMax M2.7 (204K
context) without needing claude installed.
- electron/ipc/ask-code-minimax.ts: streaming MiniMax backend via
OpenAI-compatible API, with abort-signal handling and SSE parsing
- electron/ipc/ask-code.ts: route to MiniMax or Claude based on
provider arg passed through IPC
- electron/ipc/register.ts: forward provider/minimaxApiKey from IPC args
- src/store/{types,core,ui,store,persistence}.ts: persist askCodeProvider
and minimaxApiKey settings
- src/components/SettingsDialog.tsx: provider selector + API key input
- src/components/AskCodeCard.tsx: pass provider/apiKey through IPC
- README.md: mention MiniMax as supported Ask-about-Code provider
- electron/ipc/ask-code-minimax.test.ts: 12 unit tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
claudeCLI requiredChanges
electron/ipc/ask-code-minimax.tselectron/ipc/ask-code-minimax.test.tselectron/ipc/ask-code.tsproviderargelectron/ipc/register.tsprovider/minimaxApiKeyfrom IPC call argssrc/store/{types,core,ui,store,persistence}.tsaskCodeProvider+minimaxApiKeystore fields, persisted to state.jsonsrc/components/SettingsDialog.tsxsrc/components/AskCodeCard.tsxREADME.mdTest plan
npm test— 12 new passing tests, all existing tests still passCtrl+,) → see new "Ask about Code" section with provider dropdownMINIMAX_API_KEY, select code in a task, ask a question — response streams in