From 655563a4aeb4ad377c4f30ec0e3143c3cda085d7 Mon Sep 17 00:00:00 2001 From: SengokuCola <1026294844@qq.com> Date: Thu, 29 May 2025 14:10:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0normalchat=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/chat/normal_chat/normal_prompt.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/chat/normal_chat/normal_prompt.py b/src/chat/normal_chat/normal_prompt.py index 9618987a6..faee97b4c 100644 --- a/src/chat/normal_chat/normal_prompt.py +++ b/src/chat/normal_chat/normal_prompt.py @@ -34,6 +34,7 @@ def init_prompt(): {relation_prompt} {prompt_info} {chat_target} +现在时间是:{now_time} {chat_talking_prompt} 现在"{sender_name}"说的:{message_txt}。引起了你的注意,你想要在群里发言或者回复这条消息。\n 你的网名叫{bot_name},有人也叫你{bot_other_names},{prompt_personality}。 @@ -220,6 +221,8 @@ class PromptBuilder: logger.debug(f"知识检索耗时: {(end_time - start_time):.3f}秒") logger.debug("开始构建 normal prompt") + + now_time = time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) # --- Choose template and format based on chat type --- if is_group_chat: @@ -249,6 +252,7 @@ class PromptBuilder: prompt_ger=prompt_ger, # moderation_prompt=await global_prompt_manager.get_prompt_async("moderation_prompt"), moderation_prompt=moderation_prompt_block, + now_time=now_time, ) else: template_name = "reasoning_prompt_private_main" @@ -273,6 +277,7 @@ class PromptBuilder: prompt_ger=prompt_ger, # moderation_prompt=await global_prompt_manager.get_prompt_async("moderation_prompt"), moderation_prompt=moderation_prompt_block, + now_time=now_time, ) # --- End choosing template ---