mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-07-19 04:37:28 +08:00
fix(evolution): pin review summary language via i18n hint
This commit is contained in:
@@ -151,6 +151,11 @@ def build_review_user_message(transcript: str, protected_skills: list = None) ->
|
|||||||
"\n\nPROTECTED skills (built-in — never edit these): "
|
"\n\nPROTECTED skills (built-in — never edit these): "
|
||||||
f"{names}\n"
|
f"{names}\n"
|
||||||
)
|
)
|
||||||
|
try:
|
||||||
|
from common import i18n
|
||||||
|
lang_name = "中文" if i18n.is_zh() else "English"
|
||||||
|
except Exception:
|
||||||
|
lang_name = "中文"
|
||||||
return (
|
return (
|
||||||
"Here is the conversation transcript that just went idle. Review it per "
|
"Here is the conversation transcript that just went idle. Review it per "
|
||||||
"your instructions. Acting is the exception: the main value is fixing or "
|
"your instructions. Acting is the exception: the main value is fixing or "
|
||||||
@@ -158,6 +163,7 @@ def build_review_user_message(transcript: str, protected_skills: list = None) ->
|
|||||||
"rare last resorts — stay [SILENT] unless there is a clear, durable signal "
|
"rare last resorts — stay [SILENT] unless there is a clear, durable signal "
|
||||||
"not already covered."
|
"not already covered."
|
||||||
f"{protected_note}\n"
|
f"{protected_note}\n"
|
||||||
|
f"The summary should preferably be written in: {lang_name}\n"
|
||||||
"<transcript>\n"
|
"<transcript>\n"
|
||||||
f"{transcript}\n"
|
f"{transcript}\n"
|
||||||
"</transcript>"
|
"</transcript>"
|
||||||
|
|||||||
Reference in New Issue
Block a user