增加微信聊天中图片获取能力,较之前的微信图片仅提供缩略图的情况,改善为获取微信聊天中实际图片大小,方便后续 ocr 或者 llm vision 识别聊天图片内容。

This commit is contained in:
Ethan
2025-02-24 20:17:15 +08:00
parent f75ac292db
commit c86602ebaf
2 changed files with 20 additions and 9 deletions

View File

@@ -87,7 +87,9 @@ class GewechatMessageConverter(adapter.MessageConverter):
base64_str, image_format = await image.get_gewechat_image_base64(
gewechat_url=self.config["gewechat_url"],
app_id=self.config["app_id"],
xml_content=image_xml
xml_content=image_xml,
token=self.config["token"],
image_type=2
)
return platform_message.MessageChain([