feat(models): add minimax m2.1 & glm 4.7 via CanopyWave - #1363
Conversation
- Added minimax/minimax-m2.1 model to minimaxModels with streaming, reasoning, tools, and jsonOutput enabled - Added zai/glm-4.7 model to zaiModels with streaming, reasoning, tools, and jsonOutput enabled - Both models have detailed pricing and capability settings Co-authored-by: terragon-labs[bot] <terragon-labs[bot]@users.noreply.github.com>
|
Warning Rate limit exceeded@steebchen has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 25 minutes and 14 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 (2)
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. WalkthroughTwo model definition files were updated to add CanopyWave provider entries: minimax.ts adds CanopyWave support for the minimax-m2.1 model, and zai.ts adds CanopyWave support for the GLM-4.7 model, each with specific pricing and configuration parameters. Changes
Possibly related PRs
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Pre-merge checks and finishing touches✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Pull request overview
This PR adds CanopyWave as an additional provider for two existing models in the model registry: GLM-4.7 and Minimax-M2.1. This enables users to access these models through the CanopyWave provider as an alternative to their existing providers (zai for GLM-4.7 and novita for Minimax-M2.1).
Key Changes:
- Added CanopyWave provider configuration for GLM-4.7 with competitive pricing ($0.43/1M input tokens, $1.75/1M output tokens)
- Added CanopyWave provider configuration for Minimax-M2.1 with competitive pricing ($0.27/1M input tokens, $1.08/1M output tokens)
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| packages/models/src/models/zai.ts | Adds canopywave as a second provider for the existing glm-4.7 model with consistent model capabilities and pricing |
| packages/models/src/models/minimax.ts | Adds canopywave as a second provider for the existing minimax-m2.1 model with consistent model capabilities and pricing |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| reasoning: true, | ||
| vision: false, | ||
| tools: true, | ||
| jsonOutput: true, |
There was a problem hiding this comment.
The canopywave provider for minimax-m2.1 is missing the jsonOutputSchema: false property that is present in the novita provider. For consistency between providers of the same model, this property should be included.
| jsonOutput: true, | |
| jsonOutput: true, | |
| jsonOutputSchema: false, |
Summary
Changes
Core Model Registry
packages/models/src/models/minimax.ts
packages/models/src/models/zai.ts
Validation / Rationale
Testing Plan
🌿 Generated by Terry
ℹ️ Tag @terragon-labs to ask questions and address PR feedback
📎 Task: https://www.terragonlabs.com/task/f2200795-3f29-4ef4-9340-2335ff666e31
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.