Skip to content

Commit f3e7338

Browse files
authored
Revert "fix prompt error" (#452)
Revert "fix prompt error (#447)" This reverts commit 4c8f89a.
1 parent e62f72d commit f3e7338

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/memos/graph_dbs/polardb.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3028,7 +3028,7 @@ def format_param_value(self, value: str | None) -> str:
30283028
"""Format parameter value to handle both quoted and unquoted formats"""
30293029
# Handle None value
30303030
if value is None:
3031-
logger.warning("format_param_value: value is None")
3031+
logger.warning(f"format_param_value: value is None")
30323032
return "null"
30333033

30343034
# Remove outer quotes if they exist

src/memos/templates/prefer_complete_prompt.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -599,15 +599,15 @@
599599

600600
PREF_INSTRUCTIONS = """
601601
# Note:
602-
Fact memory are summaries of facts, while preference memory are summaries of user preferences.
602+
Plaintext memory are summaries of facts, while preference memories are summaries of user preferences.
603603
Your response must not violate any of the user's preferences, whether explicit or implicit, and briefly explain why you answer this way to avoid conflicts.
604-
When encountering preference conflicts, the priority is: explicit preference > implicit preference > fact memory.
604+
When encountering preference conflicts, the priority is: explicit preference > implicit preference > plaintext memory.
605605
"""
606606

607607

608608
PREF_INSTRUCTIONS_ZH = """
609609
# 注意:
610-
事实记忆是事实的摘要,而偏好记忆是用户偏好的摘要。
610+
明文记忆是事实的摘要,而偏好记忆是用户偏好的摘要。
611611
你的回复不得违反用户的任何偏好,无论是显式偏好还是隐式偏好,并简要解释你为什么这样回答以避免冲突。
612-
当遇到偏好冲突时,优先级为:显式偏好 > 隐式偏好 > 事实记忆
612+
当遇到偏好冲突时,优先级为:显式偏好 > 隐式偏好 > 明文记忆
613613
"""

0 commit comments

Comments
 (0)