修复 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」频道最新
- 腾讯发布 UI-Mate-27B,支持桌面 GUI 智能体操作 — tencent · 2026-08-24
- 实测对比:从 DeepSeek 到 Claude 二十美元订阅 — Unlikely_Bluejay5392 · 2026-08-24
- Claude Code 推出远程控制功能,编码效率提升 — rohanpaul_ai · 2026-08-24
- Vercel CEO rauchg 详解 fx 扩展哲学:MCP、Skills、插件与 Unix 组合 — AccBalanced · 2026-08-24
- Netflix 揭秘 LLM Judge 生产实践:每周评估数十万条推荐解释 — omarsar0 · 2026-08-24
- Simon Willison 用 Fable 5 实测 smolvm:硬件级隔离沙箱获认可 — yawnxyz · 2026-08-24