fix(gateway): 补齐鉴权测试页并保持旧接口兼容

This commit is contained in:
xsl
2026-11-07 21:11:17 +08:00
parent 51baf96d78
commit c7add84d91
11 changed files with 100 additions and 22 deletions
+4 -1
View File
@@ -686,7 +686,10 @@ async def _face_features_response(request, image_file, image_url, image_base64,
image_url = None
try:
feats = await run_in_threadpool(analyze_features, img_bytes, image_url)
if include_ratios:
feats = await run_in_threadpool(analyze_features, img_bytes, image_url, accept_age_alias=True)
else:
feats = await run_in_threadpool(analyze_features, img_bytes, image_url)
except Exception as ex:
logger.exception("接口4 豆包调用失败")
return JSONResponse(status_code=200, content={