Thanks to visit codestin.com
Credit goes to github.com

Skip to content

fix(opencode): MiniMax models missing [provider] override and incorrectly have [interleaved] - #1

Open
LYY wants to merge 1 commit into
devfrom
fix/minimax-models-provider-override
Open

LYY wants to merge 1 commit into
devfrom
fix/minimax-models-provider-override

Conversation

@LYY

@LYY LYY commented Mar 31, 2026

Copy link
Copy Markdown
Owner

Problem

The minimax-m2.5.toml and minimax-m2.1.toml files in providers/opencode/models/ have two inconsistencies compared to their -free counterparts and compared to the pattern established in PR anomalyco#1254 for the ZenMux provider:

  1. Missing [provider] override — The -free variants correctly define:

    [provider]
    npm = "@ai-sdk/anthropic"

    The non-free variants have no [provider] section.

  2. Incorrectly has [interleaved] — The -free variants do NOT have an [interleaved] section. The non-free variants incorrectly include:

    [interleaved]
    field = "reasoning_content"

    PR feat(zenmux): route models through protocol-specific SDKs anomalyco/models.dev#1254 explicitly removed [interleaved] from all ZenMux MiniMax models when adding the [provider] override, because the @ai-sdk/anthropic route handles this differently.

Expected

Both minimax-m2.5 and minimax-m2.1 (non-free) should match their -free variants:

  • Remove [interleaved] section entirely
  • Add [provider] npm = "@ai-sdk/anthropic" section

This aligns with the design decision in PR anomalyco#1254: MiniMax models should route through @ai-sdk/anthropic with per-model provider overrides, not rely on [interleaved] for reasoning content handling.

Files affected

  • providers/opencode/models/minimax-m2.5.toml
  • providers/opencode/models/minimax-m2.1.toml

…MiniMax M2.1/M2.5

- Add [provider] npm = "@ai-sdk/anthropic" to match -free variants
- Remove incorrect [interleaved] section per design decision

MiniMax models should route through @ai-sdk/anthropic with per-model
provider overrides, not rely on [interleaved] for reasoning content handling.
@LYY
LYY force-pushed the fix/minimax-models-provider-override branch from c423539 to 2a3e108 Compare March 31, 2026 01:59
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