mirror of
https://github.com/zhayujie/chatgpt-on-wechat.git
synced 2026-04-19 02:24:33 +08:00
feat: default close image summary
This commit is contained in:
@@ -26,7 +26,7 @@
|
|||||||
"enabled": true, # 文档总结和对话功能开关
|
"enabled": true, # 文档总结和对话功能开关
|
||||||
"group_enabled": true, # 是否支持群聊开启
|
"group_enabled": true, # 是否支持群聊开启
|
||||||
"max_file_size": 5000, # 文件的大小限制,单位KB,默认为5M,超过该大小直接忽略
|
"max_file_size": 5000, # 文件的大小限制,单位KB,默认为5M,超过该大小直接忽略
|
||||||
"type": ["FILE", "SHARING", "IMAGE"] # 支持总结的类型,分别表示 文件、分享链接、图片
|
"type": ["FILE", "SHARING", "IMAGE"] # 支持总结的类型,分别表示 文件、分享链接、图片,其中文件和链接默认打开,图片默认关闭
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
@@ -15,6 +15,6 @@
|
|||||||
"enabled": true,
|
"enabled": true,
|
||||||
"group_enabled": true,
|
"group_enabled": true,
|
||||||
"max_file_size": 5000,
|
"max_file_size": 5000,
|
||||||
"type": ["FILE", "SHARING", "IMAGE"]
|
"type": ["FILE", "SHARING"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -192,9 +192,7 @@ class LinkAI(Plugin):
|
|||||||
return False
|
return False
|
||||||
if context.kwargs.get("isgroup") and not self.sum_config.get("group_enabled"):
|
if context.kwargs.get("isgroup") and not self.sum_config.get("group_enabled"):
|
||||||
return False
|
return False
|
||||||
support_type = self.sum_config.get("type")
|
support_type = self.sum_config.get("type") or ["FILE", "SHARING"]
|
||||||
if not support_type:
|
|
||||||
return True
|
|
||||||
if context.type.name not in support_type:
|
if context.type.name not in support_type:
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|||||||
Reference in New Issue
Block a user