Tabbit
活动资源博客模型
Tabbit LogoTabbit

Tabbit — 为你工作的 AI 浏览器

主题资源

  • AI Browser Resources
  • Agentic Browser Resources
  • Browser Downloads and Install Guides
  • Browser Comparisons
  • AI Browser Alternatives
  • Browser Productivity Resources

热门指南

  • AI Browser
  • Agentic Browser Download
  • Best AI Browser 2026: Top 9 Tested & Ranked
  • AI Browser Download
  • Free AI Browser
  • Best AI Browser 2026
  • AI Browser Comparison 2026
  • AI Browser for Windows
  • AI Browser for Mac
  • Chrome Alternative 2026

活动

  • 别装了,你在《牛来》里早有原型
  • Tabbit 妙招大赛
  • KPOP SBTI 饭圈人格测试
  • Tabbit 校园共创者计划
  • fifi 的论文文献妙招精选
  • 用户问卷

关于

  • Tabbit 博客
  • 媒体报道
简体中文
简体中文English
提示词与工作流

GLM-5.3 · configuration

配置三档推理与多协议调用

把强制思考、low/high/max 与三种 API 协议接成可检查的调用路径。

来源已核对;未实测AIHubMix OpenAI-compatible API;Chat Completions、Responses、Messages

前置条件与输入

  • API key
  • model ID
  • reasoning_effort
  • tool schema

完整可复制模板

编辑改写:可审计工作流

Tabbit 编辑改写;非来源原文
请用以下输入完成一次可回滚的 GLM-5.3 任务:

- API key: {{API_KEY}}
- model ID: {{MODEL_ID}}
- reasoning_effort: {{REASONING_EFFORT}}
- tool schema: {{TOOL_SCHEMA}}

先列计划、环境和验收标准,获人工确认后再执行;区分来源事实、模型结果和待验证项。

运行前仍需替换: API key, model ID, reasoning_effort, tool schema

操作步骤

  1. 固定提供商路由、模型 ID 和协议;不要把聚合路由 coding-glm-5.3 写成官方 glm-5.3。

  2. 简单任务先用 low,困难 Agent 任务再用 high 或 max;记录实际输出与思考 token。

  3. 工具调用完成后校验结构化输出与业务结果,不向用户展示隐藏思考。

查看来源研究笔记

核心内容摘要

GLM-5.3 是 Z.ai 2026-08-14 发布的旗舰模型,与 GLM-5.2 完全同基座、纯后训练升级。本文所有"已验证"结论来自 2026-08-14 当天通过 AIHubMix API(Chat Completions / Responses / Messages 三种协议)的真实调用。

1. 模型规格速览

项目值
上下文窗口1M tokens(官方精确值 1,048,576)
最大输出128K(实测上限 131,072,超出返回 400)
输入模态文本
思考始终开启,不可关闭;reasoning_effort 三档 low / high / max(默认 max)
与 5.2 关系同基座,纯后训练;编程与长程任务大幅增强 + 涌现网络安全能力

2. 与 GLM-5.2 的关键 API 差异(最重要)

项目GLM-5.2GLM-5.3
thinking.typeenabled / disabled(可关)仅 enabled(不可关)
reasoning_effort7 值兼容映射三档 low / high / max(默认 max)
定位通用旗舰强化编程与长程 Agent,涌现网络能力
  • 官方迁移建议:原发送 {"type":"disabled"} 的应用改为 {"type":"enabled"} 并设 reasoning_effort:"low"。

  • 实测:经 AIHubMix 发送 disabled 仍返回 200 且思考照常发生(按官方通道语义自动转换),若客户端依赖"关思考省 token",请改用 reasoning_effort:"low"。

  • 实测:非法枚举值返回 200 并回退默认 max;low vs max 在同一算术题上思考 token 为 27 vs 39。

3. 三种协议的调用与思考内容读取

Chat Completions(思考内容在 reasoning_content 字段,流式在 delta.reasoning_content):

from openai import OpenAI
client = OpenAI(base_url="https://aihubmix.com/v1", api_key="<KEY>")
completion = client.chat.completions.create(
    model="coding-glm-5.3",
    reasoning_effort="max",   # low / high / max, 默认 max
    extra_body={"thinking": {"type": "enabled"}},
    messages=[{"role": "user", "content": "Compute the square root of (17*23-19*11), rounded down. Digits only."}],
)
print(completion.choices[0].message.reasoning_content)
print(completion.choices[0].message.content)  # 观察到: "13"
  • 实测:usage.completion_tokens_details.reasoning_tokens 报告思考用量——同题 low 为 27、max 为 39。

Responses API(思考内容为 reasoning output item,文本在 summary 数组的 summary_text):

response = client.responses.create(model="coding-glm-5.3", input="What is the capital of France? City name only.")
# output item 类型: ["reasoning", "message"]
# reasoning item: {"type": "reasoning", "summary": [{"type": "summary_text", "text": "..."}]}
# usage.output_tokens_details.reasoning_tokens: 80
  • 实测:不传任何 reasoning 参数也会默认返回 reasoning item(无需显式 opt-in)。

Messages(Anthropic 协议)(思考内容为原生 thinking content block):

client = Anthropic(api_key="<KEY>", base_url="https://aihubmix.com")
response = client.messages.create(model="coding-glm-5.3", max_tokens=4096,
    messages=[{"role": "user", "content": "What is the capital of France? City name only."}])
# content block 类型: ["thinking", "text"]

4. 工具调用与并行工具

  • 三种 API 均验证可用;Responses API 观察到单轮内并行工具调用(官方声明 supports_parallel_tool_calls: true)。

  • 上游限制:tools 最多 128 个函数;tool_choice 原生仅支持 auto。

  • Chat Completions 实测 tool_choice:"none" 有效(不再调工具);Messages 协议实测 tool_choice:{type:"none"} 仍会产出 tool_use——要禁用工具请直接移除 tools 参数,或用 Chat Completions 的 tool_choice:"none"。

5. 结构化输出

  • response_format 支持 text 和 json_object,上游未提供 json_schema 模式;需要严格 schema 时把 JSON Schema 写进提示词并客户端校验。

  • 实测:response_format={"type":"json_object"} 返回合法 JSON 且包含请求的 key。

6. 其他

  • 上下文缓存 / 自动缓存可用(AIHubMix 侧)。

  • 该文为 AIHubMix 聚合渠道视角(模型 ID coding-glm-5.3 为其预览路由),官方渠道模型 ID 为 glm-5.3,注意区分。

原文关键引文

"thinking.type no longer supports disabled — thinking cannot be turned off."

"If your client relied on 'turn off thinking to save tokens', switch to reasoning_effort: 'low'."

来源与日期

AIHubMix Blog(AI 聚合 API 服务商教程) · 原文日期: 2026-08-14 · 编辑日期: 2026-09-20

阅读原始来源
变量检查

仍需替换: 4

API keymodel IDreasoning_efforttool schema

相关提示词

迁移 GLM-5.3 的思考参数按任务难度选择 reasoning effort在 ZCode 里先计划再编辑用分阶段上下文完成编码任务

相关测评

X(推特)@Rafa_Schwinger:金属内核审查任务——GLM 5.3 xhigh 88/100 vs Grok 4.6 86/100GLM-5.3 官方技术博客:前沿编程与涌现的网络安全能力(Z.ai)GLM-5.3 发布测评:先进网络安全能力与编程提升(VentureBeat)GLM-5.3 独立基准测试:KingBench 3 得分 91.25%,登顶(MindStudio)

模型深度阅读

总览 · 简体中文

GLM-5.3 详解:相比 GLM-5.2 改变了什么

GLM-5.3 延续 GLM-5.2 基座,通过 post-training 强化长流程编程与智能体任务。本文比较变化、获取方式、成本和未知风险。

GLM-5.3

在 Tabbit 中使用 GLM-5.3

请在上方所列环境中运行本指南。下载不会自动传入模板,也不代表账户已开放该模型。