fix: LANG_NOTE_ES/ZH同步语言放开——删绝不翻译旧规则,号码逐字照抄
Co-Authored-By: Claude Code <noreply@anthropic.com>
This commit is contained in:
@@ -506,14 +506,19 @@ def test_reminder_boundary_on_pressure_phrases():
|
||||
|
||||
|
||||
def test_reminder_language_note_follows_customer_language():
|
||||
# Task 11 真人验收: 拉丁规格混排的中文消息会整轮漂英文、西语客户会把
|
||||
# 模板句翻译成西语——语言指令必须挂在当轮提醒(prompt 最末最鲜的位置)
|
||||
# Task 11 真人验收: 拉丁规格混排的中文消息会整轮漂英文——语言指令必须
|
||||
# 挂在当轮提醒(prompt 最末最鲜的位置)。Task 5 收尾(2026-10-08): 语言
|
||||
# 规则放开后 ES/ZH note 同步新语义——模板句跟随客户语言自然表达+
|
||||
# 补全号码逐字照抄;"整句使用英文原版/绝不翻译成西语"旧锚随规则废除。
|
||||
zh = ConversationManager._build_context_reminder(
|
||||
{}, "你们做DN800的HDPE双壁波纹管吗?市政排污用的", [])
|
||||
assert "全程使用中文" in zh
|
||||
assert "跟随客户语言自然表达" in zh and "号码逐字照抄" in zh
|
||||
es = ConversationManager._build_context_reminder(
|
||||
{}, "¿Cuál es el precio del tubo PE100?", [])
|
||||
assert "英文原版" in es and "绝不翻译成西语" in es
|
||||
assert "跟随客户语言自然表达" in es
|
||||
assert "号码逐字照抄" in es
|
||||
assert "英文原版" not in es and "绝不翻译" not in es # 旧规则清零
|
||||
# 英文客户不带语言提醒(默认英语,无需提醒)
|
||||
en = ConversationManager._build_context_reminder(
|
||||
{}, "how much is the DN800 pipe?", [])
|
||||
|
||||
Reference in New Issue
Block a user