Skip to content

[FEATURE]: Load GMI Cloud models from its /v1/models endpoint #60671

Closed as not planned

Description

@definitelynotguru

Feature hasn't been suggested before.

  • 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.

I'm happy to send a PR for this.

Activity

  1. opencodejr commented on Oct 30, 2026

    @opencodejr
    Contributor

    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.

    Related issues and PRs:

    If you do open a PR, please link this issue and #40524 so maintainers can review them together.

  2. neriousy commented on Nov 12, 2026

    @neriousy
    Member

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions