Skip to content

fix(minimax): prefer M3.1 Flash through LiteLLM chat adapter - #9

Open
octo-patch wants to merge 2 commits into
feiskyer:mainfrom
octo-patch:octo/20261020-minimax-m31-flash
Open

octo-patch wants to merge 2 commits into
feiskyer:mainfrom
octo-patch:octo/20261020-minimax-m31-flash

Conversation

@octo-patch

@octo-patch octo-patch commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Reason: The optional MiniMax template still recommends M2.7 alongside M3 and uses an outdated provider declaration. MiniMax now documents a native Responses endpoint, while this template intentionally keeps its tested LiteLLM upstream hop on Chat Completions so Codex Responses requests use LiteLLM's verified translation path.

This updates the commented examples to MiniMax-M3.1-Flash first and MiniMax-M3 second, uses chat-mode provider declarations for this LiteLLM route, and permits Flash's explicit reasoning_effort values through LiteLLM. The template documents Flash's always-on thinking and unsupported fields. Existing active providers, custom aliases, saved legacy model IDs, and the MiniMax image-generation skill remain unchanged.

Validation:

  • Active YAML matches the base commit; root TOML and uncommented MiniMax YAML parse successfully.
  • python -m unittest discover -s tests -v: all 6 tests pass against litellm[proxy]==1.106.0. Real Router calls reach mocked HTTPX transport, with socket connections and DNS blocked. Coverage includes streaming Responses translation, both regions, all five Flash effort values, saved/custom IDs, and media/tool payload preservation.
  • ruff check tests/test_minimax_litellm.py, ruff format --check tests/test_minimax_litellm.py, and git diff --check pass.
  • The existing MiniMax image skill's seven offline tests pass.
  • Paid inference and full Codex CLI integration were skipped because this validation uses mocked provider traffic, with no live proxy or provider credentials.

Compatibility and security: Codex retains its Responses wire format to the local proxy; only the MiniMax upstream declaration changes to chat. The new tests pin LiteLLM 1.106.0, and other versions should be rechecked. No credential or permission defaults change. Merge selected template entries into an existing local config to retain custom and legacy aliases.

References:

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