Claude Desktop Third-party Inference cannot access GLM-5.2 through Anthropic-compatible endpoint
Nobody has claimed this yet.
- 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
- Configure Claude Desktop Third-party Inference.
Base URL:
https://api.z.ai/api/anthropic
- Configure the provider with:
Model ID: claude-opus-4
-
Ask the model any question.
-
Observe that the backend model is GLM-4.7.
-
Verify using the Anthropic API:
POST /v1/messages
{
"model": "claude-opus-4"
}
returns
"model": "glm-4.7"
- Send the same request using
"model": "glm-5.2"
which returns
"model": "glm-5.2"
- 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:
claude-opus-4(or another documented Anthropic alias) should route to GLM-5.2.
OR
- 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
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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