fix(gateway): 补齐鉴权测试页并保持旧接口兼容
This commit is contained in:
+4
-1
@@ -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={
|
||||
|
||||
Reference in New Issue
Block a user