Skip to content

Improvement: adding a provider/model is fully manual — offer known-provider presets and a model picker from the catalog the org already syncs #2655

Closed

Description

@yannickmonney

Problem

Bringing your own key is more work than it needs to be. The Add provider panel is a blank OpenAI-compatible form — provider name, display name, base URL, key, then models added one by one — even though:

  • The panel's own copy names OpenAI/Anthropic/OpenRouter and the org ships a daily-synced model catalog (convex/model_catalog/), so the common providers and their endpoints are known and could be presets ("Add OpenAI" prefilling name + https://api.openai.com/v1 + apiFormat, leaving only the key).
  • Add model asks for a raw Model ID with no autocomplete (e.g., gpt-4o), while the catalog holds the exact model IDs and capabilities — the detail drawer already has "Fill from catalog" / "Sync all from catalog" for capabilities (provider-detail-drawer/models-section.tsx:250-266), but only after you've typed the ID by hand in the add flow.

So the data to preconfigure both the provider endpoint and the model list already exists in the org; the add flow just doesn't use it. This is the "auto-determine / preconfigure to make life easier" pattern.

Current behaviour

Settings → AI providers → Add provider (2026-07-11, main @ 94ef84e): free-form name/display/baseURL/key; Add model → free-form Model ID + display + capability checkboxes, no picker. No "pick a known provider" entry point anywhere.

Code pointers

  • app/features/settings/providers/components/provider-add-panel.tsx — the blank add form (base URL free-form)
  • app/features/settings/providers/components/provider-detail-drawer/models-section.tsx:250-266 — existing catalog wiring (getModelCapabilities) that add-flow could reuse for a model picker
  • convex/model_catalog/queries.ts — synced catalog (add a "list catalog model IDs for org" query if not present)
  • builtin-configs/providers/* — known-provider endpoints/apiFormat for presets

Proposed change

Add a known-provider preset entry ("OpenAI / Anthropic / OpenRouter / Custom") that prefills name, base URL, and apiFormat (key-only remaining); make Add model a searchable picker over catalog model IDs (with a "Custom ID" escape hatch) that also fills capabilities. Keep the fully-manual path for self-hosted endpoints.

Acceptance criteria

  • A common provider can be added by picking it + entering only the API key
  • Add model offers catalog-backed autocomplete; selecting a model fills its capabilities
  • The manual/self-hosted path still works unchanged

Related: #2653 (base-URL inference), #2357 (catalog capabilities in model popover), #2368 (provider editor consolidation).

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementpriority: mediumservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions