feat(接口4): 精简输出为固定6个英文字段,缩短提示词

- face_features.py:_PROMPT 只问6项特征(+有无人脸),analyze_features
  只返回6个英文字段;无人脸返回 None(不再依赖 has_face 在外部判定)
- gateway/app.py:无脸判定改为 feats is None,去掉 has_face import
- app.py / docs / test_interface4.html:Swagger/文档/示例/测试页同步

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
xsl
2026-06-18 22:19:00 +08:00
co-authored by Claude Sonnet 4.6
parent be81567261
commit 28a6062fea
6 changed files with 30 additions and 48 deletions
+1 -1
View File
@@ -61,7 +61,7 @@
<body>
<div class="container">
<h1>🔬 接口4 — 用户特征分析 测试</h1>
<p class="subtitle">POST /api/v1/face/features &nbsp;|&nbsp; 上传照片 → AI视觉模型 → 42项面部特征 &nbsp;|&nbsp; data.features 为 JSON 字符串</p>
<p class="subtitle">POST /api/v1/face/features &nbsp;|&nbsp; 上传照片 → AI视觉模型 → 6项面部特征 &nbsp;|&nbsp; data.features 为 JSON 字符串</p>
<div class="card">
<div class="card-body">