mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-14 08:26:07 +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
|
||||
)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user