Fix(minimax-m3-free): Add MiniMax M3 Free model to opencode/zen#1498
Open
bitsnaps wants to merge 1 commit into
Open
Fix(minimax-m3-free): Add MiniMax M3 Free model to opencode/zen#1498bitsnaps wants to merge 1 commit into
bitsnaps wants to merge 1 commit into
Conversation
jatmn
requested changes
Jun 3, 2026
jatmn
left a comment
Collaborator
There was a problem hiding this comment.
I found an issue that needs to be addressed before this is ready.
Findings
- [P1] Route MiniMax M3 Free through the correct OpenCode metadata and endpoint
src/integrations/gateways/opencode.ts:77
The newly addedminimax-m3-freecatalog entry falls through to the default/chat/completionsOpenAI-compatible path, and its descriptor insrc/integrations/models/opencode.tsmarks the model as non-reasoning, non-vision, and 131k context. OpenCode's current model catalog forminimax-m3-freelists it as an Anthropic-backed model with reasoning enabled, text/image/video input, 200k context, and a 32k output limit. As written, selecting this model will use the wrong transport shape and OpenClaude will hide or under-budget the capabilities users need for the model. Please wire the catalog entry the same way the other OpenCode Anthropic-message models are routed and update the descriptor metadata to match the provider catalog.
8 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes for the rejected PR's findings:
Added opencode-minimax-m3-free with conservative free-tier metadata (chat-only, no vision, no reasoning,
131_072/32_768 tokens), matching the existing *-free opencode descriptors. Resolves the dangling modelDescriptorId
reference from the catalog and unblocks getModelsForGateway('opencode') enrichment.
opencode.ts:23— bumped 41 models → 42 models.opencode.test.ts:287— bumped expect(...).toBe(41) → 42. The cross-reference test atline 327 (which was the actual failure mode in the rejected PR) will now also pass.
src/integrations/generated/integrationArtifacts.generated.ts:326hand-synced to 42 models.