Repository navigation
Route MiniMax M3.1 Flash to chat completions on both gateways - #77
Merged
Merged
Conversation
The 2026-10-20 docs-endpoint audit found exactly one routing mismatch: the Go minimax family fallback sent MiniMax M3.1 Flash Free to /messages while the docs table publishes chat completions. Add an M3.1-generation carve-out; explicit SDK metadata still wins.
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.
Resync 2026-10-20
The
refresh-modelsprobe (anonymous zen + go discovery, 85/37 live ids) found no mirror or enrichment drift — every live id is models.dev-cataloged except the known discovery-onlyjev-1.13*/omen-alpha. A docs-vs-extension routing audit across all 115 documented ids found exactly one mismatch:minimax-m3.1-flash-free(Go): the Go MiniMax family fallback routes/^minimax-/to/messages, but the Go docs endpoint table publisheschat/completions(@ai-sdk/openai-compatible— the Zen route is chat completions too).Fix: carve the M3.1 generation out to
chat-completionsbefore the Go MiniMax fallback (/^minimax-m3\.1/), keeping M3 / M2.x on Messages where the Go docs table publishes that. Explicit models.dev SDK metadata still wins (pkg@ai-sdk/anthropic→messages), covered by tests.The id is models.dev-cataloged with reasoning effort options (
low→max) published 2026-10-19, so it flows into the picker through live discovery + enrichment automatically; this change only corrects which gateway shape is used.Deliberate skips (unchanged from the 2026-10-16 decision): re-mirroring
glm-5.1/glm-5from models.dev canonicals — the toggle-only reasoning options would regress the Go picker (live-verified 2026-10-09: the Go GLM backend rejects toggle/none).Tests: 193 pass (+3 asserts).
npx changeset statusclean;npm run packagegreen.