You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add new provider-model definition for GLM-5.2 in providers/zai-coding-plan/models/glm-5.2.toml.
Include provider-specific fields for Z.AI Coding Plan using @ai-sdk/anthropic with endpoint https://api.z.ai/api/anthropic.
Set reasoning to true, tool_call to true, text-only input modality, context window 1_000_000, and max output 131_072.
Set reasoning_options to high and max.
Notes
The change to @ai-sdk/anthropic was made after checking Z.AI docs at https://docs.z.ai/devpack/latest-model.md, where the GLM-5.2 entry supports reasoning_options: ["high", "max"].
No provider-agnostic model metadata (models/ entry) was added because the change is scoped to Z.AI Coding Plan configuration.
Summary
GLM-5.2inproviders/zai-coding-plan/models/glm-5.2.toml.@ai-sdk/anthropicwith endpointhttps://api.z.ai/api/anthropic.reasoningtotrue,tool_calltotrue, text-only input modality, context window1_000_000, and max output131_072.reasoning_optionstohighandmax.Notes
@ai-sdk/anthropicwas made after checking Z.AI docs at https://docs.z.ai/devpack/latest-model.md, where the GLM-5.2 entry supportsreasoning_options: ["high", "max"].models/entry) was added because the change is scoped to Z.AI Coding Plan configuration.References