fix(compute): GLM-5.3 系列在 anthropic 协议按官网用 output_config.effort 控制思考强度 (#120)

智谱官网(国内 coding-plan/latest-model、国际 devpack/latest-model)写明 /api/anthropic
以 thinking.type 与 output_config.effort 控制思考强度,thinking.type=enabled 一律按默认 max
处理,budget_tokens 不是控制项。两个 anthropic-messages 接入面的 GLM-5.3 系列此前只有按
OpenAI 协议文档写的 low/high/max 矩阵,客户端按 budget 形态发送:low/high 在上游都成了 max,
max(也是默认档)在客户端本机被拒绝;经 new-api 的 OpenAI 类渠道转换时 low 变成
reasoning_effort=medium,被智谱标准 API 拒绝。

- zhipu、zhipu-coding 接入面的 GLM-5.3 / 5.3-Flash / 5.3-FlashX 声明 adaptiveThinking
- GLM-5.3 系列规格加 anthropic-messages 协议 profile(V1 副本为 spec.extra.adaptiveThinking),
  覆盖经 ModelSpec 补全的云端条目
- 来源记录补国际 Coding Plan 页;按量 API Key 与 FlashX 按同一端点推定,未列入已核字段
- presetDataVersion 130
This commit is contained in:
2026-10-05 09:17:43 -07:00
committed by GitHub
parent e8122c1d77
commit 73b278df51
19 changed files with 170 additions and 35 deletions

View File

@@ -10,6 +10,7 @@
| GLM5.3/Flash精确窗口 | 官网1M/128K简写尚不足以证明本仓具体整数,取得明文限制后统一 |
| 存量Embedding/多模态接口 | 按独立接口读取向量维度、服务单位、端点和兼容格式;不由Chat参数迁移 |
| 国内价与国际价 | 分币种/地域与峰谷/缓存,不能相互覆盖;逐型号补字段来源 |
| 按量 API Key 与 FlashX 的 Anthropic 思考强度 | 2026-10-05 已按 Coding Plan 官网页给 GLM-5.3 系列声明 `adaptiveThinking`(客户端改发 `output_config.effort`);官网只在 Coding Plan 页说明 /api/anthropic 的处理。需用按量 API Key 对 GLM-5.3 与 FlashX 各发一次 `output_config.effort` 为 low 与 max 的请求,确认均被接受且思考长度有差异,再把 `zhipu` 接入面与 FlashX 规格的 `adaptiveThinking` 列入已核字段 |
未进行账号调用,不宣称国际套餐已实测。