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

This commit is contained in:
Ethan
2025-02-24 20:36:03 +08:00
parent 91ad7944de
commit e21a27ff23
3 changed files with 37 additions and 17 deletions
+1
View File
@@ -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
)
+7
View File
@@ -45,6 +45,13 @@ spec:
type: string
required: true
default: ""
- name: data_dir
label:
en_US: Data Directory
zh_CN: 数据目录
type: string
required: true
default: "/root/docker/gewechat/data/download"
execution:
python:
path: ./gewechat.py