opencode icon indicating copy to clipboard operation
opencode copied to clipboard

No support for z.ai GML-4.6 and Github claude-sonnet-4.5

Open marcingen9 opened this issue 1 year ago • 5 comments

This models cannot be selected in the models selection.

marcingen9 avatar Sep 30 '25 21:09 marcingen9

This issue might be a duplicate of existing issues. Please check:

  • #2760: GLM-4.5 model configuration and availability in model list
  • #2431: Support for Z.ai GLM Coding Plan (now closed but contains related implementation details)
  • #2383: Configuration issues with Z.AI subscription plans (closed but contains setup examples)
  • #2864: Claude Sonnet 4.5 availability (closed - Claude Sonnet 4.5 was already added)
  • #2879: Claude Sonnet 4.5 working issues with AWS Bedrock (closed)

Feel free to ignore if none of these address your specific case.

github-actions[bot] avatar Sep 30 '25 21:09 github-actions[bot]

@marcingen9 hm they should both be there, can you do:

rm ~/.cache/opencode/models.json

and then restart opencode?

rekram1-node avatar Sep 30 '25 22:09 rekram1-node

This will just wipe the cache and force a refresh of the list, it happens automatically but this will just make it easier for both of us

rekram1-node avatar Sep 30 '25 22:09 rekram1-node

@rekram1-node I am having this issue after using opencode github install and selecting Z.AI Coding Plan. It also sets API key to ZHIPU_API_KEY instead of ZAI_API_KEY as one might expect.

kierr avatar Oct 05 '25 19:10 kierr

they are the same company so that may be expected, but @fwang would know better here

rekram1-node avatar Oct 06 '25 04:10 rekram1-node