Will Miao
34791c2ad7
fix(recipe): use resources type field to identify checkpoint instead of modelVersionIds[0]
...
When importing a CivitAI image as a recipe, modelVersionIds[0] was blindly used as the checkpoint version ID. This array mixes checkpoints and LoRAs without ordering guarantees, causing LoRAs to be saved as the recipe checkpoint.
Fix by:
1. Removing the modelVersionIds[0] fallback in _download_remote_media
2. Parsing resources entries with type:"model" as the checkpoint
3. Adding model type validation in populate_checkpoint_from_civitai
Also add 2 tests for the new behavior and fix 3 tests whose mocks lacked the required model.type field.
2026-05-28 15:46:38 +08:00
..
2026-02-27 19:19:16 +08:00
2026-04-20 09:52:48 +08:00
2025-11-29 08:13:55 +08:00
2026-04-10 20:49:30 +08:00
2026-04-16 13:28:51 +08:00
2026-04-16 08:54:12 +08:00
2026-02-27 19:19:16 +08:00
2026-03-18 21:10:56 +08:00
2026-02-02 12:31:07 +08:00
2026-04-23 11:36:32 +08:00
2026-01-30 07:48:31 +08:00
2026-02-25 18:16:17 +08:00
2025-10-14 21:38:24 +08:00
2026-03-29 00:18:15 +08:00
2026-05-16 22:15:55 +08:00
2026-05-28 15:46:38 +08:00
2025-12-23 15:31:04 +08:00
2026-04-20 15:54:30 +08:00
2025-10-13 21:30:23 +08:00
2026-04-21 22:48:06 +08:00
2026-04-16 18:25:16 +08:00
2026-04-20 09:52:48 +08:00
2026-05-12 22:50:30 +08:00
2026-03-26 18:00:04 +08:00
2026-04-17 03:35:41 +08:00
2026-02-03 21:32:15 +08:00
2025-10-08 08:56:57 +08:00
2025-10-27 18:21:14 +08:00
2026-04-12 20:29:01 +08:00
2026-01-08 00:25:36 +08:00
2025-11-07 22:28:29 +08:00
2026-05-26 06:02:17 +08:00
2026-05-26 06:02:17 +08:00
2025-11-29 08:13:55 +08:00
2025-11-07 09:18:59 +08:00
2026-04-20 15:04:04 +08:00
2025-10-18 21:19:09 +08:00
2025-10-28 18:39:37 +08:00
2026-04-30 15:21:26 +08:00
2026-04-16 21:40:59 +08:00
2025-11-07 09:18:59 +08:00
2026-01-30 07:48:31 +08:00
2026-04-17 20:27:48 +08:00
2026-02-02 08:30:59 +08:00
2026-05-26 06:02:17 +08:00
2025-10-11 22:42:24 +08:00
2026-04-28 19:15:44 +08:00
2025-12-23 18:48:35 +08:00
2025-11-06 17:05:54 +08:00
2025-10-25 06:43:03 +08:00
2025-11-29 08:29:05 +08:00
2026-01-22 10:25:03 +08:00
2026-05-28 15:46:38 +08:00
2026-04-12 21:25:54 +08:00
2026-04-25 07:50:51 +08:00
2025-10-24 15:17:12 +08:00
2026-03-07 23:07:10 +08:00
2026-01-15 15:17:33 +08:00
2026-05-20 22:48:44 +08:00
2026-01-30 07:48:31 +08:00
2025-10-05 14:41:24 +08:00
2026-04-21 09:43:37 +08:00
2026-03-25 08:43:33 +08:00
2026-05-20 22:48:44 +08:00
2026-02-05 22:36:30 +08:00
2026-02-02 13:27:18 +08:00
2025-10-13 14:39:31 +08:00
2026-04-15 22:25:25 +08:00