Repository navigation
feat(ai): add MiniMax-M2.1 and upgrade GLM 4.7 as pro model - #133
Conversation
- Add MiniMax-M2.1 model to MiniMax provider (10B active param MoE for coding agents) - Add GLM 4.7 to GLM provider, OpenRouter, and as new PageSpace pro tier model - Update pro model detection from glm-4.6 to glm-4.7 across web and iOS apps - Add pricing and 200K context window configuration for both new models - Keep glm-4.6 available as a standard option in GLM Coder Plan Both models released Dec 22-23, 2025.
|
Warning Rate limit exceeded@2witstudios has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 2 minutes and 9 seconds before requesting another review. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. 📒 Files selected for processing (1)
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. 📝 WalkthroughWalkthroughThe pull request upgrades the PageSpace AI model references from glm-4.6 to glm-4.7 across iOS and web platforms, adds pricing and context window configurations for the new model, and introduces MiniMax-M2.1 entries to AI provider mappings and monitoring configurations. Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~22 minutes Possibly related PRs
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
Comment |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| // GLM Direct Models (openrouter.ai, Dec 2025) | ||
| 'glm-4.7': { input: 0.39, output: 1.90 }, | ||
| 'glm-4.6': { input: 0.39, output: 1.90 }, |
There was a problem hiding this comment.
Add pricing entry for OpenRouter GLM-4.7
AI_PROVIDERS now exposes the OpenRouter model z-ai/glm-4.7, but AI_PRICING only adds the unprefixed glm-4.7. Because calculateCost looks up pricing by the exact model id, calls made through OpenRouter will miss this table and fall back to the default price (0 input/output), so monitoring will log zero cost for every GLM‑4.7 request even though it is a paid model. Please add a z-ai/glm-4.7 entry (and matching context window if needed) to keep cost tracking accurate.
Useful? React with 👍 / 👎.
Add missing z-ai/glm-4.7 entries to AI_PRICING and MODEL_CONTEXT_WINDOWS to ensure accurate cost tracking for GLM 4.7 calls made via OpenRouter.
Both models released Dec 22-23, 2025.
Summary by CodeRabbit
New Features
Bug Fixes
Chores
✏️ Tip: You can customize this high-level summary in your review settings.