Skip to content

feat(models): add canopywave for kimi-k2.6, glm-5.1 - #2053

Closed
steebchen wants to merge 3 commits into
mainfrom
canopywave-models
Closed

steebchen wants to merge 3 commits into
mainfrom
canopywave-models

Conversation

@steebchen

@steebchen steebchen commented Apr 21, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Adds canopywave provider entry for kimi-k2.6 with $0.50/$2.80/$0.10 per MTok (in/out/cached) and 256K context, matching the existing kimi-k2.5 canopywave pattern (discount 0.3, skip in tests).
  • GLM-5 on canopywave already matches the advertised pricing (input 0.9, cached 0.2, output 3.1, 200K context), so no changes were required there.

Test plan

  • pnpm --filter @llmgateway/models build passes
  • pnpm format produces no changes to the edited file

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added support for the kimi-k2.6 model with streaming, reasoning, vision, tool use, and JSON output; supports a 262K-token context window and up to 32K-token output.
    • Added an additional provider option for glm-5.1 with streaming, reasoning, and tool use (vision and JSON output not enabled).

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 21, 2026 09:53
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai

coderabbitai Bot commented Apr 21, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 89e30848-5880-4500-a0b7-cc84b1023e4e

📥 Commits

Reviewing files that changed from the base of the PR and between 51e3181 and 4e4a312.

📒 Files selected for processing (2)
  • packages/models/src/models/moonshot.ts
  • packages/models/src/models/zai.ts
✅ Files skipped from review due to trivial changes (1)
  • packages/models/src/models/zai.ts
🚧 Files skipped from review as they are similar to previous changes (1)
  • packages/models/src/models/moonshot.ts

Walkthrough

Added new canopywave provider entries to model registries: kimi-k2.6 in moonshot and glm-5.1 in zai, including pricing, context/maxOutput, and capability flags (streaming, reasoning, tools; vision/json vary per model).

Changes

Cohort / File(s) Summary
Moonshot Model Configuration
packages/models/src/models/moonshot.ts
Appended a providers entry for model id: "kimi-k2.6" with providerId: "canopywave", modelName: "moonshotai/kimi-k2.6", pricing (inputPrice: 0.5/1e6, cachedInputPrice: 0.1/1e6, outputPrice: 2.8/1e6, discount: 0.3, requestPrice: 0), contextSize: 262144, maxOutput: 32768, and capabilities: streaming: true, reasoning: true, vision: true, tools: true, jsonOutput: true.
Zai Model Configuration
packages/models/src/models/zai.ts
Added a providers entry for model id: "glm-5.1" with providerId: "canopywave", modelName: "zai/glm-5.1", pricing/discount/context/maxOutput values, and capabilities: streaming: true, reasoning: true, vision: false, tools: true, jsonOutput: false (entry marked test: "skip").

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title directly and clearly describes the main changes: adding canopywave provider support for two models (kimi-k2.6 and glm-5.1).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch canopywave-models

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.

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

Adds a canopywave provider mapping for the Moonshot kimi-k2.6 model, aligning it with the existing kimi-k2.5 canopywave configuration and pricing patterns in @llmgateway/models.

Changes:

  • Add canopywave provider entry for moonshotai/kimi-k2.6 with input/cached/output pricing, discount, and 256K context.
  • Mark the new provider mapping as test: "skip" consistent with other canopywave entries in this file.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/models/src/models/moonshot.ts`:
- Around line 349-365: Remove the Canopy Wave mapping for the Moonshot K2.6
entry: locate the object with providerId "canopywave" and modelName
"moonshotai/kimi-k2.6" (currently marked test: "skip") and delete it from the
models list; if you want to keep a placeholder instead, add a clearly-documented
commented note or guarded flag and do not include it as an active mapping until
you have public launch confirmation or validated pricing/availability via a
smoke test against the moonshotai/kimi-k2.6 endpoint.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: e3e20ec9-af8b-4f99-9044-d48056076daa

📥 Commits

Reviewing files that changed from the base of the PR and between 5aff013 and 6837edd.

📒 Files selected for processing (1)
  • packages/models/src/models/moonshot.ts

Comment thread packages/models/src/models/moonshot.ts
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@steebchen steebchen changed the title feat(models): add canopywave provider for kimi-k2.6 feat(models): add canopywave for kimi-k2.6, glm-5.1 Apr 21, 2026
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@steebchen

Copy link
Copy Markdown
Member Author

Superseded by #2056 (kimi-k2.6) and #2057 (glm-5.1)

@steebchen steebchen closed this Apr 21, 2026
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