Skip to content

feat(models): update minimax/minimax-cn model menus#3895

Closed
tars90percent wants to merge 1 commit into
NousResearch:mainfrom
tars90percent:feat/update-minimax-models
Closed

feat(models): update minimax/minimax-cn model menus#3895
tars90percent wants to merge 1 commit into
NousResearch:mainfrom
tars90percent:feat/update-minimax-models

Conversation

@tars90percent

Copy link
Copy Markdown
Contributor

What does this PR do?

Add MiniMax-M2.7 and M2.7-highspeed to the hermes model interactive menu (main.py), which was missing them. Remove deprecated M2.1 from the minimax and minimax-cn direct provider catalogs in main.py, models.py, and setup.py.

Type of Change

  • 🐛 Bug fix (non-breaking change that fixes an issue)
  • ✨ New feature (non-breaking change that adds functionality)
  • 🔒 Security fix
  • 📝 Documentation update
  • ✅ Tests (adding or improving test coverage)
  • ♻️ Refactor (no behavior change)
  • 🎯 New skill (bundled or hub)

…M2.1

Add MiniMax-M2.7 and M2.7-highspeed to the hermes model interactive menu
(main.py), which was missing them. Remove deprecated M2.1 from the minimax
and minimax-cn direct provider catalogs in main.py, models.py, and setup.py.
kshitijk4poor added a commit to kshitijk4poor/hermes-agent that referenced this pull request Apr 8, 2026
… aux model, and config base_url

Context lengths were 204K — actual MiniMax API docs show 1M (M1) and
1,048,576 (M2.5/M2.7). Premature context compression was wasting tokens.

Model catalog listed deprecated M2.1 and undocumented highspeed variants.
Updated to match official MiniMax API: M1 family (M1, M1-40k, M1-80k,
M1-128k, M1-256k), M2.5, M2.7.

build_anthropic_kwargs() was sending the 'thinking' parameter to MiniMax's
Anthropic-compatible endpoint — MiniMax doesn't support it, causing
TypeError crashes (Messages.create() got an unexpected keyword argument).

Default auxiliary model was M2.7-highspeed (2x price, same quality).
Changed to standard M2.7.

API-key providers (MiniMax, ZAI, Kimi, etc.) ignored model.base_url from
config.yaml, always using the hardcoded inference_base_url. China MiniMax
users setting model.base_url to api.minimaxi.com/anthropic still got
routed to api.minimax.io, causing 401. Now honours config.yaml base_url
when the configured provider matches, with env var taking priority.

Added get_minimax_max_output() for per-model output token limits and
comprehensive test coverage (24 new tests).

Fixes NousResearch#5777, fixes NousResearch#4082, fixes NousResearch#6039.
Closes NousResearch#3895.
teknium1 pushed a commit that referenced this pull request Apr 8, 2026
… aux model, and config base_url

Cherry-picked from PR #6046 by kshitijk4poor with dead code stripped.

- Context lengths: 204800 → 1M (M1) / 1048576 (M2.5/M2.7) per official docs
- Model catalog: add M1 family, remove deprecated M2.1 and highspeed variants
- Thinking guard: skip extended thinking for MiniMax (Anthropic-compat endpoint)
- Aux model: MiniMax-M2.7-highspeed → MiniMax-M2.7 (same model, half price)
- Config base_url: honour model.base_url for API-key providers (fixes China users)
- Stripped unused get_minimax_max_output() / _MINIMAX_MAX_OUTPUT (no consumer)

Fixes #5777, #4082, #6039. Closes #3895.
pull Bot pushed a commit to ValidationExpression/hermes-agent that referenced this pull request Apr 8, 2026
… aux model, and config base_url

Cherry-picked from PR NousResearch#6046 by kshitijk4poor with dead code stripped.

- Context lengths: 204800 → 1M (M1) / 1048576 (M2.5/M2.7) per official docs
- Model catalog: add M1 family, remove deprecated M2.1 and highspeed variants
- Thinking guard: skip extended thinking for MiniMax (Anthropic-compat endpoint)
- Aux model: MiniMax-M2.7-highspeed → MiniMax-M2.7 (same model, half price)
- Config base_url: honour model.base_url for API-key providers (fixes China users)
- Stripped unused get_minimax_max_output() / _MINIMAX_MAX_OUTPUT (no consumer)

Fixes NousResearch#5777, NousResearch#4082, NousResearch#6039. Closes NousResearch#3895.
@tars90percent tars90percent deleted the feat/update-minimax-models branch April 11, 2026 14:49
Tommyeds pushed a commit to Tommyeds/hermes-agent that referenced this pull request Apr 12, 2026
… aux model, and config base_url

Cherry-picked from PR NousResearch#6046 by kshitijk4poor with dead code stripped.

- Context lengths: 204800 → 1M (M1) / 1048576 (M2.5/M2.7) per official docs
- Model catalog: add M1 family, remove deprecated M2.1 and highspeed variants
- Thinking guard: skip extended thinking for MiniMax (Anthropic-compat endpoint)
- Aux model: MiniMax-M2.7-highspeed → MiniMax-M2.7 (same model, half price)
- Config base_url: honour model.base_url for API-key providers (fixes China users)
- Stripped unused get_minimax_max_output() / _MINIMAX_MAX_OUTPUT (no consumer)

Fixes NousResearch#5777, NousResearch#4082, NousResearch#6039. Closes NousResearch#3895.
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 27, 2026
… aux model, and config base_url

Cherry-picked from PR NousResearch#6046 by kshitijk4poor with dead code stripped.

- Context lengths: 204800 → 1M (M1) / 1048576 (M2.5/M2.7) per official docs
- Model catalog: add M1 family, remove deprecated M2.1 and highspeed variants
- Thinking guard: skip extended thinking for MiniMax (Anthropic-compat endpoint)
- Aux model: MiniMax-M2.7-highspeed → MiniMax-M2.7 (same model, half price)
- Config base_url: honour model.base_url for API-key providers (fixes China users)
- Stripped unused get_minimax_max_output() / _MINIMAX_MAX_OUTPUT (no consumer)

Fixes NousResearch#5777, NousResearch#4082, NousResearch#6039. Closes NousResearch#3895.
angelburgosrosado pushed a commit to angelburgosrosado/hermes-agent that referenced this pull request Apr 28, 2026
… aux model, and config base_url

Cherry-picked from PR NousResearch#6046 by kshitijk4poor with dead code stripped.

- Context lengths: 204800 → 1M (M1) / 1048576 (M2.5/M2.7) per official docs
- Model catalog: add M1 family, remove deprecated M2.1 and highspeed variants
- Thinking guard: skip extended thinking for MiniMax (Anthropic-compat endpoint)
- Aux model: MiniMax-M2.7-highspeed → MiniMax-M2.7 (same model, half price)
- Config base_url: honour model.base_url for API-key providers (fixes China users)
- Stripped unused get_minimax_max_output() / _MINIMAX_MAX_OUTPUT (no consumer)

Fixes NousResearch#5777, NousResearch#4082, NousResearch#6039. Closes NousResearch#3895.
02356abc pushed a commit to 02356abc/hermes-agent that referenced this pull request May 14, 2026
… aux model, and config base_url

Cherry-picked from PR NousResearch#6046 by kshitijk4poor with dead code stripped.

- Context lengths: 204800 → 1M (M1) / 1048576 (M2.5/M2.7) per official docs
- Model catalog: add M1 family, remove deprecated M2.1 and highspeed variants
- Thinking guard: skip extended thinking for MiniMax (Anthropic-compat endpoint)
- Aux model: MiniMax-M2.7-highspeed → MiniMax-M2.7 (same model, half price)
- Config base_url: honour model.base_url for API-key providers (fixes China users)
- Stripped unused get_minimax_max_output() / _MINIMAX_MAX_OUTPUT (no consumer)

Fixes NousResearch#5777, NousResearch#4082, NousResearch#6039. Closes NousResearch#3895.
olympus-terminal pushed a commit to olympus-terminal/hermes-agent that referenced this pull request May 16, 2026
… aux model, and config base_url

Cherry-picked from PR NousResearch#6046 by kshitijk4poor with dead code stripped.

- Context lengths: 204800 → 1M (M1) / 1048576 (M2.5/M2.7) per official docs
- Model catalog: add M1 family, remove deprecated M2.1 and highspeed variants
- Thinking guard: skip extended thinking for MiniMax (Anthropic-compat endpoint)
- Aux model: MiniMax-M2.7-highspeed → MiniMax-M2.7 (same model, half price)
- Config base_url: honour model.base_url for API-key providers (fixes China users)
- Stripped unused get_minimax_max_output() / _MINIMAX_MAX_OUTPUT (no consumer)

Fixes NousResearch#5777, NousResearch#4082, NousResearch#6039. Closes NousResearch#3895.
gweeteve pushed a commit to gweeteve/hermes-agent that referenced this pull request Jun 2, 2026
… aux model, and config base_url

Cherry-picked from PR NousResearch#6046 by kshitijk4poor with dead code stripped.

- Context lengths: 204800 → 1M (M1) / 1048576 (M2.5/M2.7) per official docs
- Model catalog: add M1 family, remove deprecated M2.1 and highspeed variants
- Thinking guard: skip extended thinking for MiniMax (Anthropic-compat endpoint)
- Aux model: MiniMax-M2.7-highspeed → MiniMax-M2.7 (same model, half price)
- Config base_url: honour model.base_url for API-key providers (fixes China users)
- Stripped unused get_minimax_max_output() / _MINIMAX_MAX_OUTPUT (no consumer)

Fixes NousResearch#5777, NousResearch#4082, NousResearch#6039. Closes NousResearch#3895.
Egavasyug pushed a commit to Egavasyug/hermes-agent that referenced this pull request Jun 10, 2026
… aux model, and config base_url

Cherry-picked from PR NousResearch#6046 by kshitijk4poor with dead code stripped.

- Context lengths: 204800 → 1M (M1) / 1048576 (M2.5/M2.7) per official docs
- Model catalog: add M1 family, remove deprecated M2.1 and highspeed variants
- Thinking guard: skip extended thinking for MiniMax (Anthropic-compat endpoint)
- Aux model: MiniMax-M2.7-highspeed → MiniMax-M2.7 (same model, half price)
- Config base_url: honour model.base_url for API-key providers (fixes China users)
- Stripped unused get_minimax_max_output() / _MINIMAX_MAX_OUTPUT (no consumer)

Fixes NousResearch#5777, NousResearch#4082, NousResearch#6039. Closes NousResearch#3895.
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