vargai 0.4.0-alpha98 → 0.4.0-alpha99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -104,7 +104,7 @@
104
104
  "license": "Apache-2.0",
105
105
  "author": "varg.ai <hello@varg.ai> (https://varg.ai)",
106
106
  "sideEffects": false,
107
- "version": "0.4.0-alpha98",
107
+ "version": "0.4.0-alpha99",
108
108
  "exports": {
109
109
  ".": "./src/index.ts",
110
110
  "./ai": "./src/ai-sdk/index.ts",
@@ -68,10 +68,15 @@ export async function renderTalkingHead(
68
68
  const characterImageData = await characterFile.arrayBuffer();
69
69
  const speechAudioData = await speechFile.arrayBuffer();
70
70
 
71
- // Determine the model ID to check if it requires video input
72
- const modelId =
71
+ // Determine the model ID to check if it requires video input.
72
+ // Strip provider prefix (e.g. "fal:sync-v2-pro" → "sync-v2-pro") since
73
+ // the render service wraps providers via prefixedGateway.
74
+ const rawModelId =
73
75
  typeof lipsyncModel === "string" ? lipsyncModel : lipsyncModel.modelId;
74
- const requiresVideo = VIDEO_ONLY_LIPSYNC_MODELS.has(modelId);
76
+ const bareModelId = rawModelId.includes(":")
77
+ ? rawModelId.split(":").pop()!
78
+ : rawModelId;
79
+ const requiresVideo = VIDEO_ONLY_LIPSYNC_MODELS.has(bareModelId);
75
80
 
76
81
  if (requiresVideo) {
77
82
  // Models like sync-v2-pro require a video, not a static image.