@@ -19,8 +19,9 @@ import type {
1919const DEFAULT_MINIMAX_VIDEO_BASE_URL = "https://api.minimax.io" ;
2020const DEFAULT_MINIMAX_VIDEO_MODEL = "MiniMax-Hailuo-2.3" ;
2121const DEFAULT_TIMEOUT_MS = 120_000 ;
22+ const DEFAULT_OPERATION_TIMEOUT_MS = 1_200_000 ;
2223const POLL_INTERVAL_MS = 10_000 ;
23- const MAX_POLL_ATTEMPTS = 90 ;
24+ const MAX_POLL_ATTEMPTS = 120 ;
2425const MINIMAX_MODEL_ALLOWED_DURATIONS : Readonly < Record < string , readonly number [ ] > > = {
2526 "MiniMax-Hailuo-2.3" : [ 6 , 10 ] ,
2627 "MiniMax-Hailuo-02" : [ 6 , 10 ] ,
@@ -323,7 +324,7 @@ function buildMinimaxVideoProvider(providerId: string): VideoGenerationProvider
323324
324325 const fetchFn = fetch ;
325326 const deadline = createProviderOperationDeadline ( {
326- timeoutMs : req . timeoutMs ,
327+ timeoutMs : req . timeoutMs ?? DEFAULT_OPERATION_TIMEOUT_MS ,
327328 label : "MiniMax video generation" ,
328329 } ) ;
329330 const { baseUrl, allowPrivateNetwork, headers, dispatcherPolicy } =
@@ -387,7 +388,7 @@ function buildMinimaxVideoProvider(providerId: string): VideoGenerationProvider
387388 headers,
388389 timeoutMs : resolveProviderOperationTimeoutMs ( {
389390 deadline,
390- defaultTimeoutMs : DEFAULT_TIMEOUT_MS ,
391+ defaultTimeoutMs : DEFAULT_OPERATION_TIMEOUT_MS ,
391392 } ) ,
392393 baseUrl,
393394 fetchFn,
0 commit comments