优化情感标签提取提示词,增加性格信息

pull/125/head
XBC_D2O 2025-03-09 12:12:02 +08:00
parent f3f75cd320
commit 8c49b153f9
1 changed files with 3 additions and 2 deletions

View File

@ -132,9 +132,10 @@ class ResponseGenerator:
async def _get_emotion_tags(self, content: str) -> List[str]:
"""提取情感标签"""
try:
prompt = f'''从以下内容中,从"happy,angry,sad,surprised,disgusted,fearful,neutral"中选出最匹配的1个情感标签并输出
prompt = f'''根据他的发言,从"happy,angry,sad,surprised,disgusted,fearful,neutral"中选出最匹配的1个情感标签并输出
只输出标签就好不要输出其他内容:
内容{content}
性格{global_config.PROMPT_PERSONALITY[0]}
发言{content}
输出
'''
content, _ = await self.model_v25.generate_response(prompt)