From e64a5919055010ba9806e66cce90128d3e6e035e Mon Sep 17 00:00:00 2001 From: dazzatronus Date: Thu, 3 Sep 2026 18:47:53 +1000 Subject: [PATCH] fix: name generation models that the catalogue actually offers --- paths/modelsid.yaml | 2 +- schemas/generationmodel.yaml | 2 +- schemas/imagetovideoasset.yaml | 2 +- schemas/videoasset.yaml | 8 ++++---- tests/smoke.cjs | 4 ++-- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/paths/modelsid.yaml b/paths/modelsid.yaml index a362e46..13eb1a7 100644 --- a/paths/modelsid.yaml +++ b/paths/modelsid.yaml @@ -26,4 +26,4 @@ description: The model identifier, as returned by the list endpoint. schema: type: string - example: seedance-2.0 + example: seedance-2.0-text-to-video diff --git a/schemas/generationmodel.yaml b/schemas/generationmodel.yaml index 9d0bf79..f84595d 100644 --- a/schemas/generationmodel.yaml +++ b/schemas/generationmodel.yaml @@ -10,7 +10,7 @@ The identifier to set as the asset `model`. Carries no provider name, so routing can change without a public rename. type: string - example: seedance-2.0 + example: seedance-2.0-text-to-video type: description: The asset type this model generates. type: string diff --git a/schemas/imagetovideoasset.yaml b/schemas/imagetovideoasset.yaml index b5d42d0..f8d76a6 100644 --- a/schemas/imagetovideoasset.yaml +++ b/schemas/imagetovideoasset.yaml @@ -3,7 +3,7 @@ ImageToVideoAsset: description: | **Notice: ImageToVideoAsset is deprecated. Use [VideoAsset](#tocs_videoasset) with `prompt`, a `model` that accepts a starting image, and that image in - `options.inputSrc` — for example `shotstack-itv-mini`.** This type continues to + `options.inputSrc` — for example `seedance-2.0-image-to-video`.** This type continues to function and is internally rewritten to VideoAsset; no behaviour change for existing integrations. diff --git a/schemas/videoasset.yaml b/schemas/videoasset.yaml index 90ac824..1bc353a 100644 --- a/schemas/videoasset.yaml +++ b/schemas/videoasset.yaml @@ -42,11 +42,11 @@ model: description: >- The generation model to use when `prompt` is set (e.g. - `shotstack-itv-mini`, `ray-flash-2`, `seedance-2.0`). Defaults to - `seedance-2.0` if omitted. Each model's available options are - defined by the model registry. + `seedance-2.0-text-to-video`). Defaults to + `seedance-2.0-text-to-video` if omitted. `GET /models` lists what is + available and the options each accepts. type: string - example: seedance-2.0 + example: seedance-2.0-text-to-video options: description: >- Model-specific generation settings. Valid keys and values depend on diff --git a/tests/smoke.cjs b/tests/smoke.cjs index dd0c7ea..81e3eb4 100644 --- a/tests/smoke.cjs +++ b/tests/smoke.cjs @@ -250,10 +250,10 @@ async function run() { const result = zodCjs.videoAssetSchema.parse({ type: "video", prompt: "Camera pans right", - model: "seedance-2.0", + model: "seedance-2.0-text-to-video", options: { resolution: "720p", aspectRatio: "16:9" }, }); - assert.strictEqual(result.model, "seedance-2.0"); + assert.strictEqual(result.model, "seedance-2.0-text-to-video"); }); check("REJECT videoAsset with removed `seed` field (generation inputs live in options)", () => {