fix:取消品牌筛选逻辑
This commit is contained in:
@@ -261,8 +261,14 @@ class AsyncStylistAgent:
|
||||
"request_summary": request_summary,
|
||||
"occasions": occasions
|
||||
}
|
||||
response = post_request(url=callback_url, data=json.dumps(response_data))
|
||||
logger.info(f"request data :{json.dumps(response_data, ensure_ascii=False, indent=2)} | JAVA callback info -> status:{response.status_code} | message:{response.text}")
|
||||
|
||||
if status in ['failed']:
|
||||
# 失败直接打印参数 不发送结果
|
||||
response_data['message'] = message
|
||||
logger.info(f"request data :{json.dumps(response_data, ensure_ascii=False, indent=2)}")
|
||||
else:
|
||||
response = post_request(url=callback_url, data=json.dumps(response_data))
|
||||
logger.info(f"request data :{json.dumps(response_data, ensure_ascii=False, indent=2)} | JAVA callback info -> status:{response.status_code} | message:{response.text}")
|
||||
return response_data
|
||||
else:
|
||||
return {}
|
||||
|
||||
@@ -61,7 +61,7 @@ class VectorDatabase():
|
||||
]
|
||||
|
||||
# 加了一条限制,但是部署到生产的时候把他设定为False
|
||||
brand_strication = True
|
||||
brand_strication = False
|
||||
if brand_strication:
|
||||
and_conditions.append({"brand": {"$in": BRAND_WHITELIST}})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user