修复 OpenAI 兼容接口 reasoning toggle,支持 GLM
fancive · ghdev · 2026-08-22
此 PR 修复了 anomalyco/opencode 中的 issue #42793,使 ProviderTransform.reasoningVariants 能正确处理 @ai-sdk/openai-compatible npm 包的 reasoning toggle。现在,当 models.dev 中声明 reasoning toggle 时,系统会生成 none/high 变体,并在请求体中发送 thinking.type: "disabled"/"enabled"。该变更确保了 GLM 4.7 和 GLM 5 Turbo 等兼容端点能够正确开启或关闭 thinking 能力。代码包含了针对该映射的回归测试,并通过了端到端验证,同时未影响其他 provider 的现有行为。
「编程与Agent」频道最新
- Vercel 后端升级:Python 正式 GA,新增容器与 Daemons — cramforce · 2026-10-16
- WorldMemArena 中选 NeurIPS:存储式 Agent 记忆评估遭颠覆 — xwang_lk · 2026-10-16
- Vercel Ship 现场宣布容器部署,Go/Ruby/Java 皆可上 — edwin · 2026-10-16
- TRL 零时差支持 Muse Spark Open:64 张 H100 上 LoRA 微调 816B MoE — QGallouedec · 2026-10-16
- 工程师入职首日全靠 AI 提问,第二天就能提交有影响力的 PR — Yuchenj_UW · 2026-10-16
- Perplexity 开源支撑其 Computer 产品的智能体沙箱平台 SPACE — AravSrinivas · 2026-10-16