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
{{ message }}
Repository navigation
[FEATURE]: Load GMI Cloud models from its /v1/models endpoint #60671
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
The GMI Cloud model list in OpenCode is out of date. The catalog (gmicloud on models.dev / models.opencode.ai) has 17 models. GMI's own GET https://api.gmi-serving.com/v1/models (needs the API key) returns 84 unique model IDs right now.
71 models GMI serves are missing from OpenCode, for example zai-org/GLM-5.3, Qwen/Qwen3.8-Max, openai/gpt-5.5, deepseek-ai/DeepSeek-V4.1-Flash-1017, MiniMaxAI/MiniMax-M3.1-Flash.
4 catalog models are no longer served: anthropic/claude-opus-4.6, anthropic/claude-opus-4.7, anthropic/claude-opus-4.8, anthropic/claude-sonnet-4.6.
Fixing this by hand in models.dev keeps falling behind (see #44770).
Proposal: after a GMI Cloud key is connected, fetch /v1/models and use it as the model list, the same way the Modal provider plugin already does (packages/core/src/plugin/provider/modal.ts). Catalog entries stay as templates where they exist, and the endpoint's own context_length and pricing fill in new models. If the fetch fails, keep the catalog list.
Thanks for the detailed request and the numbers! In short, you're asking for OpenCode to fetch GMI Cloud's model list from GET /v1/models once a key is connected, the same way the Modal provider plugin does. Catalog entries would stay as templates, new models would get their context_length and pricing from the endpoint, and OpenCode would keep the catalog list if the fetch fails. Maintainers will consider it.
Thanks! We're not adding more built-in integrations or listings for this. Providers can be added through models.dev or a custom provider in config, and integrations can ship as a plugin.
Activity
opencodejr commentedon Oct 30, 2026
Thanks for the detailed request and the numbers! In short, you're asking for OpenCode to fetch GMI Cloud's model list from
GET /v1/modelsonce a key is connected, the same way the Modal provider plugin does. Catalog entries would stay as templates, new models would get theircontext_lengthand pricing from the endpoint, and OpenCode would keep the catalog list if the fetch fails. Maintainers will consider it.Related issues and PRs:
/modelsendpoint. This request is a GMI-specific case of it./modelsdiscovery for OpenAI-compatible providers set up in configIf you do open a PR, please link this issue and #40524 so maintainers can review them together.
neriousy commentedon Nov 12, 2026
Thanks! We're not adding more built-in integrations or listings for this. Providers can be added through models.dev or a custom provider in config, and integrations can ship as a plugin.