Compare commits

...

2 Commits

Author SHA1 Message Date
pangkaicheng
46b96995f0 BUG FIX:stylist_agent server, _execute_batch_recommendation(accessories) 2025-12-15 17:36:52 +08:00
pangkaicheng
b17cfb53d8 FIX: category 'category' referenced before assignment 2025-12-12 17:40:19 +08:00

View File

@@ -400,6 +400,8 @@ class AsyncStylistAgent:
# 特别是当列表很长时。
if subcategory in subcategories_list:
break
else:
category = current_category
new_item = self._get_next_item(description, category, subcategory, occasions, batch_sources, self.gender)
if not new_item or new_item['item_id'] in [x['item_id'] for x in self.outfit_items]:
@@ -438,7 +440,7 @@ class AsyncStylistAgent:
MAX_LEN_ACC = 3
acc_system_prompt = self._build_system_prompt(accessories_template, request_summary, accessories_guide, 'accessories', MAX_LEN_ACC)
reason = await self._execute_batch_recommendation(
current_category, # can be 'accessories' or 'all'
'accessories', # can be 'accessories' or 'all'
acc_system_prompt,
build_batch_schema(current_category),
occasions,