fix: fix various issues before merging

This commit is contained in:
Kevin
2026-03-11 11:27:32 +08:00
parent bd5f0905ba
commit 1f98b8bfd6
15 changed files with 297 additions and 31 deletions

View File

@@ -1,6 +1,8 @@
import re
from typing import Any
from .schema import IMAGE_STATUS_PENDING
PLACEHOLDER_RE = re.compile(
r"\{\{\{\{IMAGE:(.*?)\}\}\}\}|\{\{IMAGE:(.*?)\}\}",
re.DOTALL,
@@ -40,7 +42,7 @@ def build_initial_image_assets(
"description": item["description"],
"prompt": None,
"url": None,
"status": "pending",
"status": IMAGE_STATUS_PENDING,
"provider": provider,
"style": style,
"size": size,