GLM-4.5 Full (non-Air) not in model dropdown for OpenRouter? #970

Closed
opened 2026-02-16 17:28:57 -05:00 by yindo · 5 comments
Owner

Originally created by @kyleboddy on GitHub (Jul 29, 2025).

Originally assigned to: @thdxr on GitHub.

Went to give opencode a try using my OpenRouter API key, intending to use GLM-4.5 full (non-air) but I don't see it in the model dropdown either by search or scrolling:

Image Image

Only GLM-4.5 Air shows up despite OpenRouter having both versions available:

Image

I'm on the latest version, v0.3.81. I searched the open/closed Issue list for anyone with similar issues and came up with nothing. Appreciate it.

Originally created by @kyleboddy on GitHub (Jul 29, 2025). Originally assigned to: @thdxr on GitHub. Went to give `opencode` a try using my OpenRouter API key, intending to use GLM-4.5 full (non-air) but I don't see it in the model dropdown either by search or scrolling: <img width="705" height="453" alt="Image" src="https://github.com/user-attachments/assets/19375573-4746-4f0a-98ab-332859de7983" /> <img width="705" height="410" alt="Image" src="https://github.com/user-attachments/assets/18840f54-6ae8-4650-9d76-cb4616e2237c" /> Only GLM-4.5 Air shows up despite OpenRouter having both versions available: <img width="1027" height="1009" alt="Image" src="https://github.com/user-attachments/assets/3f173e4b-8e9e-4f53-918e-b0878852e7aa" /> I'm on the latest version, v0.3.81. I searched the open/closed Issue list for anyone with similar issues and came up with nothing. Appreciate it.
yindo closed this issue 2026-02-16 17:28:57 -05:00
Author
Owner

@kyleboddy commented on GitHub (Jul 29, 2025):

Tried making a custom JSON file for this but didn't work either.

Image
{
  "$schema": "https://opencode.ai/config.json",
  "layout": "stretch",
  "provider": {
    "openrouter": {
      "npm": "@ai-sdk/openai-compatible",
      "options": {
        "baseURL": "https://openrouter.ai/api/v1"
      },
      "models": {
        "z-ai/glm-4.5": {}
      }
    }
  }
}

@kyleboddy commented on GitHub (Jul 29, 2025): Tried making a custom JSON file for this but didn't work either. <img width="755" height="507" alt="Image" src="https://github.com/user-attachments/assets/00c0ba52-af40-47e9-940a-76ceb38cac3c" /> ``` { "$schema": "https://opencode.ai/config.json", "layout": "stretch", "provider": { "openrouter": { "npm": "@ai-sdk/openai-compatible", "options": { "baseURL": "https://openrouter.ai/api/v1" }, "models": { "z-ai/glm-4.5": {} } } } } ```
Author
Owner

@thdxr commented on GitHub (Jul 29, 2025):

is it labeled wrong in models.dev repo?

@thdxr commented on GitHub (Jul 29, 2025): is it labeled wrong in models.dev repo?
Author
Owner

@kyleboddy commented on GitHub (Jul 29, 2025):

Actually it appears it is labeled wrong!

https://models.dev/?search=GLM-4.5

Image
@kyleboddy commented on GitHub (Jul 29, 2025): Actually it appears it is labeled wrong! https://models.dev/?search=GLM-4.5 <img width="515" height="255" alt="Image" src="https://github.com/user-attachments/assets/085a6504-16ae-40cf-90ad-c7ec3dd31837" />
Author
Owner

@kyleboddy commented on GitHub (Jul 30, 2025):

Image

Confirmed in latest opencode that the models are separated out.

@kyleboddy commented on GitHub (Jul 30, 2025): <img width="777" height="783" alt="Image" src="https://github.com/user-attachments/assets/f0e974c6-258b-4873-a685-bf6592c1a883" /> Confirmed in latest `opencode` that the models are separated out.
Author
Owner

@fwang commented on GitHub (Jul 30, 2025):

@thdxr should fix the sorting

@fwang commented on GitHub (Jul 30, 2025): @thdxr should fix the sorting
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#970