Files
pod_trend_agent/graph/nodes/pinterest_init_node.py
3218485270 b7f429db89 模板导出增强 + 模特性别分组 + 三合一提示词精简
1) 模板导出:识别「基码表-胸围」填 sku.bust(多个胸围列都填);申报价格模糊匹配多列统一按加价后价格填写;详情图文不再拼接 img_url_2;SPU 款式来源统一填「现货款」;商品产地国家简称映射(沙特→沙特阿拉伯)
2) 模特性别分组:model_features 按男女分组,按模板类目含男/女固定取对应性别模特(含 Pinterest 模式 pipeline)
3) 三合一提示词:去掉 DESIGN CONTENT 四要素描述(设计已由设计稿提供)
4) 生图尺寸:全部改为读 config 不再硬编码(设计图 compose.design_size / 合成图 compose.size / 种草图 seed_shot.size)
2026-08-26 18:05:11 +08:00

16 lines
571 B
Python
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
"""Pinterest 并发生成流水线节点 0/3:初始化简报池(pinterest_init)。
创建 PinterestPipeline(简报池 + 后台并发生成线程),存 state["pinterest_pipeline"]
供 pinterest_analyze 推送简报、pinterest_finalize 收尾。
"""
from typing import Any, Dict
from graph.validate import with_fallback
@with_fallback("pinterest_init")
def pinterest_init_node(state: Dict[str, Any]) -> Dict[str, Any]:
from graph.pinterest_pipeline import PinterestPipeline
pipe = PinterestPipeline(state)
return {"pinterest_pipeline": pipe}