From f3bf2baa0172b4fa779c1a8dd2e7b17a1bb1b55d Mon Sep 17 00:00:00 2001 From: zhh Date: Mon, 27 Oct 2025 14:13:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E8=B0=83=E9=80=BB=E8=BE=91=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/core/stylist_agent_server.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/app/core/stylist_agent_server.py b/app/core/stylist_agent_server.py index e373785..5366f07 100644 --- a/app/core/stylist_agent_server.py +++ b/app/core/stylist_agent_server.py @@ -298,7 +298,6 @@ class AsyncStylistAgent: self.stop_reason = "Finish reason: " + gemini_data.get('reason', 'No reason provided') response_data['status'] = "stop" response_data['message'] = self.stop_reason - break # 4. 处理推荐单品 if gemini_data.get('action') == 'recommend_item': @@ -350,14 +349,12 @@ class AsyncStylistAgent: break if len(self.outfit_items) >= self.max_len: # 设置一个最大循环限制,防止无限循环 - print("🚨 达到最大搭配数量限制,强制终止。") + logger.info("🚨 达到最大搭配数量限制,强制终止。") self.stop_reason = "Finish reason: Reached max outfit length." response_data['status'] = "stop" response_data['message'] = self.stop_reason - logger.info(response_data) - break - logger.info(response_data) + logger.info(f"request data :{response_data}") headers = { 'Accept': "*/*", 'Accept-Encoding': "gzip, deflate, br",