Skip to content

Feature Request: Persist discovered models to disk and allow default parameter injection #46

Description

@beingshafin

1. Persist discovered models to disk

Currently, discovered models appear to be available only in memory.

Would it be possible to add an option to write the discovered models to a file on disk (for example, a generated JSON file)? This would allow other tool such as the OpenCode GUI desktop app to read and display the discovered models as well, instead of only the CLI/runtime having access to them.

Something like:

  • Discover models
  • Save the discovered model list to a configurable file
  • Keep it updated whenever discovery runs

2. Default parameter/template injection for discovered models

It would also be very useful if users could define a default configuration that is automatically merged into every discovered model.

For example:

{
  "attachment": true,
  "reasoning": true,
  "tool_call": true,
  "temperature": true,
  "modalities": {
    "input": ["text", "image", "pdf"],
    "output": ["text"]
  },
  "variants": {
    "max": {
      "thinking": {
        "type": "enabled",
        "budgetTokens": 100000
      }
    }
  }
}

This would let users configure capabilities for all discovered models in one place instead of manually editing every model after discovery.

Possible use cases include:

  • Marking all discovered models as supporting image inputs.
  • Adding a default "thinking" variant.
  • Enabling reasoning/tool calling flags.
  • Defining common modalities.
  • Setting other default metadata.

Ideally this could be configured through a single template or merge configuration that is applied automatically to every discovered model.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions