Repository navigation
feat: expand canopywave models #1132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
63 changes: 63 additions & 0 deletions
63
apps/ui/src/content/changelog/2025-11-08-canopywave-new-models.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,63 @@ | ||
| --- | ||
| id: "13" | ||
| slug: "canopywave-new-models" | ||
| date: "2025-11-08" | ||
| title: "CanopyWave: 3 New Models with 75% Off" | ||
| summary: "CanopyWave brings Qwen3 Coder, MiniMax M2, and GLM-4.6 to LLM Gateway with an exclusive 75% discount on all three models." | ||
| image: | ||
| src: "/changelog/canopywave75.png" | ||
| alt: "CanopyWave: 3 New Models with 75% Off" | ||
| width: 2046 | ||
| height: 1102 | ||
| --- | ||
|
|
||
| We're excited to announce three new models from **CanopyWave** with an exclusive **75% discount** on all models! | ||
|
|
||
| ## 🎯 New Models Available | ||
|
|
||
| ### **GLM-4.6** - Advanced Reasoning | ||
|
|
||
| - **Model ID**: `glm-4.6` | ||
| - **Provider**: `canopywave/zai/glm-4.6` | ||
| - **Context Window**: 202,752 tokens | ||
| - **Pricing**: $0.45 per 1M input tokens / $1.50 per 1M output tokens (75% off) | ||
| - Enhanced reasoning and tool calling capabilities | ||
|
|
||
| ### **Qwen3 Coder** - Specialized Coding Model | ||
|
|
||
| - **Model ID**: `qwen3-coder` | ||
| - **Provider**: `canopywave/qwen/qwen3-coder` | ||
| - **Context Window**: 262,000 tokens | ||
| - **Pricing**: $0.22 per 1M input tokens / $0.95 per 1M output tokens (75% off) | ||
| - Advanced coding capabilities with massive context window | ||
|
|
||
| ### **MiniMax M2** - High-Performance Chat | ||
|
|
||
| - **Model ID**: `minimax-m2` | ||
| - **Provider**: `canopywave/minimax/minimax-m2` | ||
| - **Context Window**: 196,608 tokens | ||
| - **Pricing**: $0.25 per 1M input tokens / $1.00 per 1M output tokens (75% off) | ||
| - Powerful conversational AI with large context support | ||
|
|
||
| ## 🚀 Getting Started | ||
|
|
||
| All models support streaming, tool calling, and JSON output mode: | ||
|
|
||
| ```bash | ||
| curl -X POST https://api.llmgateway.io/v1/chat/completions \ | ||
| -H "Authorization: Bearer YOUR_API_KEY" \ | ||
| -H "Content-Type: application/json" \ | ||
| -d '{ | ||
| "model": "qwen3-coder", | ||
| "messages": [{"role": "user", "content": "Write a Python function"}] | ||
| }' | ||
| ``` | ||
|
|
||
| ✅ **75% Discount** - Exclusive pricing for all three models | ||
| ✅ **Large Context Windows** - 196k-262k tokens | ||
| ✅ **Full Feature Support** - Streaming, tools, JSON output | ||
| ✅ **Instant Access** - Available now | ||
|
|
||
| --- | ||
|
|
||
| **[Get started now](/signup)** 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| import type { ModelDefinition } from "@/models.js"; | ||
|
|
||
| export const minimaxModels = [ | ||
| { | ||
| id: "minimax-m2", | ||
| name: "MiniMax M2", | ||
| family: "minimax", | ||
| providers: [ | ||
| { | ||
| providerId: "canopywave", | ||
| modelName: "minimax/minimax-m2", | ||
| inputPrice: 0.25 / 1e6, | ||
| outputPrice: 1.0 / 1e6, | ||
| discount: 0.75, | ||
| requestPrice: 0, | ||
| contextSize: 196608, | ||
| maxOutput: undefined, | ||
| streaming: true, | ||
| vision: false, | ||
| tools: true, | ||
| jsonOutput: true, | ||
| }, | ||
| ], | ||
| }, | ||
| ] as const satisfies ModelDefinition[]; | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
Verify pricing and discount calculation consistency.
The
discount: 0.75field combined with the currentinputPriceandoutputPricevalues creates a potential inconsistency with the changelog. According to theProviderModelMappinginterface comment in packages/models/src/models.ts (line 48-50),discountrepresents the discount percentage where0.5 = 50% off. This meansdiscount: 0.75indicates 75% off, so the final user-facing price should bebase * (1 - 0.75) = base * 0.25.With the current values:
However, the changelog (lines 39, 40) states: "$0.25 per 1M input tokens / $1.00 per 1M output tokens (75% off)", which matches the base prices in the code, not the discounted prices.
This same issue affects all three models (GLM-4.6, Qwen3 Coder, and MiniMax M2).
Either:
inputPrice/outputPriceshould be 4x higher (base prices before discount), ORdiscountfield needs clarificationPlease clarify the intended pricing model and ensure consistency between code and documentation. You may want to verify this with the team or check how the discount field is actually applied in the pricing calculation logic elsewhere in the codebase.
🏁 Script executed:
Length of output: 27987
🏁 Script executed:
Length of output: 11177
🏁 Script executed:
Length of output: 327
🏁 Script executed:
Length of output: 2558
🏁 Script executed:
Length of output: 604
The pricing calculation is incorrect and will undercharge users by approximately 75%.
The changelog entry for MiniMax M2 explicitly states "$0.25 per 1M input tokens / $1.00 per 1M output tokens (75% off)" — these are the final prices users should pay. However, the code applies the discount as a second multiplier:
Users would be charged $0.0625 per 1M tokens, not the documented $0.25.
Fix: Adjust
inputPriceandoutputPriceto represent base prices before discount:inputPriceshould be1.0 / 1e6(so 1.0 × 0.25 = 0.25 final)outputPriceshould be4.0 / 1e6(so 4.0 × 0.25 = 1.0 final)This same issue affects other models with discounts in the codebase (alibaba, zai, etc.).
🤖 Prompt for AI Agents