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.

521 B
Raw Blame
import type { GenerationRequest } from "@hypit/generation";
import type { PixverseModel } from "./index.js";

/**
 * Reference videos carry the length of the run, so that mode states no duration.
 * Every other mode states its own.
 */
export function pixverseRequestValidator(model: PixverseModel): (request: GenerationRequest) => void {
  return (request) => {
    if (request.ports.referenceVideo !== undefined || request.ports.duration !== undefined) return;
    throw new Error(`${model} requires duration`);
  };
}