fix:取消品牌筛选逻辑
This commit is contained in:
@@ -261,6 +261,12 @@ class AsyncStylistAgent:
|
|||||||
"request_summary": request_summary,
|
"request_summary": request_summary,
|
||||||
"occasions": occasions
|
"occasions": occasions
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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))
|
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}")
|
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
|
return response_data
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ class VectorDatabase():
|
|||||||
]
|
]
|
||||||
|
|
||||||
# 加了一条限制,但是部署到生产的时候把他设定为False
|
# 加了一条限制,但是部署到生产的时候把他设定为False
|
||||||
brand_strication = True
|
brand_strication = False
|
||||||
if brand_strication:
|
if brand_strication:
|
||||||
and_conditions.append({"brand": {"$in": BRAND_WHITELIST}})
|
and_conditions.append({"brand": {"$in": BRAND_WHITELIST}})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user