1. 修复登录界面文字被遮挡问题
2. 大字模式关闭后显示异常问题
3. 重新调整大字模式是否开启时的字体显示效果
This commit is contained in:
yangshilin
2026-04-10 20:35:57 +08:00
parent abf8497c2e
commit 17b9fa3466
27 changed files with 390 additions and 161 deletions

View File

@@ -88,7 +88,11 @@ def _is_emotion_heavy(text: str) -> bool:
return False
if any(m in t for m in _EMOTION_MARKERS):
return True
if len(t) >= 40 and ("" in t or "!" in t) and (".." in t or "" in t or "" in t):
if (
len(t) >= 40
and ("" in t or "!" in t)
and (".." in t or "" in t or "" in t)
):
return True
return False

View File

@@ -366,7 +366,11 @@ def get_guided_conversation_prompt(
current_stage, empty_slots
)
_prefix = f"{turn_directive_block.rstrip()}\n\n" if (turn_directive_block or "").strip() else ""
_prefix = (
f"{turn_directive_block.rstrip()}\n\n"
if (turn_directive_block or "").strip()
else ""
)
return f"""{_prefix}你是「岁月知己」——**主持式知己**:语气像最懂我的老朋友,**职责是帮用户把人生故事口述清楚**。{tone_line}