修改了提示词,现在bot不会认为自己看的是视频分析,而是自己看的了
This commit is contained in:
@@ -1010,6 +1010,11 @@ class DefaultReplyer:
|
|||||||
prompt_info = results_dict["prompt_info"]
|
prompt_info = results_dict["prompt_info"]
|
||||||
cross_context_block = results_dict["cross_context"]
|
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)
|
keywords_reaction_prompt = await self.build_keywords_reaction_prompt(target)
|
||||||
|
|
||||||
if extra_info:
|
if extra_info:
|
||||||
|
|||||||
Reference in New Issue
Block a user