Skip to content

feat(models): add minimax m2.1 & glm 4.7 via CanopyWave - #1363

Merged
steebchen merged 3 commits into
mainfrom
terragon/add-canopywave-models-c8fkzg
Dec 29, 2025
Merged

steebchen merged 3 commits into
mainfrom
terragon/add-canopywave-models-c8fkzg

Conversation

@steebchen

@steebchen steebchen commented Dec 29, 2025

Copy link
Copy Markdown
Member

Summary

  • Adds CanopyWave models GLM-4.7 and Minimax-M2.1 to the model registry
  • Enables usage of CanopyWave provider for these new models

Changes

Core Model Registry

  • packages/models/src/models/minimax.ts

    • Added canopywave/minimax-m2.1 with the following properties:
      • providerId: "canopywave"
      • modelName: "minimax/minimax-m2.1"
      • inputPrice: 0.27 / 1e6
      • outputPrice: 1.08 / 1e6
      • requestPrice: 0
      • contextSize: 204800
      • maxOutput: 131072
      • streaming: true
      • reasoning: true
      • vision: false
      • tools: true
      • jsonOutput: true
  • packages/models/src/models/zai.ts

    • Added canopywave/glm-4.7 with the following properties:
      • providerId: "canopywave"
      • modelName: "zai/glm-4.7"
      • inputPrice: 0.43 / 1e6
      • outputPrice: 1.75 / 1e6
      • requestPrice: 0
      • contextSize: 200000
      • maxOutput: 128000
      • streaming: true
      • reasoning: true
      • vision: false
      • tools: true
      • jsonOutput: true

Validation / Rationale

  • These changes are additive and do not affect existing models
  • Introduce CanopyWave models into the registry for broader model availability

Testing Plan

  • Build project and run TypeScript checks to ensure new entries type-check correctly
  • Smoke-test: query model registry to verify the new entries exist with providerId "canopywave" and the correct model names
  • Optional: perform a lightweight API call (if applicable in your environment) to ensure CanopyWave models are loadable via their configured settings

🌿 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

  • New Features
    • Added new provider option for minimax-m2.1 model with pricing configuration.
    • Added new provider option for GLM-4.7 model with updated pricing and feature configuration.

✏️ Tip: You can customize this high-level summary in your review settings.

- 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>
Copilot AI review requested due to automatic review settings December 29, 2025 00:19
@coderabbitai

coderabbitai Bot commented Dec 29, 2025

Copy link
Copy Markdown
Contributor

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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.

📥 Commits

Reviewing files that changed from the base of the PR and between 1d7a319 and c001f1e.

📒 Files selected for processing (2)
  • packages/models/src/models/minimax.ts
  • packages/models/src/models/zai.ts

Note

Other AI code review bot(s) detected

CodeRabbit 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.

Walkthrough

Two 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

Cohort / File(s) Summary
Provider Configuration Additions
packages/models/src/models/minimax.ts, packages/models/src/models/zai.ts
Added CanopyWave provider entries to existing model definitions. minimax.ts: new provider for minimax-m2.1 with specified pricing, context size (128000), max output (8192), and feature flags. zai.ts: new provider for GLM-4.7 with pricing (0.43/1.75 per 1M tokens), context size (200000), max output (128000), streaming and reasoning enabled.

Possibly related PRs

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

Pre-merge checks and finishing touches

✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title accurately and concisely summarizes the main change: adding Minimax M2.1 and GLM 4.7 models via CanopyWave provider to the model registry.

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions github-actions Bot changed the title Add canopywave GLM-4.7 and Minimax-M2.1 models feat(models): add CanopyWave Dec 29, 2025

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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,

Copilot AI Dec 29, 2025

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Suggested change
jsonOutput: true,
jsonOutput: true,
jsonOutputSchema: false,

Copilot uses AI. Check for mistakes.
@steebchen steebchen changed the title feat(models): add CanopyWave feat(models): add minimax m2.1 & glm 4.7 via canopywave Dec 29, 2025
@steebchen steebchen changed the title feat(models): add minimax m2.1 & glm 4.7 via canopywave feat(models): add minimax m2.1 & glm 4.7 via CanopyWave Dec 29, 2025
@steebchen
steebchen added this pull request to the merge queue Dec 29, 2025
@steebchen
steebchen removed this pull request from the merge queue due to a manual request Dec 29, 2025
@steebchen
steebchen enabled auto-merge December 29, 2025 00:29
@steebchen
steebchen added this pull request to the merge queue Dec 29, 2025
Merged via the queue into main with commit 27e5ba7 Dec 29, 2025
11 of 13 checks passed
@steebchen
steebchen deleted the terragon/add-canopywave-models-c8fkzg branch December 29, 2025 00:40
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