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: extend HypiHub request timeout to 300 seconds

rponeee76adc9f868
diff --git a/packages/provider-hypihub/src/gemini.ts b/packages/provider-hypihub/src/gemini.ts
index 4c415a7f..1c137b11 100644
--- a/packages/provider-hypihub/src/gemini.ts
+++ b/packages/provider-hypihub/src/gemini.ts
@@ -71,7 +71,7 @@ export function createHypiHubGeminiGenerator(options: HypiHubGeminiGeneratorOpti
.replace(/\/(?:v1beta|v1)\/?$/iu, "")
.replace(/\/$/u, "");
const model = options.model?.trim() || "gemini-3.1-pro";
- const timeout = options.requestTimeoutMs ?? 120_000;
+ const timeout = options.requestTimeoutMs ?? 300_000;
const maxRateLimitRetries = options.maxRateLimitRetries ?? 3;
assert(Number.isSafeInteger(maxRateLimitRetries) && maxRateLimitRetries >= 0,
"HypiHub Gemini maxRateLimitRetries must be a non-negative integer");
diff --git a/packages/provider-hypihub/src/provider.ts b/packages/provider-hypihub/src/provider.ts
index 34e9fe18..b2fe6820 100644
--- a/packages/provider-hypihub/src/provider.ts
+++ b/packages/provider-hypihub/src/provider.ts
@@ -233,7 +233,7 @@ function endpoint(client: HypiHubClient, pollIntervalMs: number, maxOperationMs:
}
export function createHypiHubProvider(options: CreateHypiHubProviderOptions = {}) {
- const client = new HypiHubClient({ baseUrl: apiBaseUrl(options.baseUrl ?? "https://hypit.ai/v1"), timeout: options.requestTimeoutMs ?? 30_000, fetcher: options.fetch ?? globalThis.fetch });
+ const client = new HypiHubClient({ baseUrl: apiBaseUrl(options.baseUrl ?? "https://hypit.ai/v1"), timeout: options.requestTimeoutMs ?? 300_000, fetcher: options.fetch ?? globalThis.fetch });
const asyncEndpoint = endpoint(client, options.pollIntervalMs ?? 10_000, 20 * 60_000, options.publicAssetUrl);
const audioEndpoint: ImmediateEndpointHandler = async (context) => {
try {