typing和防炸

This commit is contained in:
Windpicker-owo
2025-09-03 21:36:22 +08:00
parent 51aad4f952
commit a20dbbdfcb
3 changed files with 4 additions and 4 deletions

View File

@@ -739,7 +739,7 @@ class EmojiManager:
emoji = await self.get_emoji_from_manager(emoji_hash)
if emoji and emoji.emotion:
logger.info(f"[缓存命中] 从内存获取表情包描述: {emoji.emotion}...")
return emoji.emotion
return ",".join(emoji.emotion)
# 如果内存中没有,从数据库查找
try:

View File

@@ -39,7 +39,7 @@ def init_prompt():
{identity_block}
{custom_prompt_block}
{chat_context_description},以下是具体的聊天内容,其中[mxxx]是消息id
{chat_context_description},以下是具体的聊天内容。
{chat_content_block}
{moderation_prompt}