Fix OpenAI-compatible reasoning toggle for GLM 4.7/5 Turbo
fancive · ghdev · 2026-08-22
This PR resolves issue #42793 in anomalyco/opencode by updating ProviderTransform.reasoningToggle to recognize models with the npm package @ai-sdk/openai-compatible. When a reasoning toggle is declared in models.dev, the system now generates none/high variants that send thinking.type: "disabled" or "enabled" in the request body. This enables compatible endpoints like GLM 4.7 and GLM 5 Turbo to correctly toggle their thinking capabilities. The fix includes a regression test for this mapping and has been verified via end-to-end testing without affecting other provider behaviors.
More from coding & agent
- Agentic coding accessibility will reshape understanding of software complexity — pixlpa · 2026-08-24
- Devin Agent bypasses Slack block by finding emails in git logs — sandylikesfrogs · 2026-08-24
- Developer habits shift: Agents become collaborators from simple tools — latticecut · 2026-08-24
- Dev bottleneck shifts from writing to reading code: exe.dev co-founder — thursdai_pod · 2026-08-24
- The biggest AI mistake: trying to reinvent the wheel instead of using tools — Tired40s · 2026-08-24
- DeepPaperNote turns research papers into Obsidian notes — tom_doerr · 2026-08-24