Skip to content

Commit 669c612

Browse files
authored
feat: list all realtime models in demo dropdown (#125)
## Summary - The Realtime model selector in `packages/sdk/index.html` only listed 4 models. Adds all canonical realtime models from `src/shared/model.ts` plus the `*-latest` aliases. - Options grouped via `<optgroup>` into **Latest (server-resolved)**, **Canonical**, and **Deprecated aliases** — old names kept since they still resolve through the SDK's alias map. - Default selection updated from the deprecated `mirage_v2` to canonical `lucy-2.1`. ## Linear Platform: https://linear.app/decart/issue/PLA-227/demo-list-all-realtime-models-in-sdk-demo-dropdown ## Test plan - [ ] Open `packages/sdk/index.html` in Chrome and confirm the dropdown shows all three groups - [ ] Pick a canonical model (e.g. `lucy-2.1-vton`) and verify camera + connect flow still works - [ ] Pick a deprecated alias (e.g. `mirage`) and verify it still connects (deprecation warning expected in console) <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Demo-only UI/configuration changes; no SDK runtime logic or security-sensitive behavior is modified. > > **Overview** > Updates the SDK demo (`packages/sdk/index.html`) realtime model selector to list **all supported realtime models**, grouped into *Latest (server-resolved)*, *Canonical*, and *Deprecated aliases*. > > Changes the demo’s default model from deprecated `mirage_v2` to canonical `lucy-2.1`, while keeping legacy aliases available for compatibility testing. > > <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit 5550974. Bugbot is set up for automated code reviews on this repo. Configure [here](https://www.cursor.com/dashboard/bugbot).</sup> <!-- /CURSOR_SUMMARY -->
1 parent f946a90 commit 669c612

1 file changed

Lines changed: 19 additions & 5 deletions

File tree

packages/sdk/index.html

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,24 @@ <h3>Configuration</h3>
235235
<div class="control-group">
236236
<label for="model-select">Model:</label>
237237
<select id="model-select">
238-
<option value="mirage">Mirage</option>
239-
<option value="mirage_v2" selected>Mirage v2</option>
240-
<option value="lucy_v2v_720p_rt">Lucy v2v 720p RT</option>
241-
<option value="lucy-2.1">Lucy 2.1 RT</option>
238+
<optgroup label="Latest (server-resolved)">
239+
<option value="lucy-latest">Lucy (latest)</option>
240+
<option value="lucy-vton-latest">Lucy VTON (latest)</option>
241+
<option value="lucy-restyle-latest">Lucy Restyle (latest)</option>
242+
</optgroup>
243+
<optgroup label="Canonical">
244+
<option value="lucy">Lucy</option>
245+
<option value="lucy-2.1" selected>Lucy 2.1</option>
246+
<option value="lucy-2.1-vton">Lucy 2.1 VTON</option>
247+
<option value="lucy-restyle">Lucy Restyle</option>
248+
<option value="lucy-restyle-2">Lucy Restyle 2</option>
249+
<option value="live-avatar">Live Avatar</option>
250+
</optgroup>
251+
<optgroup label="Deprecated aliases">
252+
<option value="mirage">Mirage</option>
253+
<option value="mirage_v2">Mirage v2</option>
254+
<option value="lucy_v2v_720p_rt">Lucy v2v 720p RT</option>
255+
</optgroup>
242256
</select>
243257
</div>
244258
<div class="control-group">
@@ -371,7 +385,7 @@ <h3>Console Logs</h3>
371385
let isConnected = false;
372386
let processedVideoUrl = null;
373387
let currentSessionId = null;
374-
let model = models.realtime("mirage_v2");
388+
let model = models.realtime("lucy-2.1");
375389

376390
// DOM elements
377391
const elements = {

0 commit comments

Comments
 (0)