From cca20cf0e2e8b81f7abd62e1d0a9886e62c08268 Mon Sep 17 00:00:00 2001 From: xxm Date: Thu, 20 Aug 2026 16:14:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(prompt):=20=E4=BF=AE=E5=A4=8D=5Fsector=5Fex?= =?UTF-8?q?tra=E6=9C=AA=E5=AE=9A=E4=B9=89(=E8=A1=8C=E4=B8=9A=E5=BC=BA?= =?UTF-8?q?=E5=BA=A6=E6=B3=A8=E5=85=A5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/profile-scripts/batch_reassess.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/deploy/profile-scripts/batch_reassess.py b/deploy/profile-scripts/batch_reassess.py index 16595a08..4ae4939f 100644 --- a/deploy/profile-scripts/batch_reassess.py +++ b/deploy/profile-scripts/batch_reassess.py @@ -447,6 +447,13 @@ def build_prompt(data): f"(是否建仓/什么价位建仓/仓位多大),禁止假设我有浮盈、" f"禁止出现「已持仓者」视角的建议。") + # ── 行业强度数据 ── + _sector_extra = "" + if data.get("sector_change_pct") is not None: + _sector_extra = f" 行业涨跌={data['sector_change_pct']}%" + if data.get("sector_rank") is not None: + _sector_extra += f" 行业排名={data['sector_rank']}" + _tech_parts = [] if data.get("ta_strong_support"): _tech_parts.append(f"强支撑={data['ta_strong_support']} 弱支撑={data['ta_weak_support']} 枢轴={data['ta_pivot']} 弱压={data['ta_weak_resist']} 强压={data['ta_strong_resist']}")