Skip to content

[Fix] GLM-5-Turbo is missing from the Z.ai provider#51

Merged
edelauna merged 2 commits into
mainfrom
fix/zai-glm-5-turbo-2b4n7t95tzd04
May 11, 2026
Merged

[Fix] GLM-5-Turbo is missing from the Z.ai provider#51
edelauna merged 2 commits into
mainfrom
fix/zai-glm-5-turbo-2b4n7t95tzd04

Conversation

@roomote
Copy link
Copy Markdown

@roomote roomote Bot commented May 10, 2026

Issue: #31

Opened on behalf of Toray Altas. View the task or mention @roomote for follow-up asks.

What problem this solves

Fixes an issue where users configuring the Z.ai provider could not select glm-5-turbo even though Z.AI publishes that model for both its international and mainland API lines.

Why this change was made

This adds the missing GLM-5-Turbo model metadata to the shared Z.ai model tables and extends the existing provider coverage so the model follows the same thinking-mode behavior as the other reasoning-capable GLM entries. The change stays scoped to Z.ai model registration and provider verification instead of reworking model discovery.

User impact

Users can now choose GLM-5-Turbo in Roo Code when using the Z.ai provider. Roo Code exposes the model on both supported Z.ai entrypoints and sends the correct default or disabled thinking state for requests.

@roomote roomote Bot added the roomote:auto-resolve-conflicts Allow Roomote to auto-resolve merge conflicts for this PR label May 10, 2026
@roomote roomote Bot assigned taltas May 10, 2026
@roomote roomote Bot added the roomote:auto-resolve-conflicts Allow Roomote to auto-resolve merge conflicts for this PR label May 10, 2026
@roomote
Copy link
Copy Markdown
Author

roomote Bot commented May 10, 2026

1 check still pending after the 10-minute CI watch window. Action required. See task

  • platform-unit-test (ubuntu-latest) completed successfully.
  • platform-unit-test (windows-latest) is still pending after the 10-minute CI watch window.
  • check-translations completed successfully.
  • Analyze (javascript-typescript) completed successfully.
  • e2e-mock completed successfully.
  • knip completed successfully.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 10, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

edelauna
edelauna previously approved these changes May 10, 2026
Copy link
Copy Markdown

@edelauna edelauna left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥 - nice looks good - had one comment related to tech debt, but we can also look at it in another PR or as part of a holistic review.

expect(model.info.reasoningEffort).toBe("medium")
expect(model.info.preserveReasoning).toBe(true)
})
})
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit / consistency, not a blocker: the new behavior tests below verify the thinking: { type: "enabled" | "disabled" } payload only against international_coding. This matches the pre-existing pattern (the GLM-4.7 behavior tests at lines 440/470/501 are also international-only), so this PR isn't introducing a gap — just continuing it.

createStreamWithThinking doesn't branch on zaiApiLine and the OpenAI client is mocked at the SDK level, so adding china_coding versions would exercise effectively the same code modulo baseURL. Worth doing only if you want to lock in symmetry against a future change that adds api-line-specific branching.

@edelauna edelauna marked this pull request as ready for review May 11, 2026 03:17
@edelauna edelauna requested a review from hannesrudolph as a code owner May 11, 2026 03:18
@roomote
Copy link
Copy Markdown
Author

roomote Bot commented May 11, 2026

I see some merge conflicts here. Working on them now...

@edelauna edelauna force-pushed the fix/zai-glm-5-turbo-2b4n7t95tzd04 branch 2 times, most recently from 90109f6 to 0bdf62d Compare May 11, 2026 13:13
@edelauna edelauna force-pushed the fix/zai-glm-5-turbo-2b4n7t95tzd04 branch from 0bdf62d to 6bd8e76 Compare May 11, 2026 16:32
@edelauna edelauna merged commit 32cdf80 into main May 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

roomote:auto-resolve-conflicts Allow Roomote to auto-resolve merge conflicts for this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants