Skip to content

armgit / hypit

Public Imported from GitHub
0

Clone any viral video with AI agents. Not just a script, the whole workflow: swap the face, the words, the B-roll, ship 100 variants in one command, and get your 100M views.

fix: reject unsupported multi-reference video requests

rpone08b5c9fa01db
diff --git a/packages/provider-hypihub/src/routes.ts b/packages/provider-hypihub/src/routes.ts
index ace8076f..0f9430d3 100644
--- a/packages/provider-hypihub/src/routes.ts
+++ b/packages/provider-hypihub/src/routes.ts
@@ -67,6 +67,12 @@ function normalizeHypiHubRequest(
if (Array.isArray(videoRefs) && videoRefs.length > 0) {
throw new Error("HypiHub video reference inputs require a public HTTPS URL; the Runtime ArtifactStore cannot expose one");
}
+ if (Array.isArray(imageRefs) && imageRefs.length > 1) {
+ throw new Error("HypiHub unified video API accepts one input_reference image; multiple reference images are not supported");
+ }
+ if (Array.isArray(genericImageRefs) && genericImageRefs.length > 1) {
+ throw new Error("HypiHub unified video API accepts one input_reference image; multiple reference images are not supported");
+ }
if (typeof sourceTaskId === "string" && sourceTaskId.length > 0) {
throw new Error("HypiHub unified video API does not support video continuation sourceTaskId");
}