mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-11-16 17:09:09 +00:00
## Why MiniMax Code accounts need an OpenAI-compatible route that returns native tool calls to agent clients using the subscription gateway. ## What changed - Register `minimax-code` (`mmcode`) and add dashboard device-code sign-in. - Translate chat, tool-call, and streaming gateway responses; preserve request-scoped size refusals and upstream error semantics. - Read and refresh credentials from the local MiniMax Code profile. OmniRoute does not persist a separate provider credential in its connection database. ## Verification - Focused MiniMax Code unit tests: 73/73 passed. - `npm run check:docs-all`: passed; `npx eslint open-sse/executors/minimax-code.ts`: passed. - API Route Typecheck and Semgrep are queued for this head. ## Notes The managed gateway is an undocumented MiniMax subscription endpoint. Maintainer approval and a live `mcode` run remain outstanding; no live account result is claimed here. The ACP transport is not in this diff: #18119 was closed as a duplicate, and its implementation remains on `rebuild/minimax-code-provider-acp` pending a decision on its destination. Base-red issue #17219 is inherited. Thanks @megamen32.