Repository navigation
Self-hosted TTS servers can now take longer than 5 minutes per clip. This lifts the limit noted in v0.42.0.
Fixed
engines.openai() can wait past 300 s on openai 5+ (#61, fixes #59)
From v5, the openai SDK uses Node's built-in fetch. Its default headersTimeout of 300 s fails slow requests whatever timeoutMs says. The new fetchOptions option is passed straight to the SDK, so you can supply an undici dispatcher with a larger limit:
import { Agent } from 'undici'; // npm i undici
engines.openai({
baseUrl: 'http://localhost:8881/v1',
timeoutMs: 1_800_000,
fetchOptions: { dispatcher: new Agent({ headersTimeout: 0, bodyTimeout: 0 }) },
})Verified with openai 6.49.0 against a server that answers after 320 s. Without fetchOptions the request times out after 301.6 s; with it, the clip arrives after 320 s. Argo gains no new dependency.
Thanks again to @lordrip for the precise reproduction in #59.
Full changelog: v0.42.0...v0.42.1