Repository navigation
feat(llm): add minimax-m3.1-flash to verified models - #6101
Conversation
Co-authored-by: openhands <openhands@all-hands.dev>
REST API breakage checks (OpenAPI) — ✅ PASSEDResult: ✅ PASSED |
all-hands-bot
left a comment
There was a problem hiding this comment.
This review was posted by an AI agent (OpenHands).
Review: feat(llm): add minimax-m3.1-flash to verified models
Reviewed at head 4d2b168a0468fbe21c7731ea7144a8334308ac1e (+7/−2, 2 files).
Scope. The change belongs in this repository: verified_models.py owns the curated model lists that feed /llm/models/verified and the openhands/ provider allowlist, and the openhands/ provider is a first-party surface here, not a new third-party provider integration. No product/architecture decision is outstanding.
Correctness. The addition follows the documented curation rule in openhands-sdk/openhands/sdk/llm/utils/AGENTS.md — variants of a kept version (-flash, -pro, -codex) stay with that version — and matches the existing deepseek-v4.1-flash precedent (commit 1d1a1035), which added the .1-flash variant without dropping the older retained line. Keeping minimax-m3 and minimax-m2.7 is therefore consistent, not a missed prune. The VERIFIED_OPENHANDS_MODELS entry is backed by VERIFIED_MINIMAX_MODELS, satisfying the invariant enforced by test_openhands_models_all_have_provider_list. Omitting the OpenRouter list matches the documented rule there (only frontier routes the OpenHands proxy serves) and the deepseek-v4.1-flash precedent.
Cross-layer. Verified there is no additional layer to update: the agent-server /llm/models/verified route returns VERIFIED_MODELS dynamically, and clients/typescript/ does not hardcode verified model lists. Unlike the deepseek-v4.1-flash change, no model_features.py entry is required — minimax-m3 has no analogous feature-registry entry, so the new variant inherits the same behavior.
Acceptance criteria (issue #6102, ready-for-dev). minimax-m3.1-flash present in VERIFIED_MINIMAX_MODELS and in VERIFIED_OPENHANDS_MODELS, with minimax-m3 and minimax-m2.7 retained — all satisfied, and the updated expectation in test_verified_lists_keep_two_latest_versions_per_line matches the lists.
Verification run on this head. tests/sdk/llm/test_model_list.py 14 passed; tests/sdk/llm/test_model_features.py 226 passed; tests/agent_server/test_llm_router.py + tests/sdk/tool/test_classify_and_switch_llm.py 62 passed; ruff check and ruff format --check clean on both changed files. The only failures in the full tests/sdk/llm/ run are tests/sdk/llm/auth/test_credentials.py::test_get_credentials_dir_default / _xdg, which fail because this environment sets HOME=/var/openhands/.openhands; they are unrelated to this diff.
CI note (non-blocking). All required checks for this head pass. The Validate PR description check shows a red X from a run at 21:18; the newest run on the same head (21:36:58) succeeds, so the red mark is a superseded run rather than a current failure, and that check is not in the required set.
No material correctness, security, compatibility, or acceptance-criterion defect found.
✅ APPROVED
HUMAN:
Adding minimax-m3.1-flash to the verified model lists so it shows up in the model picker and works via the openhands/ provider.
AGENT:
Why
minimax-m3.1-flashis the new flash variant of the MiniMax M3 line. It is already served and enabled on the OpenHands production provider, but the SDK's verified-model lists do not include it yet, so it does not appear in the curated provider/model pickers for self-hosted deployments.Summary
minimax-m3.1-flashtoVERIFIED_MINIMAX_MODELS(flash variant of the keptminimax-m3line).minimax-m3.1-flashtoVERIFIED_OPENHANDS_MODELSso theopenhands/minimax-m3.1-flashroute resolves.minimax-m3andminimax-m2.7entries are retained. Not added to the OpenRouter list: OpenRouter's only current route for this model is a:freepreview, and the OpenHands proxy serves it directly.Issue Number
Fixes #6102
How to Test
uv run pytest tests/sdk/llm/test_model_list.py -q→ 14 passeduv run pytest tests/sdk/llm/ -q→ 1271 passeduv run pytest tests/agent_server/test_llm_router.py tests/sdk/tool/test_classify_and_switch_llm.py -q→ 62 passedVideo/Screenshots
Not applicable — data-only list update.
Type
Notes
The production OpenHands provider already serves
minimax-m3.1-flash(verified, enabled), so this PR aligns the SDK's curated lists with production.This PR was created by an AI agent (OpenHands) on behalf of the requester.