-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat: enable native tool calling by default for Z.ai models #10158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Review complete. No issues found. The change correctly adds
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
Review complete. No issues found. The change correctly adds
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
Review complete. No issues found. The change correctly adds
Mention @roomote in a comment to request specific changes to this pull request or fix all unresolved issues. |
Enables native tool calling by default for all Z.ai models by adding defaultToolProtocol: "native" to each model configuration.
This change addresses the observation that Z.ai models were defaulting to XML tool calling instead of native tool calling, reducing the native tool call rate in telemetry.
Changes
defaultToolProtocol: "native"to all international Z.ai models (glm-4.5, glm-4.5-air, glm-4.5-x, glm-4.5-airx, glm-4.5-flash, glm-4.5v, glm-4.6, glm-4-32b-0414-128k)defaultToolProtocol: "native"to all mainland China Z.ai models (glm-4.5, glm-4.5-air, glm-4.5-x, glm-4.5-airx, glm-4.5-flash, glm-4.5v, glm-4.6)Testing
View task on Roo Code Cloud
Important
Sets
defaultToolProtocol: "native"for all Z.ai models inzai.ts, enabling native tool calling by default.defaultToolProtocol: "native"for all Z.ai models inzai.ts, affecting both international and mainland China models.This description was created by
for 08ef290. You can customize this summary. It will automatically update as commits are pushed.
Note
Cursor Bugbot is generating a summary for commit 08ef290. Configure here.