Please adapt to the official GLM-4.5 direct connection version instead of Openrouter
https://github.com/sst/opencode/issues/1442 Please adapt to the official direct connection version instead of Openrouter, as the official direct connection version has cached prices that can greatly reduce coding costs
Thank you for the suggestion! We’re happy to support the switch to the official GLM-4.5 direct connection version. Feel free to submit a pull request with the necessary changes — we’ll be glad to review and merge it.
Looking forward to your contribution!
I think it's already implemented in https://github.com/sst/opencode/commit/a9fbe074081a6d8ba511cd45c21425b1db4291a7 - z.ai is the official version.
afaik this is done