feat(providers): add native MiniMax support - #1162
Conversation
|
PR author is not in the allowed authors list. |
|
Updated this branch with the latest |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Want higher recall? High effort reviews run extra passes and find more bugs. A team admin can switch effort levels in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 380b2b5. Configure here.
| {Provider: providers.ProviderFireworks, UpstreamID: "accounts/fireworks/models/minimax-m3", | ||
| Price: Pricing{InputUSDPer1M: 0.300, OutputUSDPer1M: 1.200, CacheReadMultiplier: 0.20}}, | ||
| {Provider: providers.ProviderMiniMax, UpstreamID: "MiniMax-M3", | ||
| Price: Pricing{InputUSDPer1M: 0.600, OutputUSDPer1M: 2.400, CacheReadMultiplier: 0.12 / 0.600}}, |
There was a problem hiding this comment.
M3 uses long-context prices
High Severity
The native MiniMax M3 binding is priced at $0.60/$2.40 with a $0.12 cache-read rate, which is MiniMax's long-context tier for inputs over 512K. The model-level window stays at 512_000 and the MiniMax binding does not override ContextWindow, so routed turns never enter that tier. Official standard rates at or below 512K are $0.30/$1.20 with $0.06 cache reads. Catalog prices feed billing and planner EV, so MiniMax M3 usage is charged and scored at twice the actual cost.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit 380b2b5. Configure here.
|
Thank you so much for this, @octo-patch — a native MiniMax provider is a genuinely useful addition, and you followed the I've re-landed it as #1188 with your commits preserved and credited (
Everything else is exactly your change. Thanks again for contributing — hope to see more from you! |


Reason: Add native MiniMax routing for the current text models with regional OpenAI-compatible endpoints.
Checks:
go test ./...go vet ./internal/providers/... ./internal/router/catalog ./internal/router/rl ./internal/translate ./cmd/routergit diff --check