基于Nonebot2,使用Gemini分析群聊记录,生成讨论内容的总结。
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-1.5-flash | 模型名称 |
| proxy | 否 | None | 代理设置 |
| summary_max_length | 否 | 2000 | 总结最大长度 |
| summary_min_length | 否 | 50 | 总结最小长度 |
| summary_cool_down | 否 | 0 | 总结冷却时间(0即无冷却,针对人,而非群) |
其中,gemini_key为必填项,用于调用Gemini接口。若需要使用OpenAI兼容API则需要配置 openai_base_url 、 openai_api_key 与 summary_model。
🕹️ 使用
总结 [消息数量] :生成该群最近消息数量的内容总结
总结 [@群友] [消息数量] :生成指定群友相关内容总结
注:默认总结消息数量范围50~2000,使用无冷却时间
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.5.0.tar.gz.
File metadata
- Download URL: nonebot_plugin_summary_group-0.5.0.tar.gz
- Upload date:
- Size: 14.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7a6715fe5f5495fe0e73a9aee1bfbb088771fa20b2cd677444a627c967d0aa04
|
|
| MD5 |
846f5a2670a3150ecf4ce66b65b33812
|
|
| BLAKE2b-256 |
f9c5b27cc645690a9c4c07b0adf72ec6c9daf4c85acaa9e55d0f58b31afe6d00
|
Provenance
The following attestation bundles were made for nonebot_plugin_summary_group-0.5.0.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.5.0.tar.gz -
Subject digest:
7a6715fe5f5495fe0e73a9aee1bfbb088771fa20b2cd677444a627c967d0aa04 - Sigstore transparency entry: 160263507
- Sigstore integration time:
-
Permalink:
StillMisty/nonebot_plugin_summary_group@4773e6f90e8a265e1f6cb3f2f82694985100bd37 -
Branch / Tag:
refs/tags/0.5.0 - Owner: https://github.com/StillMisty
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4773e6f90e8a265e1f6cb3f2f82694985100bd37 -
Trigger Event:
release
-
Statement type:
File details
Details for the file nonebot_plugin_summary_group-0.5.0-py3-none-any.whl.
File metadata
- Download URL: nonebot_plugin_summary_group-0.5.0-py3-none-any.whl
- Upload date:
- Size: 14.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4297798b2d6b31022c282588174393acee0a2959f4f9691fe8f55861b395f097
|
|
| MD5 |
89c16e69741b8e1700e8a361d4ea9f3e
|
|
| BLAKE2b-256 |
cb388f3ffdbbf666553eedc6299752102dc161b08d00be27eb3f5433f7d199d4
|
Provenance
The following attestation bundles were made for nonebot_plugin_summary_group-0.5.0-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.5.0-py3-none-any.whl -
Subject digest:
4297798b2d6b31022c282588174393acee0a2959f4f9691fe8f55861b395f097 - Sigstore transparency entry: 160263508
- Sigstore integration time:
-
Permalink:
StillMisty/nonebot_plugin_summary_group@4773e6f90e8a265e1f6cb3f2f82694985100bd37 -
Branch / Tag:
refs/tags/0.5.0 - Owner: https://github.com/StillMisty
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@4773e6f90e8a265e1f6cb3f2f82694985100bd37 -
Trigger Event:
release
-
Statement type: