Skip to content

Custom provider models are missing from the Web UI model picker #236

Description

@websideofamir

Models from custom providers are returned correctly by /api/runtime-config, but they do not appear in the chat model picker. The picker falls back to the default built-in models.

Reproduction

  1. Configure a custom provider.
  2. Add its models to the Web UI model allowlist.
  3. Confirm the models appear in modelsByHarness and modelCatalog from /api/runtime-config.
  4. Open the chat model picker.

Cause

plugins/web-ui/src/pi-models.ts#getBaseModel only creates dynamic models when the provider is openrouter. Models from other providers throw Unsupported model and are silently dropped by buildOption.

Expected

Models from any supported custom provider should appear in the picker.

The provider protocol could be included in modelCatalog so the frontend can construct the appropriate model instead of special-casing OpenRouter.

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