Skip to content

ProviderModelNotFoundError: minimax/MiniMax-M2.1 #6691

Closed

Description

@python3js

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

Activity

  1. github-actions commented on Jan 2, 2026

    @github-actions
    Contributor

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

    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.

  2. rekram1-node commented on Jan 2, 2026

    @rekram1-node
    Contributor

    @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

  3. python3js commented on Jan 2, 2026

    @python3js
    Author

    Thanks for catching that dumb mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions