Skip to content

feat: support MiniMax M4 and its reasoning levels in SQL Chat - #198

Open
octo-patch wants to merge 1 commit into
sqlchat:mainfrom
octo-patch:feat/minimax-m4-sql-chat
Open

octo-patch wants to merge 1 commit into
sqlchat:mainfrom
octo-patch:feat/minimax-m4-sql-chat

Conversation

@octo-patch

@octo-patch octo-patch commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

SQL Chat preserves a hand-entered MiniMax-M4 ID after #192, but applies the fallback 4,000-token budget to the conversation and schema. The model is also missing from Settings.

This adds M4 to the existing picker with a 1,000,000-token context budget. Settings exposes its five reasoning efforts and remembers the choice. An unset effort uses MiniMax’s default (max). The chat handler validates a supplied effort and forwards it only for M4. The flexible layout accommodates the additional model on narrower windows.

I checked the picker in Chromium on main and on this branch, including changing models and reloading a saved xhigh preference. I also sent six streaming requests through SQL Chat’s actual /api/chat handler to the mainland MiniMax API. The implicit default and each explicit effort (low, medium, high, xhigh, max) returned HTTP 200 and the expected answer. Local next lint and the production next build passed after generating the Prisma client. The GitHub job stops during dependency installation: its unpinned pnpm rejects the three Prisma lifecycle scripts with ERR_PNPM_IGNORED_BUILDS before lint or build runs. The dependency lockfile and workflow are identical to main. TypeScript reported identical errors on main and this patch in ThreeDotsLoader and the Postgres connector.

Settings before · Settings after · MiniMax Chat Completions reference

This branch has not been deployed

No deployments
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