Skip to content

Studio: rename the hub's Image generation capability to Image/video gen - #11681

Merged
shimmyshimmer merged 1 commit into
mainfrom
studio/hub-image-video-gen-label
Sep 23, 2026
Merged

shimmyshimmer merged 1 commit into
mainfrom
studio/hub-image-video-gen-label

Conversation

@shimmyshimmer

@shimmyshimmer shimmyshimmer commented Sep 23, 2026 •

Copy link
Copy Markdown
Member

Summary

Renames the hub's diffusion capability label from "Image generation" to "Image/video gen".

The capability already matches video generators such as LTX, Wan and Hunyuan Video, so "Image generation" undersold what the filter returns.

Changes

  • features/hub/lib/view-models.ts: capability filter dropdown option.
  • features/hub/lib/model-type-filter.ts: model type filter option.
  • features/hub/lib/model-capabilities.ts: capability chip on the model detail panel, so the chip and the filter keep the same wording.
  • tests/studio/test_model_picker_contracts.py: the label contract now checks for "Image/video gen".

Only the label changes. The diffusion filter value and the detection logic are untouched, and error strings outside the hub, such as "Image generation failed.", are unchanged.

Testing

  • pytest tests/studio/test_model_picker_contracts.py -k diffusion: passes.
  • npm run build in studio/frontend: passes.
  • Rebuilt the frontend and confirmed a local Studio serves the new label in the hub bundle.

The diffusion capability also matches video generators (LTX, Wan,
Hunyuan Video), so the filter options and the capability chip now read
Image/video gen.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-09-23T13:53:09.337576Z 1073f8c Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@shimmyshimmer
shimmyshimmer merged commit 378b61e into main Sep 23, 2026
3 of 40 checks passed
@shimmyshimmer
shimmyshimmer deleted the studio/hub-image-video-gen-label branch September 23, 2026 13:51
@shimmyshimmer

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: 378b61e916

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

shaojun pushed a commit to shaojun/unsloth that referenced this pull request Sep 29, 2026
…en (unslothai#11681)

The diffusion capability also matches video generators (LTX, Wan,
Hunyuan Video), so the filter options and the capability chip now read
Image/video gen.
danielhanchen added a commit that referenced this pull request Oct 18, 2026
…pability picks (#14138)

## Summary

`Repo tests (CPU, studio)` fails on every PR whose base includes #14083,
with the same single test:

```
tests/studio/test_model_picker_contracts.py::test_diffusion_capability_labeled_image_video_gen
    assert '{ value: "diffusion", label: "Image/video gen" }' in _read("features/hub/lib/model-type-filter.ts")
```

Seen on #14097, #14106, #14112, #14115, #14122 and #14125 (bases
`72d0d2db`, `b4a4855e`, `4c5fb400`), and it reproduces on main at
`1e2cedde`.

## Cause

#14083 (Studio Hub: On Device filters and sort) moved the On Device list
onto Discover's capability picks, on purpose. `model-type-filter.ts` no
longer keeps its own `MODEL_TYPE_FILTER_OPTIONS` (which held `{ value:
"diffusion", label: "Image/video gen" }`). Its
`matchesInventoryCapabilities` now takes `HubCapabilityFilter` picks and
matches them with Discover's own `matchesHubCapability`, so the On
Device panel shows Discover's "Image gen" and "Video gen" tiles. The PR
describes this as change 2.

The product is right and the test is stale. What the test protects
(#11681) is that the diffusion capability is never presented as "Image
to text". That still holds: the only names now shown for it are
Discover's "Image gen" / "Video gen" options and the capability badge's
"Image gen" / "Video gen".

## Change

Test only, `test_diffusion_capability_labeled_image_video_gen`:

- **Kept as before:**
  - "Image to text" must not appear in the three hub files.
- Discover's options must be `{ value: "image-gen", label: "Image gen"
}` and `{ value: "video-gen", label: "Video gen" }`.
- **New:** the capability badge in `model-capabilities.ts` must name the
same two kinds.
- **Replaced** the literal from the deleted On Device list. Now, if
`model-type-filter.ts` has a `diffusion` option, it must still be
labeled "Image/video gen". Otherwise the file must match through
`matchesHubCapability`, so On Device cannot quietly grow a second,
unchecked set of names.

## Testing

- **This change:** `tests/studio/test_model_picker_contracts.py` gives
201 passed.
- **Before (main `1e2cedde`):** the same file gives 1 failed, 200
passed, the failure CI shows.
- **Each of these makes the test fail:**
  - Relabeling Discover's `image-gen` option "Image to text".
- Renaming `matchesHubCapability` out of `model-type-filter.ts`, so On
Device no longer shares Discover's matcher.
- Adding back an On Device `{ value: "diffusion", label: "Image to text"
}` option.
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