feat(models): add GLM-5.2 and DS V4 via ByteDance#2966
Conversation
Add GLM-5.2 (glm-5-2-260617) as a new ByteDance model and add ByteDance provider mappings for DeepSeek V4 Pro (deepseek-v4-pro-260425) and DeepSeek V4 Flash (deepseek-v4-flash-260425). Pricing and limits verified against the BytePlus ModelArk catalog and pricing page. GLM-5.2 wraps JSON-mode streaming output in markdown fences, so it sets healStreamingJsonOutput. The DeepSeek V4 mappings are adaptive-thinking reasoning models and set reasoningOutput: "omit" and jsonOutput: false to match the upstream capability flags. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 13 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Convert all per-token prices in the ByteDance model file from e-3 to e-6 so the coefficient reads directly as USD per million tokens (the number providers publish). Values are unchanged. Document the convention in AGENTS.md; requestPrice/perSecondPrice are exempt as they are flat USD. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Summary
Adds three new ByteDance (BytePlus ModelArk) model mappings:
glm-5-2-260617(flagship long-horizon text model, 1M context, tunable reasoning)deepseek-v4-pro-260425on the existingdeepseek-v4-promodeldeepseek-v4-flash-260425on the existingdeepseek-v4-flashmodelDetails
Model IDs, pricing, context sizes, and max-output values were verified against the live BytePlus ModelArk
/modelscatalog and the official pricing page:Capability notes:
healStreamingJsonOutput: true(same mechanism used by the NVIDIA mapping) to buffer and heal the JSON before it reaches the client.json_object: false; they setjsonOutput: falseandreasoningOutput: "omit", matching the existing DeepSeek-on-ByteDance (v3.1/v3.2) mappings.Testing
pnpm formatandpnpm buildpass (models + gateway + api).TEST_MODELS="bytedance/glm-5-2,bytedance/deepseek-v4-pro,bytedance/deepseek-v4-flash",CI=true,FULL_MODE=true) passes across basic, streaming, reasoning, tool calls, and JSON output — including the GLM-5.2 JSON-fence healing. Requires the models to be activated in the ByteDance Ark Console for the account behind the e2e secret.🤖 Generated with Claude Code