You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
No, but I didn't have to do that before. Their docs still mention z.ai as first-class supported model. I already ran the /connect command and it was working as expected until now
I tried deleting ~/.cache/opencode/models.json, and also deleting ~/.cache/opencode completely. But the issue persists. I have also upgraded to v1.1.35.
It was 100% an error on my side. I had made a typo on enabled_providers in the config. I'll close the issue now, I apologize for taking people's time with this.
Activity
polyrand commentedon Jan 22, 2026
The model has the same identifier in models.dev:
Output:
{ "id": "glm-4.7", "name": "GLM-4.7", "family": "glm", "attachment": false, "reasoning": true, "tool_call": true, "interleaved": { "field": "reasoning_content" }, "temperature": true, "knowledge": "2025-04", "release_date": "2025-12-22", "last_updated": "2025-12-22", "modalities": { "input": [ "text" ], "output": [ "text" ] }, "open_weights": true, "cost": { "input": 0, "output": 0, "cache_read": 0, "cache_write": 0 }, "limit": { "context": 204800, "output": 131072 } }cravenceiling commentedon Jan 22, 2026
Do you have the
ZHIPU_API_KEYenv var set? It's required for that provider/model.polyrand commentedon Jan 22, 2026
No, but I didn't have to do that before. Their docs still mention
z.aias first-class supported model. I already ran the/connectcommand and it was working as expected until nowhttps://opencode.ai/docs/providers/#zai
But I still tried setting it and it doesn't work either.
I also tried
--model=zai/glm-4.7, but the result is the same (doesn't work)rekram1-node commentedon Jan 22, 2026
@polyrand can you show me output of:
opencode auth listopencode modelspolyrand commentedon Jan 22, 2026
> opencode models github-copilot/claude-haiku-4.5 github-copilot/claude-opus-4.5 github-copilot/claude-opus-41 github-copilot/claude-sonnet-4 github-copilot/claude-sonnet-4.5 github-copilot/gemini-2.5-pro github-copilot/gemini-3-flash-preview github-copilot/gemini-3-pro-preview github-copilot/gpt-4.1 github-copilot/gpt-4o github-copilot/gpt-5 github-copilot/gpt-5-mini github-copilot/gpt-5.1 github-copilot/gpt-5.1-codex github-copilot/gpt-5.1-codex-max github-copilot/gpt-5.1-codex-mini github-copilot/gpt-5.2 github-copilot/gpt-5.2-codex github-copilot/grok-code-fast-1I do have
github-copilotintegration setup too, and it's falling back to those when trying to use--model=zai-coding-plan/glm-4.7I checked the keys at
~/.local/share/opencode/auth.jsonand they are the expected ones.I also tried a cache refresh, but I still get the same models list:
> opencode models --refresh Models cache refreshed github-copilot/claude-haiku-4.5 github-copilot/claude-opus-4.5 github-copilot/claude-opus-41 github-copilot/claude-sonnet-4 github-copilot/claude-sonnet-4.5 github-copilot/gemini-2.5-pro github-copilot/gemini-3-flash-preview github-copilot/gemini-3-pro-preview github-copilot/gpt-4.1 github-copilot/gpt-4o github-copilot/gpt-5 github-copilot/gpt-5-mini github-copilot/gpt-5.1 github-copilot/gpt-5.1-codex github-copilot/gpt-5.1-codex-max github-copilot/gpt-5.1-codex-mini github-copilot/gpt-5.2 github-copilot/gpt-5.2-codex github-copilot/grok-code-fast-1polyrand commentedon Jan 25, 2026
I tried deleting
~/.cache/opencode/models.json, and also deleting~/.cache/opencodecompletely. But the issue persists. I have also upgraded tov1.1.35.polyrand commentedon Jan 29, 2026
Ok, I managed to resolve the issue.
It was 100% an error on my side. I had made a typo on
enabled_providersin the config. I'll close the issue now, I apologize for taking people's time with this.