outfit单品数量通过java传参控制

This commit is contained in:
zhh
2025-11-03 10:13:11 +08:00
parent eb7efc6d91
commit d1e2e56f42

View File

@@ -21,7 +21,7 @@ class AgentRequestModel(BaseModel):
stylist_path: str
callback_url: str
gender: str
max_len: int
max_len: int = 9
class LCAgent(ls.LitAPI):
@@ -103,7 +103,7 @@ class LCAgent(ls.LitAPI):
return summary
async def recommend_outfit(self, request_summary: str, stylist_name: str, start_outfit=None, num_outfits: int = 1,
user_id: str = "test", gender: str = "male", callback_url: str = None, max_len: str = 9):
user_id: str = "test", gender: str = "male", callback_url: str = None, max_len: int = 9):
"""
基于用户的对话历史和需求,推荐一套搭配。