Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion packages/sdk/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ <h3>Configuration</h3>
<option value="mirage_v2" selected>Mirage v2</option>
<option value="lucy_v2v_720p_rt">Lucy v2v 720p RT</option>
<option value="lucy_2_rt">Lucy 2 RT</option>
<option value="lucy_2_rt_preview">Lucy 2 RT Preview</option>
</select>
</div>
<div class="inline-controls">
Expand Down Expand Up @@ -500,7 +501,7 @@ <h3>Console Logs</h3>

// Load initial reference image for models that support it
let initialImage;
if (model.name === 'lucy_2_rt' || model.name === 'mirage_v2') {
if (model.name === 'lucy_2_rt' || model.name === 'lucy_2_rt_preview' || model.name === 'mirage_v2') {
const initialImageResponse = await fetch('./tests/fixtures/image.png');
initialImage = await initialImageResponse.blob();
}
Expand Down
9 changes: 9 additions & 0 deletions packages/sdk/src/shared/model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export const realtimeModels = z.union([
z.literal("mirage_v2"),
z.literal("lucy_v2v_720p_rt"),
z.literal("lucy_2_rt"),
z.literal("lucy_2_rt_preview"),
z.literal("live_avatar"),
]);
export const videoModels = z.union([
Expand Down Expand Up @@ -264,6 +265,14 @@ const _models = {
height: 720,
inputSchema: z.object({}),
},
lucy_2_rt_preview: {
urlPath: "/v1/stream",
name: "lucy_2_rt_preview" as const,
fps: 20,
width: 1280,
height: 720,
inputSchema: z.object({}),
},
live_avatar: {
urlPath: "/v1/stream",
name: "live_avatar" as const,
Expand Down
Loading