Skip to content

Catalog: serve model picker groups - #1538

Merged
AnthonyRonning merged 2 commits into
masterfrom
catalog-model-groups
Nov 10, 2026
Merged

AnthonyRonning merged 2 commits into
masterfrom
catalog-model-groups

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

What changes

/v1/models/catalog now says how the model picker is sectioned, so a model joins a section, and a section is added or reordered, without a client release. This answers the open question in #1520 about where the grouping lives.

  • Each listed model carries group, a stable id (capable, uncensored, fast).
  • A top-level groups array lists the sections in display order, each with its id and an English label. Only sections with a model in the caller's plan are listed.
  • DeepSeek Uncensored's badge in the existing badges field changes from Beta to Popular.
{
  "groups": [
    { "id": "capable", "label": "Most capable" },
    { "id": "uncensored", "label": "Uncensored" },
    { "id": "fast", "label": "Fast & cheap" }
  ],
  "data": [{ "id": "glm-5-3", "group": "capable" }]
}

Clients translate a heading by group id and show the served label for an id they have no translation for. A new model in an existing group needs no client change; a new group shows in English until the next release translates it.

The group is set on the model's entry in model_config.rs (.in_group(...)), and a test requires every model Maple Work offers to have one.

Compatibility

Additive only. Released clients ignore the new fields. Both SDKs expose them as optional (CatalogModel::group, CatalogModel::badges, ModelCatalogResponse::groups; group and groups in TypeScript).

One visible effect outside Maple Work: Research already renders every served badge, so DeepSeek Uncensored will show Popular in place of Beta there once this deploys.

Not in this PR

Testing

  • services/opensecret: cargo fmt --check, clippy with -D warnings, cargo test --locked --all-features (1134 passed).
  • Pre-commit gates for sdk_ts, sdk_rust, research_frontend and opensecret passed.
  • Local stack in an MDE workspace: a Maple Work debug build with the follow-up change, signed in as the local Pro fixture, listed its models under the three served sections with the Popular badge.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

Each listed model now names its `group`, and the catalog carries a
top-level `groups` array giving the sections in display order with an
English label. Clients translate a heading by group id and show the
served label for an id they do not know, so a model joins a section, and
a section is added or reordered, without a client release.

DeepSeek Uncensored gains the `Popular` badge in the existing `badges`
field. Both SDKs expose the new fields; older clients ignore them.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Maple development preview: https://f029ab62.maple-ca8.pages.dev

Commit: 68d5b92cea0d7cbc8eeeb6d22638b135947900db

Uses development API, billing, flags and PCR configuration. Cloudflare Access applies.

@AnthonyRonning
AnthonyRonning merged commit ab27a66 into master Nov 10, 2026
31 checks passed
@AnthonyRonning
AnthonyRonning deleted the catalog-model-groups branch November 10, 2026 04:39

This branch was successfully deployed

1 active deployment
pages-pr-1538 — 68d5b92c Deployed Nov 10, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant