ProviderModelNotFoundError: minimax/MiniMax-M2.1 #4107

Closed
opened 2026-02-16 17:42:38 -05:00 by yindo · 3 comments
Owner

Originally created by @python3js on GitHub (Jan 2, 2026).

Originally assigned to: @rekram1-node on GitHub.

Description

Getting the following error when using minimax/MiniMax-M2.1 as the model in the latest version of the opencode GitHub Action:

ProviderModelNotFoundError: ProviderModelNotFoundError
 data: {
  providerID: "minimax",
  modelID: "MiniMax-M2.1",
  suggestions: [],
},

      at getModel (src/provider/provider.ts:955:13)

opencode models does return the correct model.

OpenCode version

1.0.223

Steps to reproduce

Create a github action with the following code:

name: opencode-review

on:
  pull_request:
    types: [opened, synchronize, reopened, ready_for_review]

jobs:
  review:
    runs-on: ubuntu-latest
    permissions:
      id-token: write
      contents: read
      pull-requests: read
      issues: read
    steps:
      - uses: actions/checkout@v4
      - uses: sst/opencode/github@latest
        env:
          ANTHROPIC_API_KEY: ${{ secrets.MINIMAX_API_KEY }}
        with:
          model: minimax/MiniMax-M2.1
          prompt: |
            Review this pull request:
            - Check for code quality issues
            - Look for potential bugs
            - Suggest improvements

Screenshot and/or share link

Sending message to opencode...
950 |     const provider = s.providers[providerID]
Creating comment...
951 |     if (!provider) {
952 |       const availableProviders = Object.keys(s.providers)
953 |       const matches = fuzzysort.go(providerID, availableProviders, { limit: 3, threshold: -10000 })
954 |       const suggestions = matches.map((m) => m.target)
955 |       throw new ModelNotFoundError({ providerID, modelID, suggestions })
                  ^
ProviderModelNotFoundError: ProviderModelNotFoundError
 data: {
  providerID: "minimax",
  modelID: "MiniMax-M2.1",
  suggestions: [],
},

      at getModel (src/provider/provider.ts:955:13)

Removing reaction...
Error: ProviderModelNotFoundError
Error: Process completed with exit code 1.

Operating System

No response

Terminal

No response

Originally created by @python3js on GitHub (Jan 2, 2026). Originally assigned to: @rekram1-node on GitHub. ### Description Getting the following error when using `minimax/MiniMax-M2.1` as the model in the latest version of the opencode GitHub Action: ``` ProviderModelNotFoundError: ProviderModelNotFoundError data: { providerID: "minimax", modelID: "MiniMax-M2.1", suggestions: [], }, at getModel (src/provider/provider.ts:955:13) ``` `opencode models` does return the correct model. ### OpenCode version 1.0.223 ### Steps to reproduce Create a github action with the following code: ``` name: opencode-review on: pull_request: types: [opened, synchronize, reopened, ready_for_review] jobs: review: runs-on: ubuntu-latest permissions: id-token: write contents: read pull-requests: read issues: read steps: - uses: actions/checkout@v4 - uses: sst/opencode/github@latest env: ANTHROPIC_API_KEY: ${{ secrets.MINIMAX_API_KEY }} with: model: minimax/MiniMax-M2.1 prompt: | Review this pull request: - Check for code quality issues - Look for potential bugs - Suggest improvements ``` ### Screenshot and/or share link ``` Sending message to opencode... 950 | const provider = s.providers[providerID] Creating comment... 951 | if (!provider) { 952 | const availableProviders = Object.keys(s.providers) 953 | const matches = fuzzysort.go(providerID, availableProviders, { limit: 3, threshold: -10000 }) 954 | const suggestions = matches.map((m) => m.target) 955 | throw new ModelNotFoundError({ providerID, modelID, suggestions }) ^ ProviderModelNotFoundError: ProviderModelNotFoundError data: { providerID: "minimax", modelID: "MiniMax-M2.1", suggestions: [], }, at getModel (src/provider/provider.ts:955:13) Removing reaction... Error: ProviderModelNotFoundError Error: Process completed with exit code 1. ``` ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:42:38 -05:00
yindo closed this issue 2026-02-16 17:42:38 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Jan 2, 2026):

This issue might be a duplicate of existing issues. Please check:

  • #6493: OpenAI provider fails: gpt-5-nano missing from models.dev registry causes ProviderModelNotFoundError
  • #5623: Custom subagents with explicit model config throw ProviderModelNotFoundError
  • #3046: ProviderModelNotFoundError when using Kimi K2 model in GitHub workflow
  • #916: ProviderModelNotFoundError (general models.dev sync issues)
  • #2931: opencode GH app not finding Supernova model or grok-code

These all appear to be related to models not being found in the OpenCode registry even though they exist in the provider's API. Your issue with minimax/MiniMax-M2.1 might be part of the same underlying problem where models.dev registry is missing or out of sync with available provider models.

Feel free to ignore if your specific case is different from these issues.

@github-actions[bot] commented on GitHub (Jan 2, 2026): This issue might be a duplicate of existing issues. Please check: - #6493: OpenAI provider fails: gpt-5-nano missing from models.dev registry causes ProviderModelNotFoundError - #5623: Custom subagents with explicit model config throw ProviderModelNotFoundError - #3046: ProviderModelNotFoundError when using Kimi K2 model in GitHub workflow - #916: ProviderModelNotFoundError (general models.dev sync issues) - #2931: opencode GH app not finding Supernova model or grok-code These all appear to be related to models not being found in the OpenCode registry even though they exist in the provider's API. Your issue with minimax/MiniMax-M2.1 might be part of the same underlying problem where models.dev registry is missing or out of sync with available provider models. Feel free to ignore if your specific case is different from these issues.
Author
Owner

@rekram1-node commented on GitHub (Jan 2, 2026):

@python3js the issue is here:

   env:
          ANTHROPIC_API_KEY: ${{ secrets.MINIMAX_API_KEY }}

You aren't providing a minimax api key...

try:
MINIMAX_API_KEY

@rekram1-node commented on GitHub (Jan 2, 2026): @python3js the issue is here: ``` env: ANTHROPIC_API_KEY: ${{ secrets.MINIMAX_API_KEY }} ``` You aren't providing a minimax api key... try: MINIMAX_API_KEY
Author
Owner

@python3js commented on GitHub (Jan 2, 2026):

Thanks for catching that dumb mistake.

@python3js commented on GitHub (Jan 2, 2026): Thanks for catching that dumb mistake.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#4107