fix: harden image handling and update docs
This commit is contained in:
@@ -195,9 +195,13 @@ class CustomerServiceBrain:
|
||||
user_content = msg.content or ""
|
||||
|
||||
# 客户已发图:告知 AI 图已收到,引导问需求,但不要直接转接
|
||||
if msg.image_urls:
|
||||
has_image_message = bool(msg.image_urls) or msg.msg_type == 1
|
||||
if has_image_message:
|
||||
image_count = max(len(msg.image_urls), 1)
|
||||
if user_content.startswith("【系统:已收到图片消息"):
|
||||
user_content = ""
|
||||
user_content = (
|
||||
f"【系统通知:客户已发送 {len(msg.image_urls)} 张图片,图已收到不要再让客户发图。"
|
||||
f"【系统通知:客户已发送 {image_count} 张图片,图已收到不要再让客户发图。"
|
||||
f"你现在必须先问客户:这张是找原图还是高清修复?有什么具体要求?"
|
||||
f"等客户明确回答后才能转接,严禁跳过问需求直接转接!】\n{user_content}"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user