mirror of https://github.com/Mai-with-u/MaiBot.git
优化表情包描述提示词
parent
8c49b153f9
commit
2691f207f2
|
|
@ -174,7 +174,7 @@ class EmojiManager:
|
|||
async def _get_emoji_discription(self, image_base64: str) -> str:
|
||||
"""获取表情包的标签"""
|
||||
try:
|
||||
prompt = '这是一个表情包,使用中文简洁的描述一下表情包的内容和表情包所表达的情感'
|
||||
prompt = '这是一个表情包,使用中文简洁地描述一下表情包的内容、表情包上的文字和表情包所表达的情感'
|
||||
|
||||
content, _ = await self.vlm.generate_response_for_image(prompt, image_base64)
|
||||
logger.debug(f"输出描述: {content}")
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ class ResponseGenerator:
|
|||
"""提取情感标签"""
|
||||
try:
|
||||
prompt = f'''请根据他的发言,从"happy,angry,sad,surprised,disgusted,fearful,neutral"中选出最匹配的1个情感标签并输出
|
||||
只输出标签就好,不要输出其他内容:
|
||||
仅输出标签,不要输出其他内容:
|
||||
性格:{global_config.PROMPT_PERSONALITY[0]}
|
||||
发言:{content}
|
||||
输出:
|
||||
|
|
|
|||
Loading…
Reference in New Issue