fix:无动作时卡入no_reply

This commit is contained in:
SengokuCola
2025-07-13 00:04:57 +08:00
parent 58ef00865d
commit 16c2a8b68e
5 changed files with 221 additions and 26 deletions

View File

@@ -116,10 +116,10 @@ class ImageManager:
if image_base64_processed is None:
logger.warning("GIF转换失败无法获取描述")
return "[表情包(GIF处理失败)]"
prompt = "这是一个动态图表情包每一张图代表了动态图的某一帧黑色背景代表透明使用1-2个词描述一下表情包表达的情感和内容简短一些输出一段平文本不超过15个字"
prompt = "这是一个动态图表情包每一张图代表了动态图的某一帧黑色背景代表透明使用1-2个词描述一下表情包表达的情感和内容简短一些输出一段平文本只输出1-2个词就好不要输出其他内容"
description, _ = await self._llm.generate_response_for_image(prompt, image_base64_processed, "jpg")
else:
prompt = "图片是一个表情包请用使用1-2个词描述一下表情包所表达的情感和内容简短一些输出一段平文本不超过15个字"
prompt = "图片是一个表情包请用使用1-2个词描述一下表情包所表达的情感和内容简短一些输出一段平文本只输出1-2个词就好不要输出其他内容"
description, _ = await self._llm.generate_response_for_image(prompt, image_base64, image_format)
if description is None: