Skip to content

feat: add glm-5-turbo model to Z.ai provider#12022

Draft
roomote-v0[bot] wants to merge 1 commit intomainfrom
feature/add-glm-5-turbo-model
Draft

feat: add glm-5-turbo model to Z.ai provider#12022
roomote-v0[bot] wants to merge 1 commit intomainfrom
feature/add-glm-5-turbo-model

Conversation

@roomote-v0
Copy link
Copy Markdown
Contributor

@roomote-v0 roomote-v0 bot commented Mar 27, 2026

This PR attempts to address Issue #12018.

Changes

Adds glm-5-turbo to both international and mainland Z.ai model lists in packages/types/src/providers/zai.ts.

Model specs (international):

  • Context window: 200,000 tokens
  • Max output tokens: 128,000
  • Input price: $1.2/M tokens
  • Cached input price: $0.24/M tokens
  • Output price: $4.0/M tokens
  • Prompt caching: supported

Mainland pricing

Estimated proportionally from the existing glm-5 international/mainland price ratio.

Testing

  • All 33 existing Z.ai tests pass
  • Lint and type checks pass across the entire monorepo

Feedback and guidance are welcome.

Interactively review PR in Roo Code Cloud

Add glm-5-turbo to both international and mainland Z.ai model lists
with 200k context window, 128k max output tokens, and prompt caching.

International pricing: $1.2/M input, $0.24/M cached, $4.0/M output
Mainland pricing estimated proportionally from glm-5 ratios.

Closes #12018
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.

1 participant