@wu529778790/open-im 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -110,11 +110,12 @@ export async function updateMessage(chatId, messageId, content, status, note, to
|
|
|
110
110
|
// 完成或错误时,显式移除停止按钮(使用空的 inline_keyboard)
|
|
111
111
|
opts.reply_markup = { inline_keyboard: [] };
|
|
112
112
|
// 添加日志,帮助诊断
|
|
113
|
-
log.info(`Updating message to ${status} status (removing stop button) for ${chatId}:${messageId}`);
|
|
113
|
+
log.info(`Updating message to ${status} status (removing stop button) for ${chatId}:${messageId}, content length: ${content.length}`);
|
|
114
114
|
}
|
|
115
115
|
// 流式输出时使用纯文本,避免 Markdown 解析导致内容减少
|
|
116
|
-
//
|
|
117
|
-
|
|
116
|
+
// 完成时也暂时使用纯文本,避免 Markdown 解析错误
|
|
117
|
+
// TODO: 等待 Markdown 预处理稳定后再启用 Markdown
|
|
118
|
+
const shouldParseMarkdown = false; // 暂时禁用 Markdown 解析
|
|
118
119
|
let retries = 0;
|
|
119
120
|
const maxRetries = 2; // 减少重试次数,但增加等待时间
|
|
120
121
|
while (retries <= maxRetries) {
|