feat: web ui channel optimization

This commit is contained in:
Saboteur7
2025-05-19 11:41:20 +08:00
parent 03fc8c1202
commit a1ae3804e3
2 changed files with 176 additions and 135 deletions

View File

@@ -13,7 +13,6 @@ from config import conf
import os
import mimetypes # 添加这行来处理MIME类型
class WebMessage(ChatMessage):
def __init__(
self,
@@ -57,7 +56,7 @@ class WebChannel(ChatChannel):
if reply.type in self.NOT_SUPPORT_REPLYTYPE:
logger.warning(f"Web channel doesn't support {reply.type} yet")
return
# 获取用户ID
user_id = context.get("receiver", None)
if not user_id: