mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-09 15:26:03 +00:00
增加微信聊天中图片获取能力,较之前的微信图片仅提供缩略图的情况,改善为获取微信聊天中实际图片大小,方便后续 ocr 或者 llm vision 识别聊天图片内容。
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user