Skip to content

feat(models): add novita provider for glm-5.1 - #2060

Merged
steebchen merged 1 commit into
mainfrom
add-glm-5.1-novita
Apr 22, 2026
Merged

steebchen merged 1 commit into
mainfrom
add-glm-5.1-novita

Conversation

@steebchen

@steebchen steebchen commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Add Novita as a provider for GLM-5.1 (zai-org/glm-5.1) with 204.8K context and 131.1K max output.
  • Pricing matches Novita's listing: $1.40/M input, $0.26/M cached input, $4.40/M output.

Test plan

  • TEST_MODELS="novita/glm-5.1" pnpm test:e2e — all 72 tests pass (including reasoning, streaming, tool calls, JSON output).

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added support for the GLM-5.1 model with streaming, reasoning capabilities, tool use, and JSON output. The model provides a 204,800 token context window and supports a maximum output of 131,100 tokens.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings April 22, 2026 09:08
@coderabbitai

coderabbitai Bot commented Apr 22, 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: 9ecc6ee8-7192-49e9-b076-814d0bbb3921

📥 Commits

Reviewing files that changed from the base of the PR and between 123483b and 7839fcf.

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

Walkthrough

A new provider entry for the glm-5.1 model is added to zaiModels.providers with Novita as the provider, including pricing tiers, capability flags (streaming, reasoning, tools, JSON output enabled), and context/output capacity specifications.

Changes

Cohort / File(s) Summary
Model Provider Configuration
packages/models/src/models/zai.ts
Added new provider entry for glm-5.1 model under Novita provider with pricing, capabilities (streaming, reasoning, tools, JSON output), and capacity limits (204800 token context, 131100 max output).

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

🚥 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 clearly and concisely describes the main change: adding Novita as a provider for the GLM-5.1 model, which aligns perfectly with the changeset.
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 add-glm-5.1-novita

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 Novita as an additional provider option for the existing Zhipu GLM-5.1 model entry, aligning provider-specific limits and pricing with Novita’s listing.

Changes:

  • Add a new providerId: "novita" mapping for zai-org/glm-5.1.
  • Configure Novita-specific pricing (input/cached input/output) and capability flags (streaming/reasoning/tools/jsonOutput).
  • Set Novita-specific context and max output limits (204.8K context, 131.1K max output).

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

@steebchen
steebchen added this pull request to the merge queue Apr 22, 2026
@steebchen
steebchen removed this pull request from the merge queue due to a manual request Apr 22, 2026
@steebchen
steebchen merged commit f7bd388 into main Apr 22, 2026
21 of 22 checks passed
@steebchen
steebchen deleted the add-glm-5.1-novita branch April 22, 2026 10:04
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