Repository navigation
Catalog: serve model picker groups - #1538
Merged
Merged
Conversation
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]>
Contributor
|
Maple development preview: https://f029ab62.maple-ca8.pages.dev Commit: Uses development API, billing, flags and PCR configuration. Cloudflare Access applies. |
Co-Authored-By: Claude Fable 5.2 <[email protected]>
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
/v1/models/catalognow 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.group, a stable id (capable,uncensored,fast).groupsarray lists the sections in display order, each with itsidand an Englishlabel. Only sections with a model in the caller's plan are listed.badgesfield changes fromBetatoPopular.{ "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
labelfor 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;groupandgroupsin TypeScript).One visible effect outside Maple Work: Research already renders every served badge, so DeepSeek Uncensored will show
Popularin place ofBetathere once this deploys.Not in this PR
Testing
services/opensecret:cargo fmt --check, clippy with-D warnings,cargo test --locked --all-features(1134 passed).sdk_ts,sdk_rust,research_frontendandopensecretpassed.🤖 Generated with Claude Code
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.