Skip to content

feat: add MiniMax-M2.7 model pricing support#118

Closed
octo-patch wants to merge 1 commit intogetagentseal:mainfrom
octo-patch:feature/add-minimax-provider
Closed

feat: add MiniMax-M2.7 model pricing support#118
octo-patch wants to merge 1 commit intogetagentseal:mainfrom
octo-patch:feature/add-minimax-provider

Conversation

@octo-patch
Copy link
Copy Markdown

Summary

  • Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to FALLBACK_PRICING in src/models.ts with accurate per-token costs
  • Add human-readable display names (MiniMax M2.7, MiniMax M2.7 Highspeed) in getShortModelName
  • Add unit tests for MiniMax model pricing and display name resolution in tests/minimax.test.ts

This enables CodeBurn to accurately report costs when users run MiniMax models through providers like OpenCode that support configurable LLM backends.

Pricing (from MiniMax API pricing):

Model Input Output Cache Write Cache Read
MiniMax-M2.7 $0.3/M $1.2/M $0.375/M $0.06/M
MiniMax-M2.7-highspeed $0.6/M $2.4/M $0.375/M $0.06/M

Test plan

  • npm test -- --run tests/minimax.test.ts - all 6 tests pass
  • Pricing for MiniMax-M2.7 returns correct per-token costs from FALLBACK_PRICING
  • Pricing for MiniMax-M2.7-highspeed returns higher costs than base model
  • getShortModelName returns MiniMax M2.7 / MiniMax M2.7 Highspeed
  • Model IDs with date suffixes are handled correctly

References

- Add MiniMax-M2.7 and MiniMax-M2.7-highspeed to FALLBACK_PRICING
- Add short display names for MiniMax models in getShortModelName
- Add unit tests for MiniMax model pricing and display names

Pricing sourced from https://platform.minimax.io/docs/guides/pricing-paygo:
MiniMax-M2.7: $0.3/M input, $1.2/M output, $0.375/M cache write, $0.06/M cache read
MiniMax-M2.7-highspeed: $0.6/M input, $2.4/M output, $0.375/M cache write, $0.06/M cache read
@iamtoruk iamtoruk self-assigned this Apr 21, 2026
@iamtoruk
Copy link
Copy Markdown
Member

Thanks for the PR. We've already got MiniMax support on our pipeline and will ship the pricing plus display name additions in the next release. Closing this one. Appreciate you putting the tests together.

@iamtoruk iamtoruk closed this Apr 21, 2026
shaneholloman pushed a commit to shaneholloman/codeburn that referenced this pull request Apr 21, 2026
Runs on every PR open/reopen/synchronize against getagentseal/firstlook
and fails the check when the author's score is 'unknown' (new or
untracked accounts). Skips bot accounts so dependabot and renovate pass
through.

This screens the same drive-by pattern that landed in PR getagentseal#118 (octo-patch,
fresh automation account) without requiring a manual tier check on every
submission.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants