Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Dec 22, 2025

Related GitHub Issue

Closes: #10269

Roo Code Task Context (Optional)

N/A

Description

This PR attempts to address Issue #10269 by adding basic support for the GLM-4.7 model to the Z.ai provider.

Changes made:

  • Added GLM-4.7 documentation link to the file header comments
  • Added glm-4.7 entry to internationalZAiModels with the following configuration:
    • maxTokens: 98,304
    • contextWindow: 200,000 (matching GLM-4.6)
    • supportsImages: false
    • supportsPromptCache: true
    • supportsNativeTools: true
    • defaultToolProtocol: "native"
    • Pricing aligned with GLM-4.6
  • Added glm-4.7 entry to mainlandZAiModels with similar configuration but using mainland China pricing

This follows the existing pattern used for GLM-4.5 and GLM-4.6 models already in the codebase.

Feedback and guidance are welcome!

Test Procedure

  • Verified TypeScript compilation passes with npm run build
  • Verified linting passes with npm run lint
  • Manual verification: The new model will appear in the Z.ai provider's model selection dropdown

Pre-Submission Checklist

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I have performed a thorough self-review of my code.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Documentation Impact: I have considered if my changes require documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I have read and agree to the Contributor Guidelines.

Screenshots / Videos

N/A - This is a data/configuration change only.

Documentation Updates

  • No documentation updates are required.

Additional Notes

This PR adds basic support for GLM-4.7 as requested in the issue. The issue mentions that GLM-4.7 may have "thinking capabilities" - if extended thinking/reasoning support is needed in the future, that can be added in a follow-up PR.

Get in Touch

N/A

@roomote
Copy link
Contributor Author

roomote bot commented Dec 22, 2025

Rooviewer Clock   See task on Roo Cloud

Review complete. No issues found.

The PR correctly adds GLM-4.7 model support to both international and mainland Z.ai model lists, following the established patterns used for GLM-4.5 and GLM-4.6.

Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues.

@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels.

Projects

Status: Triage

Development

Successfully merging this pull request may close these issues.

[ENHANCEMENT] Add support for GLM-4.7 on Z.ai Provider

3 participants