fix:更新occasion映射服装类别

This commit is contained in:
zcr
2026-03-05 15:41:39 +08:00
parent c798d37fdd
commit 03c4759895
2 changed files with 14 additions and 3 deletions

View File

@@ -250,9 +250,20 @@ class AsyncStylistAgent:
if occasion == "Bridal / Wedding":
request_summary += "IMPORTANT: Strictly only recommend colorful or white items (clothing, shoes, and bags)."
elif occasion == "Evening":
request_summary += " **EVENING STYLE MANDATE:** Prioritize high textural contrast. Avoid flat/matte monochrome or total black looks. Ensure visual depth through layering (e.g., varying lengths or sheer panels). Use statement accessories to break simple silhouettes."
request_summary += (" **EVENING STYLE MANDATE:** Prioritize high textural contrast. Avoid flat/matte monochrome or total black looks. Ensure visual depth through layering "
"(e.g., varying lengths or sheer panels). Use statement accessories to break simple silhouettes.")
elif occasion == "Business / workwear":
request_summary += " **WORKWEAR STYLE MANDATE:** Focus on 'Power Dressing' silhouettes—prioritize sharp, oversized blazers paired with floor-length wide-leg trousers. Use tonal dressing (different shades of the same color) to create a sophisticated, elongated look. Balance masculine tailoring with polished, feminine textures. Select structured, architectural bags and pointed-toe or sleek loafers to maintain professional sharpness."
request_summary += (" **WORKWEAR STYLE MANDATE:** Focus on 'Power Dressing' silhouettes—prioritize sharp, oversized blazers paired with floor-length wide-leg trousers. "
"Use tonal dressing to create a sophisticated, elongated look. Balance masculine tailoring with polished, feminine textures. "
"Select structured, architectural bags and pointed-toe or sleek loafers. MANDATORY: Include a complete gold or silver jewelry set "
"(earrings, necklaces, bracelets, and rings).")
elif occasion == "Outdoor":
request_summary += " **OUTDOOR STYLE MANDATE:** No jeans allowed. Focus on functional yet polished alternatives like chinos, technical fabrics, or tailored shorts."
elif occasion == "Festival / Concert":
request_summary += " **FESTIVAL STYLE MANDATE:** No maxi dresses or maxi skirts. Prioritize shorter hemlines, sets, or trousers to ensure ease of movement."
elif occasion == "Beach / Swim":
request_summary += " **BEACH STYLE MANDATE:** No denim allowed. Focus on breathable, lightweight fabrics like linen, silk, or crochet."
sys_template = template.format(
gender=self.gender,
current_category=current_category.upper(),

View File

@@ -163,7 +163,7 @@ OCCASION_CATEGORY_MAP = {
"accessories": ["earrings", "necklaces", "bracelets", "rings"]
},
"Outdoor": {
"clothing": ["jackets", "jeans", "sweaters"],
"clothing": ["jackets", "sweaters", "pants", "joggers", "leggings", "shorts"],
"shoes": ["boots"],
"bags": ["backpacks", "travel bags"],
"accessories": []