Skip to content

Add MiniMax M4 effort settings to the AI editor plugin - #3808

Open
octo-patch wants to merge 1 commit into
WinMerge:masterfrom
octo-patch:feat/minimax-m4-editor-plugin
Open

octo-patch wants to merge 1 commit into
WinMerge:masterfrom
octo-patch:feat/minimax-m4-editor-plugin

Conversation

@octo-patch

Copy link
Copy Markdown
Contributor

Reason: WinMerge’s AI text converter has no M4 effort setting, and saving an M4 output limit of 262144 silently reduces it to 131072.

Summary

  • Add MiniMax-M4 to the existing MiniMax and MiniMax (China) model pickers. Both still open on MiniMax-M3.1-Flash.
  • Show the reasoning effort selector when M4 is picked or typed for either provider. The plugin saves the choice and sends reasoning_effort in its single-turn Chat Completions request. The five choices are low, medium, high, xhigh and max, with max selected initially. MiniMax Chat API
  • Allow up to 262144 output tokens for M4 using max_completion_tokens. The default conversion limit remains 4096.

Verification

  • Reproduced the 131072 truncation against master. Exercised both regional settings dialogs in Chromium using their embedded HTML and JavaScript with an in-memory host. Verified preset and typed model selection, all five choices after reopening, provider switching and the output cap.
  • Passed 36 offline request-path cases, including saved regional URLs, unrecognized effort values, prior MiniMax models and six other providers. The translation template and git diff --check passed.
  • Ran the plugin’s JScript settings export/save/import and AIConvertText under Wine’s Windows Script Host. Its MSXML HTTP client made six requests to the official China endpoint via a local relay. All five efforts and the initial default returned HTTP 200, the expected sum and the input’s trailing CRLF. The explicit max case sent max_completion_tokens: 262144.
  • The Linux harness supplied the WinMerge host and read the response through MSXML’s responseText because Wine 6 lacks the required binary ADODB stream implementation. Native Windows desktop interaction and live international inference remain unverified.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant