docs: update docstrings for message metadata and reply fields; fix markdown capability check in format instructions; improve streaming card update logic in Feishu

This commit is contained in:
jxxghp
2026-05-13 08:36:27 +08:00
parent 7b4cb2097b
commit 19526146c5
4 changed files with 13 additions and 8 deletions
+2
View File
@@ -162,6 +162,8 @@ class StreamingHandler:
:param user_id: 用户ID
:param username: 用户名
:param title: 消息标题
:param original_message_id: 原始消息ID(如果是回复消息)
:param original_chat_id: 原始聊天ID(如果是回复消息)
"""
self._channel = channel
self._source = source
+1 -1
View File
@@ -312,7 +312,7 @@ class PromptManager:
根据渠道能力动态生成格式指令
"""
instructions = []
if ChannelCapability.RICH_TEXT not in caps.capabilities:
if ChannelCapability.MARKDOWN not in caps.capabilities:
instructions.append(
"- Formatting: Use **Plain Text ONLY**. The channel does NOT support Markdown."
)