zai-org / zai-org/feedback

Claude Desktop Third-party Inference cannot access GLM-5.2 through Anthropic-compatible endpoint

Open
#182 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority: P2 status: 待评估 type: Bug
Dominant language
No language data
Stars
22
Forks
1
PR merge metrics
No merged PRs in 30d

Description

提交前确认 · Pre-submission checklist
  • 我已搜索过现有 issue,确认这不是重复 / I searched existing issues and confirmed this isn't a duplicate.
  • 我已阅读 CONTRIBUTING.md / I've read CONTRIBUTING.md.
问题类别 · Category

模型设置 / 切换 · Model config

涉及的 Agent 框架 · Agent framework

Claude Code

严重程度 · Severity

阻塞使用 · Blocking (无法使用核心功能 / core function unusable)

复现频率 · Reproducibility

必现 · Always

问题描述 · Description

When using Claude Desktop's Third-party Inference with Z.ai's Anthropic-compatible endpoint, it is currently impossible to use GLM-5.2.

Claude Desktop validates model IDs and only accepts Anthropic model names (e.g. claude-opus-4). Native model IDs such as glm-5.2 are rejected by the client.

However, Z.ai's Anthropic gateway maps all tested Anthropic aliases to glm-4.7 instead of glm-5.2.

As a result, there is currently no way to use GLM-5.2 from Claude Desktop Third-party Inference, despite the endpoint supporting it directly.

复现步骤 · Steps to reproduce
  1. Configure Claude Desktop Third-party Inference.

Base URL:

https://api.z.ai/api/anthropic
  1. Configure the provider with:
Model ID: claude-opus-4
  1. Ask the model any question.

  2. Observe that the backend model is GLM-4.7.

  3. Verify using the Anthropic API:

POST /v1/messages
{
  "model": "claude-opus-4"
}

returns

"model": "glm-4.7"
  1. Send the same request using
"model": "glm-5.2"

which returns

"model": "glm-5.2"
  1. Attempt to configure Claude Desktop with
Model ID: glm-5.2

Claude Desktop rejects it with:

Doesn't look like an Anthropic model: expected a gateway model route referencing an Anthropic model (e.g. claude-sonnet-4-5, anthropic/claude-*). Name routes to match the underlying model.
期望表现 · Expected behavior

One of the following should be supported:

  1. claude-opus-4 (or another documented Anthropic alias) should route to GLM-5.2.

OR

  1. Documentation should provide the correct Anthropic-compatible alias for GLM-5.2.

Otherwise, Claude Desktop users cannot use GLM-5.2 through Third-party Inference.

实际表现 · Actual behavior

All tested Anthropic aliases route to GLM-4.7.

Native model IDs (e.g. glm-5.2) work correctly when calling the API directly, but cannot be used from Claude Desktop because the client validates the model name.

ZCode 版本 · ZCode version

Claude 1.24012.1 (0adcae) 2026-07-21T20:59:53.000Z

设备 / 系统 / 浏览器 · Device / OS / Browser

macOs Sequoia 15.7.7

截图 / 录屏 / 日志 · Screenshots / Recordings / Logs
Image Image

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Anthropic-compatible requests at https://api.z.ai/api/anthropic with claude-opus-4 and glm-5.2, then check the provider's documented model aliases and routing behavior. Done means either an accepted Anthropic alias routes to GLM-5.2 or the documentation identifies the correct alias for Claude Desktop.

Written by the indexing model from the issue text.

Assessment

Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.