@koda-sl/baker-cli 0.301.0-dev.50ab1c583 → 0.302.0-dev.3ebf34fad

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.
@@ -2155,6 +2155,16 @@ function nearestClipDuration(model, preferred) {
2155
2155
  if (!allowed?.length || allowed.includes(preferred)) return preferred;
2156
2156
  return [...allowed].sort((a, b) => Math.abs(a - preferred) - Math.abs(b - preferred) || a - b)[0];
2157
2157
  }
2158
+ var SILENT_VIDEO_MODELS = /* @__PURE__ */ new Set([
2159
+ "runway/gen-4.5",
2160
+ "x-ai/grok-imagine-video",
2161
+ "x-ai/grok-imagine-video-1.5",
2162
+ "alibaba/happyhorse-1.1"
2163
+ ]);
2164
+ function clipAudioMode(model) {
2165
+ if (supportsParam("video_generate", model, "generate_audio")) return "toggle";
2166
+ return SILENT_VIDEO_MODELS.has(model) ? "never" : "always";
2167
+ }
2158
2168
  function maxClipSeconds(model) {
2159
2169
  const schema = MODEL_REGISTRY.video_generate[model]?.params.duration;
2160
2170
  const allowed = schema?.kind === "number" ? schema.enum : void 0;
@@ -9482,6 +9492,7 @@ export {
9482
9492
  SPOKEN_WORDS_PER_SECOND,
9483
9493
  spokenWordsIn,
9484
9494
  nearestClipDuration,
9495
+ clipAudioMode,
9485
9496
  splitScriptFor,
9486
9497
  promptMaxLength,
9487
9498
  maxInputSlot,
@@ -9527,4 +9538,4 @@ export {
9527
9538
  defaultRegistry,
9528
9539
  createEngineFromEnv
9529
9540
  };
9530
- //# sourceMappingURL=chunk-SSXER76B.js.map
9541
+ //# sourceMappingURL=chunk-KKJT24WA.js.map