mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-08-12 22:00:57 +00:00
增加微信聊天中图片获取能力,较之前的微信图片仅提供缩略图的情况,改善为获取微信聊天中实际图片大小,方便后续 ocr 或者 llm vision 识别聊天图片内容。
This commit is contained in:
@@ -89,6 +89,7 @@ class GewechatMessageConverter(adapter.MessageConverter):
|
||||
app_id=self.config["app_id"],
|
||||
xml_content=image_xml,
|
||||
token=self.config["token"],
|
||||
data_dir=self.config.get("data_dir", "/root/docker/gewechat/data/download"),
|
||||
image_type=2
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user