# Example profile: Z.AI (Zhipu GLM)
# Sign up (international): https://z.ai/
# Sign up (China):         https://open.bigmodel.cn/
#
# For the China endpoint, after import run `ccode edit-config` and change
#   anthropic_base_url: "https://api.z.ai/api/anthropic"
# to:
#   anthropic_base_url: "https://open.bigmodel.cn/api/anthropic"
#
# Add to your config with:
#   ccode add-profile --from-url https://ccode.kronis.dev/configuration-examples/zai.yaml
#
# ccode will prompt you for the auth token during import.

zai:
  anthropic_base_url: "https://api.z.ai/api/anthropic"
  # the API key is part of the prompt field below, user will fill this out when pulling
  # anthropic_auth_token: "YOUR_ZAI_API_KEY_HERE"
  models:
    model:
      model: "glm-5.1"
      name: "GLM-5.1"
      description: "ZhipuAI GLM coding model via ccode"
    opus:
      model: "glm-5.1"
      name: "GLM-5.1"
      capabilities:
        adaptive_thinking: false
    sonnet:
      model: "glm-5.1"
      name: "GLM-5.1 (Sonnet tier)"
      description: "ZhipuAI GLM coding model via ccode"
      capabilities:
        adaptive_thinking: false
    haiku:
      model: "glm-4.5-air"
      name: "GLM-4.5 Air"
      description: "ZhipuAI GLM coding model via ccode"
      capabilities:
        adaptive_thinking: false
    subagent:
      model: "glm-4.5-air"
      name: "GLM-4.5 Air (subagent)"
      description: "ZhipuAI GLM coding model via ccode"
  env:
    CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: "1"
  prompt:
    - anthropic_auth_token
