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 — [FEATURE]: Support wildcard overlays in V2 provider model configuration · Issue #63711 · anomalyco/opencode

[FEATURE]: Support wildcard overlays in V2 provider model configuration #63711

New issue
Copy link
New issue
Copy link
Open
Open
[FEATURE]: Support wildcard overlays in V2 provider model configuration#63711
Copy link
Labels
area/coreAgent loop, tools and configtype/featureNew behaviour or an improvementversion/v2OpenCode 2.x

Description

@smnmsr
smnmsr
opened on Nov 13, 2026
Issue body actions

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Related requests exist: #42535 (closed, V1 whitelist/blacklist wildcards) and #49986 (open, native V2 model filtering). This request proposes wildcard overlays in the existing V2 model map; please consolidate with #49986 if preferred.

Describe the enhancement you want to request

Allow * and ? patterns in providers.<id>.models. I maintain a curated set of presets and currently need an explicit disabled entry for every catalog model. That config is long and becomes stale as providers add models.

The proposed configuration would be:

{
  "providers": {
    "opencode": {
      "models": {
        "*": { "disabled": true },
        "curated-medium": {
          "modelID": "gpt-6.1-sol",
          "disabled": false,
          "settings": { "reasoningEffort": "low" }
        }
      }
    }
  }
}

Suggested semantics:

  • * matches any sequence; ? matches one character.
  • Matching patterns apply in declaration order, followed by literal entries regardless of key position.
  • Later config documents take precedence.
  • Patterns match catalog/discovered models and explicitly declared literal IDs; unmatched patterns create no models.
  • Apply the same behavior to integration config. Provider IDs and arbitrary settings keys remain literal.

This keeps model selection declarative and automatically covers new catalog entries without adding another filtering field.

Reacted by CasualDeveloper

Activity

  1. opencodejr commented on Nov 13, 2026

    @opencodejr
    opencodejrBot
    on Nov 13, 2026
    Contributor
    More actions

    Thanks for the detailed proposal and the draft in #63710! You're asking for * and ? patterns as keys in providers.<id>.models. With them you could disable a whole catalog (for example "*": { "disabled": true }) and re-enable a curated set, and new catalog models would be covered automatically instead of needing a disabled entry each. Maintainers will consider it, including your question about whether this belongs in the model map or in the filtering work in #49986.

    Today the V2 providers docs describe disabled on individual model entries ("Removes the model from selection when true"), with no pattern support.

    Related issues and PRs:

    • [FEATURE]: Add a native V2 replacement for provider model filtering #49986: the open request for a native V2 replacement for model filtering (V1 whitelist/blacklist). It covers the same underlying need, so maintainers may decide to consolidate there.
    • fix(core): migrate provider whitelist and blacklist to model overrides #54372: an earlier, now closed PR that proposed a provider-wide providers.<id>.models["*"] override.
    • plugin: ctx.model.transform editor.remove() is a silent no-op for the model catalog and model resolution (2.2.5) #63100: a limitation of the plugin workaround posted on [FEATURE]: Add a native V2 replacement for provider model filtering #49986. editor.remove() works for catalog providers like opencode, but models listed in config come back. For those, editor.update(..., (m) => { m.enabled = false }) works instead.
    • [FEATURE]: Model-level policies for per-model governance (model.use, or provider.use with provider/model resources) #61601: model-level policies (model.use), for when this needs to be enforced rather than just configured.
    • [FEATURE]: Allow wildcards in provider model whitelist/blacklist #42535: the closed V1 request for wildcards in whitelist/blacklist.
  2. opencodejr
    added
    area/coreAgent loop, tools and config
    type/featureNew behaviour or an improvement
    version/v2OpenCode 2.x
    on Nov 13, 2026
  3. CasualDeveloper commented on Nov 19, 2026

    @CasualDeveloper
    CasualDeveloper
    on Nov 19, 2026
    Contributor
    More actions

    I have a second use case for these patterns. I set limit.context to 1,000,000 and limit.input to 872,000 for long-context OpenAI models. When GPT-6.1 Terra, GPT-6.2 Astra, and GPT-6.2 Sol appeared in my OpenCode catalog, their standard and fast IDs all reported 628,000 context and 500,000 input. Applying the same two limits took six config entries.

    With this proposal I could use a family pattern such as "gpt-6.*-sol*": { "limit": { "context": 1000000, "input": 872000 } } under providers.openai.models. A newly discovered matching ID would pick up those limits, a literal entry could specify a smaller window, and the catalog would still supply each model's output limit. That's the behavior I'd use. I tested this case against #63710.

    Reacted by Simon
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/coreAgent loop, tools and configtype/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 01402775 — 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.