GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: generic OpenAI-compatible GET /models discovery plugin · Issue #63490 · anomalyco/opencode

feat: generic OpenAI-compatible GET /models discovery plugin #63490

New issue
Copy link
New issue
Copy link
Closed as duplicate
Closed as duplicate
feat: generic OpenAI-compatible GET /models discovery plugin#63490
Copy link
Labels
area/providersProviders and model liststype/featureNew behaviour or an improvementversion/v2OpenCode 2.x

Description

@drpr
drpr
opened on Nov 12, 2026
Issue body actions

Feature request

Add a generic discovery plugin that calls each provider's OpenAI-compatible GET /models endpoint to supplement the static catalog from models.dev with live model IDs.

Why

Some providers (Volcengine Ark, DeepSeek, Groq, etc.) expose models that vary by API key or region. A runtime discovery plugin can list the exact models available to a given user, instead of relying solely on the static catalog.

Proposed approach

A plugin (packages/core/src/plugin/provider/) that:

  1. Iterates over a list of OpenAI-compatible providers (each with a baseURL and env key list).
  2. Calls GET <baseURL>/models with the provider's API key.
  3. Merges the returned model IDs with catalog templates from models.dev, preserving catalog metadata (cost, context limit, capabilities) where available.
  4. Skips models that have no catalog template (rather than adding them with zero context/cost defaults).

Concerns to discuss

  • Scope: This affects ~13 providers, not just Ark. Should it be opt-in per provider?
  • Model filtering: GET /models returns all models, including non-chat models (embedding, TTS, image). Should we filter to chat models only?
  • Catalog overwrite: Should discovery replace the catalog entirely, or only add models that are missing?
  • Caching/frequency: How often should discovery run? Should results be cached?

This was originally part of #63471 and #63482 but was split out per maintainer feedback.

Activity

  1. opencodejr commented on Nov 12, 2026

    @opencodejr
    opencodejrBot
    on Nov 12, 2026
    Contributor
    More actions

    Thanks for splitting this out of #63471 / #63482 and writing up the open questions, @drpr!

    I think this is a duplicate of #40524. That issue tracks reconciling V2 provider catalogs with each provider's /models endpoint and merging the results with catalog metadata (capabilities, limits, variants, display names). It also says its scope is broader than discovery for generic OpenAI-compatible custom providers, so built-in providers like Ark, DeepSeek and Groq fall under it.

    Possible duplicates and related issues, ordered by likelihood:

    • V2: Reconcile provider catalogs with /models endpoints #40524: the same request: discover each provider's models from /models, merge with catalog metadata, respect per-account lists, and define fallback and refresh behaviour.
    • feat(core): discover models for configured OpenAI-compatible providers #57161: an open PR that adds discovery for configured OpenAI-compatible providers (a narrower piece of the same work).
    • [FEATURE]: Keep provider model inventory in sync with upstream /v1/models (V2) #63330: asks to keep provider model lists in sync with upstream /v1/models.
    • [FEATURE]: Query models of custom provider automatically #58122: asks for automatic model queries for custom providers.
    • provider discovery: hard-coded 1s timeout fails remote endpoints #58558: the hard-coded 1-second discovery timeout, which is relevant to your caching and frequency question.

    I'm closing this issue now as a duplicate of #40524. Please add your proposal and your four open questions (opt-in scope, filtering out non-chat models, adding vs replacing, caching) there, so the design discussion stays in one place. If you think this is a different request, reply here and the issue will reopen.

  2. opencodejr
    closed this as a duplicateof V2: Reconcile provider catalogs with /models endpoints #40524 on Nov 12, 2026
  3. opencodejr
    added
    area/providersProviders and model lists
    type/featureNew behaviour or an improvement
    version/v2OpenCode 2.x
    on Nov 12, 2026
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

    area/providersProviders and model liststype/featureNew behaviour or an improvementversion/v2OpenCode 2.x

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.