机器人显示名与站点标题可配;多段联运列表投影;协同群监听对账;工单附件落存;模板与工单后台补强
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -248,9 +248,12 @@ def classify_group_text(
|
||||
|
||||
|
||||
def _norm_intent_text(text: str) -> str:
|
||||
"""去掉空格和 @询价小助手,方便整句就是「2」时对上选项。"""
|
||||
blob = (text or "").replace(" ", "").replace(" ", "").lower()
|
||||
blob = blob.replace("@询价小助手", "").replace("询价小助手", "")
|
||||
"""去掉空格和 @机器人显示名,方便整句就是「2」时对上选项。"""
|
||||
from agent.policy.bot_name import strip_bot_mention
|
||||
|
||||
# 先剥显示名再 lower:否则「智报通AIQ」会变成「智报通aiq」剥不掉。
|
||||
blob = strip_bot_mention(text or "")
|
||||
blob = blob.replace(" ", "").replace(" ", "").lower()
|
||||
return blob.strip()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user