Commit ac95b13
fix(video): Atlas image-to-video must select the image-to-video model
Follow-up to #13. Atlas Cloud exposes image-to-video as its own model id
(bytedance/seedance-2.0/image-to-video), and the text-to-video model's
published schema has no `image` field — so the previous default (always
text-to-video, image attached anyway) made the default-config
image-to-video path ship a video that ignores the first frame, or get
rejected, without any error naming the cause. GENERATE's
character-consistency flow (locked portrait -> i2v) rides exactly that
path.
- Default the model by task type: image_url present -> the i2v model id,
absent -> text-to-video, explicit model/config always wins.
- Fail closed on an explicit mismatch, naming the fix in the error: a
text-to-video model given a first frame would silently produce a
wrong delivery, and an image-to-video model without a frame cannot
run at all.
Verified: build green; 218 tests pass — the prior test that pinned the
broken combination (image + t2v default) now pins the i2v default, plus
new cases for the no-image default and both mismatch refusals. Model
ids and the schema difference confirmed against the Atlas model pages.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VL7mRpmEphLAbcH7YmABnV1 parent e6ccab6 commit ac95b13
2 files changed
Lines changed: 39 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
10 | 14 | | |
11 | 15 | | |
12 | 16 | | |
| |||
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
60 | 74 | | |
61 | 75 | | |
62 | 76 | | |
63 | 77 | | |
64 | | - | |
| 78 | + | |
65 | 79 | | |
66 | 80 | | |
67 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
336 | 338 | | |
337 | 339 | | |
338 | 340 | | |
| |||
341 | 343 | | |
342 | 344 | | |
343 | 345 | | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
344 | 366 | | |
345 | 367 | | |
346 | 368 | | |
| |||
0 commit comments