opencode regression: dual max_tokens fields break OpenAI-compatible endpoints

amonshiz · ghdev · 2026-10-15

anomalyco/opencode issue #55726 reports that since v2.0.28, requests to @ai-sdk/openai-compatible providers send both maxtokens and maxcompletiontokens, and strict endpoints (e.g. Baseten-hosted OpenAI-compatible APIs) reject any body containing both — verified via curl. GLM-5.3, GLM-5.3-Fast and Kimi-K3 are affected while OpenAI/Anthropic endpoints are not. The regression stems from #54694's migrateModel change; v1.19.0 and v2.0.27 work, v2.0.29 remains broken.

Original post →

More from coding & agent

coding & agent channel →