v110-v112 自定义模式完善 + 模板导出增强 + 多模态兼容优化
- 自定义模式:分析模型输出 delta 唯一改动指令,生图模板 custom_image_prompt.md({delta} 占位符),不再使用负向提示词;generate_design 按 custom_mode 分支,Pinterest 模式保留原创化指令,两模式互不影响
- 多模态分析 response_format 三级回退(json_schema → json_object → none),兼容 DeepSeek
- 模板导出:details 扩展列(细节1/2/3)、target_audience 扩展列(适用人群1)、固定值风格1=休闲/风格2=运动
- 童装特征库更新 + 标题模板外部化 + 图源映射增强
This commit is contained in:
+10
-11
@@ -86,8 +86,8 @@ pinterest:
|
||||
# 自定义模式(pinterest.mode=custom)专属配置:多模态提示词与生图固定段独立于 Pinterest 参考模式。
|
||||
custom:
|
||||
# 自定义模式生图提示词的固定段(可编辑;留空=回退代码内置默认)。
|
||||
# 自定义模式生图正向提示词 = image_prompt_template({image_prompt} 替换为分析模型产出的新设计描述);
|
||||
# 负向 = negative_prompt(compose 生图时作为负向参数传给图像后端)。
|
||||
# 自定义模式生图正向提示词 = image_prompt_template({image_prompt} 替换为分析模型产出的新设计描述,
|
||||
# {delta} 替换为分析模型产出的唯一改动指令);不再使用负向提示词(约束已内置进模板)。
|
||||
# 凡 review 简报额外追加 review_rebrand_hint。
|
||||
prompt_pieces:
|
||||
image_prompt_template: >-
|
||||
@@ -100,10 +100,6 @@ custom:
|
||||
on the print area, identify its subject, technique, palette and layout,
|
||||
and base the new design on THOSE observed traits. Ignore the model,
|
||||
background and photo quality. Then: {image_prompt}
|
||||
negative_prompt: >-
|
||||
copy of reference artwork, lookalike of the bestseller print, characters,
|
||||
mascots, likenesses, logos, trademarks, watermark, photorealistic shirt,
|
||||
apparel, product mockup, model, garment, hanger, busy background
|
||||
print_suffix: >-
|
||||
standalone pure print design on a pure white background, the print artwork is SMALL and
|
||||
CENTERED with clearly larger white margins around it, print area between about 15x18 cm and
|
||||
@@ -179,11 +175,14 @@ season_map:
|
||||
female:
|
||||
四季: ALL/全球/所有
|
||||
|
||||
# 印花图案值映射表(女装模板专用):key=db pattern 值,value=模板下拉框精确选项。
|
||||
# 男装模板保留 db 原值(不查此表,不在此配置)。缺失/留空回退内置默认(印花→卡通)。
|
||||
# 印花图案值映射表:key=db pattern 值,value=模板下拉框精确选项。
|
||||
# female(女装)与 girl_kids(女童)模板遇到「印花」→「卡通」;男装/男童模板保留 db 原值。
|
||||
# 缺失/留空回退内置默认(印花→卡通)。
|
||||
pattern_map:
|
||||
female:
|
||||
印花: 卡通
|
||||
girl_kids:
|
||||
印花: 卡通
|
||||
|
||||
# 适用人群值映射表(童装模板专用):key=db target_audience 值,value=模板下拉框精确选项。
|
||||
# 女童模板遇到「男童」→「女童」;男童模板遇到「女童」→「男童」(内置默认,可在此覆盖/新增)。
|
||||
@@ -242,9 +241,9 @@ query_noise:
|
||||
llm_screen:
|
||||
enabled: true
|
||||
provider: openai # openai(真 LLM,需 key)/ mock(无 key 启发式兜底)
|
||||
api_key: "ark-607f7194-f253-4c55-a421-237317d7683e-2bf08" # 留空则自动读取环境变量 LLM_API_KEY / OPENAI_API_KEY(推荐,避免密钥入库)
|
||||
base_url: "https://ark.cn-beijing.volces.com/api/v3" # 自定义网关地址,也可用环境变量 LLM_BASE_URL 覆盖
|
||||
model: "doubao-seed-2-0-lite-260215" # 自定义模型名(任意 OpenAI 兼容模型)
|
||||
api_key: "sk-93d4c647a8f44d6a95ff96e32f15776b" # 留空则自动读取环境变量 LLM_API_KEY / OPENAI_API_KEY(推荐,避免密钥入库)
|
||||
base_url: "https://api.deepseek.com" # 自定义网关地址,也可用环境变量 LLM_BASE_URL 覆盖
|
||||
model: "deepseek-v4-flash-vision-exp" # 自定义模型名(任意 OpenAI 兼容模型)
|
||||
temperature: 0.6
|
||||
max_topics_per_call: 12
|
||||
min_score: 0.0
|
||||
|
||||
Reference in New Issue
Block a user