Skip to content

Release v2.1.12#97

Merged
23q3 merged 2 commits into
mainfrom
dev
Jun 1, 2026
Merged

Release v2.1.12#97
23q3 merged 2 commits into
mainfrom
dev

Conversation

@github-actions

@github-actions github-actions Bot commented Jun 1, 2026

Copy link
Copy Markdown
Contributor

Release v2.1.12

This PR was automatically created by the release workflow.

Changes

  • 🐛 修复图片遗漏 - call_llm()遗漏当前消息图片导致模型无法读取用户上传的图片 #96

Files Updated

  • metadata.yaml - version updated
  • main.py - version in @register decorator updated
  • README.md - badge and latest version section updated

After merging, a tag will be automatically created and a GitHub Release will be published.

Sisyphbaous-DT-Project and others added 2 commits June 1, 2026 13:33
根因:LLMUtils.call_llm() 中 image_urls 收集逻辑存在两个缺陷:
1. image_count 默认值为 0,导致整个图片收集块被 if image_count 短路跳过;
2. 即使配置了 image_count > 0,遍历范围也仅限于 history_messages,不包含
   当前消息链(用户刚发送的消息),当前消息通过 outline_message_list() 转为
   纯文本后图片 URL 丢失。

修复:在收集历史图片之前,先从当前消息链 (event.message_obj.message) 中
提取 Image 组件加入 image_urls,不受 image_count 限制;历史图片收集改为
补充逻辑,受 image_count 限制,并添加 URL 去重防止重复传递。
@github-actions github-actions Bot added the release Release PR label Jun 1, 2026
@23q3 23q3 merged commit 50945ea into main Jun 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Release PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants