From dff19ee83523d90695921c693ce0d5b759aeec4c Mon Sep 17 00:00:00 2001 From: OoO Date: Tue, 28 Apr 2026 11:39:08 +0800 Subject: [PATCH] =?UTF-8?q?fix(post-3.5c):=20ai=5Froutes=20hermes=5Fstats?= =?UTF-8?q?=20model=20=E9=A1=AF=E7=A4=BA=E5=AD=97=E4=B8=B2=E6=B8=85?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Item #9: - routes/ai_routes.py:1640 hermes_stats['model'] 寫死 'hermes3:latest' - 改為 'Hermes 3' 更易讀;保留語意(model identifier 給未來可能的下游讀者) 調查確認此 key 為 dead code: - _build_footprint_block / _build_footprint_json (nemoton_dispatcher_service.py:276,303) 只讀 duration_sec 和 tokens,不讀 model key - hermes_analyst_service.py:419 自組 _last_stats 也不放 model key - 改動不影響 footprint 顯示與 DB 寫入 --- routes/ai_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/ai_routes.py b/routes/ai_routes.py index f5d8018..db280b6 100644 --- a/routes/ai_routes.py +++ b/routes/ai_routes.py @@ -1637,7 +1637,7 @@ def api_icaim_trigger(): if result.threats: hermes_stats = { - 'model': 'hermes3:latest', + 'model': 'Hermes 3', # 顯示用識別符;下游 _build_footprint 不讀此 key 'duration_sec': hermes_duration, 'tokens': result.hermes_tokens, }