Skip to content

Add ZAI Coding Plan GLM-5.2 with Anthropic provider configuration #2276

@ririnto

Description

@ririnto

Summary

  • 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.

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions