修改了提示词,现在bot不会认为自己看的是视频分析,而是自己看的了

This commit is contained in:
tt-P607
2025-08-25 19:22:28 +08:00
parent 75b878d692
commit 0b237bcab1

View File

@@ -1010,6 +1010,11 @@ class DefaultReplyer:
prompt_info = results_dict["prompt_info"]
cross_context_block = results_dict["cross_context"]
# 检查是否为视频分析结果,并注入引导语
if target and ("[视频内容]" in target or "好的,我将根据您提供的" in target):
video_prompt_injection = "\n请注意,以上内容是你刚刚观看的视频,请以第一人称分享你的观后感,而不是在分析一份报告。"
memory_block += video_prompt_injection
keywords_reaction_prompt = await self.build_keywords_reaction_prompt(target)
if extra_info: