@shop-os/modelkit 0.18.0 → 0.18.2

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.
package/dist/index.js CHANGED
@@ -4863,6 +4863,7 @@ var TEXT_MODELS = [
4863
4863
  description: "Anthropic Claude Fable 5 (legacy) model for demanding reasoning and long-horizon agentic work; text and image input, 1M-token context."
4864
4864
  },
4865
4865
  capabilities: {
4866
+ reasoning: true,
4866
4867
  vision: true,
4867
4868
  contextWindow: 1e6
4868
4869
  }
@@ -6047,6 +6048,44 @@ var VIDEO_MODELS = [
6047
6048
  lastFrameRequiresFirstFrame: true
6048
6049
  }
6049
6050
  },
6051
+ {
6052
+ // https://aistudio.google.com/docs/omni (2026-11-05): the 1.1 Interactions API with
6053
+ // 3-15 s output; first-to-last-frame and each extension stay at 3-10 s (the adapter
6054
+ // refuses more), extended clips stop at 30 s, and 11-15 s clips take one reference video.
6055
+ id: "gemini-omni-1.2-flash",
6056
+ aliases: ["gemini-omni-1.2-video", "gemini-omni-1.2-reference", "gemini-omni-1.2-edit"],
6057
+ label: "Gemini Omni 1.2 Flash",
6058
+ type: "video",
6059
+ adapter: "google-genai",
6060
+ providerModelId: "gemini-omni-1.2-flash",
6061
+ lifecycle: "active",
6062
+ exposure: ["cowork", "space_builder"],
6063
+ constraints: {
6064
+ aspectRatios: [...OMNI_RATIOS],
6065
+ resolutions: ["360p", "720p", "1080p", "4k"],
6066
+ durations: { min: 3, max: 15 },
6067
+ durationPresets: [3, 5, 8, 10, 15],
6068
+ references: { images: 6, videos: 1, videoSeconds: { max: 10 } },
6069
+ sourceVideoSeconds: { max: 15 },
6070
+ supports: ["videoExtension", "lastFrame"],
6071
+ extension: { segmentSeconds: 10, maxTotalSeconds: 30, returns: "joined" },
6072
+ prompt: OMNI_PROMPT,
6073
+ audio: "always"
6074
+ },
6075
+ defaults: {},
6076
+ usage: { ...VIDEO_USAGE3 },
6077
+ pricingKind: "video_per_second",
6078
+ display: {
6079
+ provider: "google",
6080
+ logo: GOOGLE_LOGO3,
6081
+ description: "Google Gemini Omni Flash 1.2 conversational video generation, editing and extension; text, image, and up to 15-second video input, 3-15 second output at up to 4K and 24 FPS (start and end frames up to 10 seconds), extendable to 30 seconds."
6082
+ },
6083
+ capabilities: {
6084
+ acceptsSourceVideo: true,
6085
+ videoEdit: true,
6086
+ lastFrameRequiresFirstFrame: true
6087
+ }
6088
+ },
6050
6089
  {
6051
6090
  // vibe-triggers and Space Builder drop the ratio when a frame is wired; Cowork always sends it.
6052
6091
  id: "seedance-2.0",
@@ -6302,7 +6341,12 @@ var VIDEO_MODELS = [
6302
6341
  prompt: KLING_PROMPT2,
6303
6342
  audio: "optional"
6304
6343
  },
6305
- defaults: { durationSeconds: 5, aspectRatio: "16:9", generateAudio: true, mode: "pro" },
6344
+ defaults: {
6345
+ durationSeconds: 5,
6346
+ aspectRatio: "16:9",
6347
+ generateAudio: true,
6348
+ mode: "standard"
6349
+ },
6306
6350
  usage: { ...VIDEO_USAGE3 },
6307
6351
  pricingKind: "video_per_second",
6308
6352
  display: {
@@ -13861,6 +13905,7 @@ var VEO_POLL_INTERVAL_MS = 5e3;
13861
13905
  var OMNI_POLL_INTERVAL_MS = 1e4;
13862
13906
  var RESULT_TIMEOUT_MS3 = 15 * 60 * 1e3;
13863
13907
  var OMNI_INLINE_LIMIT_BYTES = 4 * 1024 * 1024;
13908
+ var OMNI_FRAMES_MAX_SECONDS = 10;
13864
13909
  var MEDIA_PART_INLINE_LIMIT_BYTES = 10 * 1024 * 1024;
13865
13910
  var errorTextSchema = z24.string();
13866
13911
  function isGoogleGenaiVideoKnown(providerModelId) {
@@ -14175,6 +14220,13 @@ async function generateOmniVideo(req, ctx, createGenAIClient) {
14175
14220
  model: modelId
14176
14221
  });
14177
14222
  }
14223
+ if ((extend || lastFrame !== void 0) && duration > OMNI_FRAMES_MAX_SECONDS) {
14224
+ throw new ModelKitError({
14225
+ code: "unsupported_option",
14226
+ message: `${modelId} ${extend ? "extension" : "start-and-end-frame video"} is at most ${OMNI_FRAMES_MAX_SECONDS} s; got ${duration} s`,
14227
+ model: modelId
14228
+ });
14229
+ }
14178
14230
  const task = extend ? "extend" : req.sourceVideo ? "edit" : firstFrame ? "image_to_video" : images.length > 0 || videos.length > 0 ? "reference_to_video" : "text_to_video";
14179
14231
  const isOmniV1 = providerModelId === "gemini-omni-flash-preview";
14180
14232
  const responseFormat = { type: "video", delivery: "uri" };