feat: support send knowledge base image

This commit is contained in:
zhayujie
2023-11-17 16:27:44 +08:00
parent 5ad53c2b9c
commit 374cd5dbb8
5 changed files with 24 additions and 9 deletions
+1
View File
@@ -175,6 +175,7 @@ class ChatChannel(Channel):
if e_context.is_break():
context["generate_breaked_by"] = e_context["breaked_by"]
if context.type == ContextType.TEXT or context.type == ContextType.IMAGE_CREATE: # 文字和图片消息
context["channel"] = e_context["channel"]
reply = super().build_reply_content(context.content, context)
elif context.type == ContextType.VOICE: # 语音消息
cmsg = context["msg"]