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
- DHH cracks Linux deep sleep on Zenbook A16: 0.16W overnight draw — cgarciae88 · 2026-11-30
- Sakana AI open-sources Agentic Scientist, pushing toward self-improving AI researchers — SakanaAILabs · 2026-11-30
- Blogger migrates Ghost blog to self-hosting in hours with Claude — kevinakwok · 2026-11-30
- Business-prose model open-sourced: trained on a single 96GB GPU, all quant formats in one repo — IridiumEagle · 2026-11-30
- Devs say vibe-coding workflow is draining the joy of programming — weskambale · 2026-11-30
- Slipwing: Open-Source Windows MCP Server Lets Agents Drive Chrome and Desktop Apps in the Background — Sudden_Analysis8617 · 2026-11-30