基于 Nonebot2,使用 AI 分析群聊记录,生成讨论内容的总结。
Project description
nonebot_plugin_summary_group
📖 介绍
基于Nonebot2,使用 AI 分析群聊记录,生成讨论内容的总结,亦或是总结特定人或事。
💿 安装
使用nb-cli安装插件
nb plugin install nonebot_plugin_summary_group
使用pip安装插件
pip install nonebot_plugin_summary_group
⚙️ 配置
如无特殊需求,仅需在env文件中配置必填项。
| 配置项 | 必填 | 默认 | 说明 |
|---|---|---|---|
| gemini_key | 与OpenAI二选一 | None | gemini接口密钥 |
| openai_base_url | 与Gemini二选一 | None | openai接口地址 |
| openai_api_key | 与Gemini二选一 | None | openai接口密钥 |
| summary_model | 是 | gemini-2.5-flash | 模型名称 |
| proxy | 否 | None | 代理设置 |
| summary_max_length | 否 | 1000 | 总结最大长度 |
| summary_min_length | 否 | 50 | 总结最小长度 |
| summary_cool_down | 否 | 0 | 总结冷却时间(0即无冷却,针对人,而非群) |
| time_out | 否 | 120 | API 请求超时时间 |
| summary_in_png | 否 | False | 总结是否以图片形式发送 |
| summary_max_queue_size | 否 | 10 | 请求模型总结队列最大大小 |
| summary_queue_timeout | 否 | 300 | 请求模型总结队列等待超时时间(秒) |
| summary_queue_workers | 否 | 2 | 最大并发请求模型总结 API 数 |
- 使用Gemini需要配置 gemini_key 与 summary_model。
- 使用OpenAI兼容的API则需要配置 openai_base_url 、 openai_api_key 与 summary_model。
若同时配置Gemini与OpenAI,则优先使用Gemini。
使用nonebot_plugin_htmlrender渲染图片,为节省不必要的消耗,此包不会作为该项目依赖,需要自行安装并设置summary_in_png=True以使用图片发送。
nb plugin install nonebot_plugin_htmlrender
🕹️ 使用
总结 [消息数量] [特定内容?] :生成该群最近消息数量的总结或指定内容的总结,特定内容为可选项。
总结定时 [时间] [最少消息数量?=summary_max_length] :定时生成消息数量的内容总结,时间:0~23,最少消息数量:默认为总结最大长度,每群的定时总结独立计算,默认不启用。
总结定时取消 :取消本群的定时内容总结。
🙏 感谢
github-markdown-css - 用于美化Markdown文档
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file nonebot_plugin_summary_group-0.7.11.tar.gz.
File metadata
- Download URL: nonebot_plugin_summary_group-0.7.11.tar.gz
- Upload date:
- Size: 24.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0216c177254aacd293b1c8203a9caf4b13ad17cda860846a1a62c369390b7d86
|
|
| MD5 |
8150ee5e72cacebd862eb2bfb8a68d1a
|
|
| BLAKE2b-256 |
c1850e104feef6ede048fc7379e3cae38a1683179cb4bded9fc72fd157cf313b
|
Provenance
The following attestation bundles were made for nonebot_plugin_summary_group-0.7.11.tar.gz:
Publisher:
python-publish.yml on StillMisty/nonebot_plugin_summary_group
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_summary_group-0.7.11.tar.gz -
Subject digest:
0216c177254aacd293b1c8203a9caf4b13ad17cda860846a1a62c369390b7d86 - Sigstore transparency entry: 350623787
- Sigstore integration time:
-
Permalink:
StillMisty/nonebot_plugin_summary_group@6daedef101d948336c6ade4caaf8f2a761b83d87 -
Branch / Tag:
refs/tags/0.7.11 - Owner: https://github.com/StillMisty
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6daedef101d948336c6ade4caaf8f2a761b83d87 -
Trigger Event:
release
-
Statement type:
File details
Details for the file nonebot_plugin_summary_group-0.7.11-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_summary_group-0.7.11-py3-none-any.whl
- Upload date:
- Size: 23.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dbc7ce745116efca6194543770c173feb669c9fa2c105ea2753308e848b3bef5
|
|
| MD5 |
32051f90ed87392e1c2ac5d1b7ac8d99
|
|
| BLAKE2b-256 |
9cf0e038b63414eb55ce8a15c24bc92bc17b5b32ac170322cf7fd0b1af338d83
|
Provenance
The following attestation bundles were made for nonebot_plugin_summary_group-0.7.11-py3-none-any.whl:
Publisher:
python-publish.yml on StillMisty/nonebot_plugin_summary_group
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
nonebot_plugin_summary_group-0.7.11-py3-none-any.whl -
Subject digest:
dbc7ce745116efca6194543770c173feb669c9fa2c105ea2753308e848b3bef5 - Sigstore transparency entry: 350623796
- Sigstore integration time:
-
Permalink:
StillMisty/nonebot_plugin_summary_group@6daedef101d948336c6ade4caaf8f2a761b83d87 -
Branch / Tag:
refs/tags/0.7.11 - Owner: https://github.com/StillMisty
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@6daedef101d948336c6ade4caaf8f2a761b83d87 -
Trigger Event:
release
-
Statement type: