feat: add conversationTitle to context enhancement

Pass inbound group titles into <dsh_im_source> without extra platform API lookups.
DingTalk uses conversationTitle; Telegram groups use chat.title.
This commit is contained in:
曜 星 2026-09-01 17:15:17 +08:00
parent 13fc85cdce
commit 7a68e94f54
11 changed files with 82 additions and 30 deletions

View file

@ -288,6 +288,10 @@ const EN = Object.freeze({
'查看群聊发送者昵称字段说明': 'View group sender name field details',
'查看私聊发送者昵称字段说明': 'View direct sender name field details',
'该字段不是每个渠道都能提供。当前消息没有发送者昵称时,即使已选择该字段,<dsh_im_source> 中也会省略 senderName。': 'This field is not available on every channel. If the current message has no sender name, <dsh_im_source> omits senderName even when the field is selected.',
'会话标题': 'Conversation title',
'查看群聊会话标题字段说明': 'View group conversation title field details',
'查看私聊会话标题字段说明': 'View direct conversation title field details',
'该字段不是每个渠道都能提供。钉钉群聊会带上群名。当前消息没有会话标题时,即使已选择该字段,<dsh_im_source> 中也会省略 conversationTitle。': 'This field is not available on every channel. DingTalk group chats include the group name. If the current message has no conversation title, <dsh_im_source> omits conversationTitle even when the field is selected.',
'机器人标识': 'Bot ID',
'增强提示词': 'Guidance',
'查看增强提示词使用说明': 'View guidance instructions',
@ -315,7 +319,7 @@ const EN = Object.freeze({
'上下文增强保存失败,请重试。': 'Could not save context enhancement. Try again.',
'请提交完整的上下文增强设置。': 'Submit the complete context enhancement settings.',
'群聊和私聊开关必须是布尔值。': 'Group and direct switches must be booleans.',
'来源字段只能选择已定义的五个字段。': 'Source fields must be chosen from the five defined fields.',
'来源字段只能选择已定义的六个字段。': 'Source fields must be chosen from the six defined fields.',
'保存中…': 'Saving…',
'未设置': 'Not set',
'工作区修改失败,请重试。': 'Could not update the workspace. Try again.',