opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Please adapt to the official GLM-4.5 direct connection version instead of Openrouter

Open vitatea2023 opened this issue 1 year ago • 3 comments

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

https://bigmodel.cn/pricing

vitatea2023 avatar Aug 03 '25 16:08 vitatea2023

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!

lwmacct avatar Aug 03 '25 16:08 lwmacct

I think it's already implemented in https://github.com/sst/opencode/commit/a9fbe074081a6d8ba511cd45c21425b1db4291a7 - z.ai is the official version.

asafyish avatar Aug 03 '25 18:08 asafyish

afaik this is done

thdxr avatar Aug 03 '25 21:08 thdxr