mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 03:30:40 +00:00
fix(dingtalk): only suffix '(cont.)' on continuation chunks, not first (#2977)
This commit is contained in:
parent
418acc548b
commit
b6e8f89687
1 changed files with 3 additions and 2 deletions
|
|
@ -146,11 +146,12 @@ export class DingtalkChannel extends ChannelBase {
|
|||
const chunks = normalizeDingTalkMarkdown(text);
|
||||
const title = extractTitle(text);
|
||||
|
||||
for (const chunk of chunks) {
|
||||
for (let i = 0; i < chunks.length; i++) {
|
||||
const chunk = chunks[i]!;
|
||||
const body = {
|
||||
msgtype: 'markdown',
|
||||
markdown: {
|
||||
title: chunks.length > 1 ? `${title} (cont.)` : title,
|
||||
title: i === 0 ? title : `${title} (cont.)`,
|
||||
text: chunk,
|
||||
},
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue