Skip to content

feat(llm): add minimax-m3.1-flash to verified models - #6101

Merged
juanmichelini merged 1 commit into
mainfrom
feat/add-minimax-m3.1-flash
Oct 21, 2026
Merged

juanmichelini merged 1 commit into
mainfrom
feat/add-minimax-m3.1-flash

Conversation

@juanmichelini

@juanmichelini juanmichelini commented Oct 19, 2026 •

Copy link
Copy Markdown
Collaborator

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-flash is 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

  • Add minimax-m3.1-flash to VERIFIED_MINIMAX_MODELS (flash variant of the kept minimax-m3 line).
  • Add minimax-m3.1-flash to VERIFIED_OPENHANDS_MODELS so the openhands/minimax-m3.1-flash route resolves.
  • Append-only; existing minimax-m3 and minimax-m2.7 entries are retained. Not added to the OpenRouter list: OpenRouter's only current route for this model is a :free preview, 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 passed
  • uv run pytest tests/sdk/llm/ -q → 1271 passed
  • uv run pytest tests/agent_server/test_llm_router.py tests/sdk/tool/test_classify_and_switch_llm.py -q → 62 passed
  • ruff check and ruff format --check on the two modified files → clean

Video/Screenshots

Not applicable — data-only list update.

Type

  • Bug fix
  • Feature
  • Refactor
  • Breaking change
  • Docs / chore

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.

Co-authored-by: openhands <openhands@all-hands.dev>
@github-actions

Copy link
Copy Markdown
Contributor

REST API breakage checks (OpenAPI) — ✅ PASSED

Result: ✅ PASSED

Action log

@github-actions

Copy link
Copy Markdown
Contributor

Coverage

Coverage Report •
FileStmtsMissCoverMissing
TOTAL493671339573% 
report-only-changed-files is enabled. No changed files were found in the coverage report :)

@juanmichelini
juanmichelini marked this pull request as ready for review October 19, 2026 21:18

@all-hands-bot all-hands-bot left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@juanmichelini
juanmichelini merged commit 1d057fe into main Oct 21, 2026
53 of 54 checks passed
@juanmichelini
juanmichelini deleted the feat/add-minimax-m3.1-flash branch October 21, 2026 17:04
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.

feat: register minimax-m3.1-flash as a verified model

3 participants