@sogni-ai/sogni-client 5.65.1 → 5.67.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -529,6 +529,24 @@ export function isMinimaxH3KeyframeModel(modelId: string): boolean {
529
529
  );
530
530
  }
531
531
 
532
+ /**
533
+ * MiniMax H3 models that extend a video: Standard, Balanced and FastH3
534
+ * text-to-video and FastH3 two-stage, carrying `referenceVideo`. The clip
535
+ * continues the source from its last 22 frames and their audio. LightX2V Turbo
536
+ * (`minimax-h3-fl2va-fp8_t2v_turbo`) does not: it lost the source a few frames
537
+ * after the join in testing.
538
+ */
539
+ const MINIMAX_H3_EXTEND_MODEL_IDS = new Set([
540
+ 'minimax-h3-fl2va-fp8_t2v',
541
+ 'minimax-h3-fl2va-fp8_t2v_balanced',
542
+ 'minimax-h3-fastvideo-int8_t2v_turbo',
543
+ 'minimax-h3-fastvideo-int8_t2v_turbo_2stage'
544
+ ]);
545
+
546
+ export function isMinimaxH3ExtendModel(modelId: string): boolean {
547
+ return MINIMAX_H3_EXTEND_MODEL_IDS.has(modelId);
548
+ }
549
+
532
550
  /**
533
551
  * Check if a model ID is an external API-backed video model.
534
552
  *
@@ -968,6 +986,18 @@ export const MINIMAX_H3_I2V_ASSETS: Record<VideoAssetKey, AssetRequirement> = {
968
986
  referenceMask: 'forbidden'
969
987
  };
970
988
 
989
+ /**
990
+ * MiniMax H3 text-to-video on the models that extend (`isMinimaxH3ExtendModel`):
991
+ * with `referenceVideo` the worker continues the source from its last 22 frames
992
+ * (0.92 s at 24 fps) and their audio, and the delivered clip starts on the frame
993
+ * after the source's last frame (`frames - 22` long). Without a source it is
994
+ * ordinary text-to-video. Every other entry matches the generic `t2v` table.
995
+ */
996
+ export const MINIMAX_H3_T2V_ASSETS: Record<VideoAssetKey, AssetRequirement> = {
997
+ ...VIDEO_WORKFLOW_ASSETS.t2v,
998
+ referenceVideo: 'optional'
999
+ };
1000
+
971
1001
  /**
972
1002
  * One reference image, resolved to the upload slot that carries it.
973
1003
  */
@@ -1111,6 +1141,9 @@ export function getVideoAssetRequirements(
1111
1141
  if (workflowType === 'i2v' && isMinimaxH3Model(modelId)) {
1112
1142
  return MINIMAX_H3_I2V_ASSETS;
1113
1143
  }
1144
+ if (workflowType === 't2v' && isMinimaxH3ExtendModel(modelId)) {
1145
+ return MINIMAX_H3_T2V_ASSETS;
1146
+ }
1114
1147
  return VIDEO_WORKFLOW_ASSETS[workflowType];
1115
1148
  }
1116
1149
 
package/src/version.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  // AUTO-GENERATED by scripts/generate-version.mjs — do not edit.
2
2
  // Source of truth: package.json version.
3
- export const LIB_VERSION = '5.65.1';
3
+ export const LIB_VERSION = '5.67.0';