Compare commits
2 Commits
85390d5e6d
...
46b96995f0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46b96995f0 | ||
|
|
b17cfb53d8 |
@@ -400,6 +400,8 @@ class AsyncStylistAgent:
|
|||||||
# 特别是当列表很长时。
|
# 特别是当列表很长时。
|
||||||
if subcategory in subcategories_list:
|
if subcategory in subcategories_list:
|
||||||
break
|
break
|
||||||
|
else:
|
||||||
|
category = current_category
|
||||||
|
|
||||||
new_item = self._get_next_item(description, category, subcategory, occasions, batch_sources, self.gender)
|
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]:
|
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
|
MAX_LEN_ACC = 3
|
||||||
acc_system_prompt = self._build_system_prompt(accessories_template, request_summary, accessories_guide, 'accessories', MAX_LEN_ACC)
|
acc_system_prompt = self._build_system_prompt(accessories_template, request_summary, accessories_guide, 'accessories', MAX_LEN_ACC)
|
||||||
reason = await self._execute_batch_recommendation(
|
reason = await self._execute_batch_recommendation(
|
||||||
current_category, # can be 'accessories' or 'all'
|
'accessories', # can be 'accessories' or 'all'
|
||||||
acc_system_prompt,
|
acc_system_prompt,
|
||||||
build_batch_schema(current_category),
|
build_batch_schema(current_category),
|
||||||
occasions,
|
occasions,
|
||||||
|
|||||||
Reference in New Issue
Block a user