Skip to main content

基于 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-1.5-flash 模型名称
proxy None 代理设置
summary_max_length 2000 总结最大长度
summary_min_length 50 总结最小长度
summary_cool_down 0 总结冷却时间(0即无冷却,针对人,而非群)
time_out 120 API 请求超时时间
summary_in_png False 总结是否以图片形式发送

其中,gemini_key为必填项,用于调用Gemini接口。若需要使用OpenAI兼容API则需要配置 openai_base_url 、 openai_api_key 与 summary_model。

🕹️ 使用

总结 [消息数量] :生成该群最近消息数量的内容总结

总结 [@群友] [消息数量] :生成指定群友相关内容总结

注:默认总结消息数量范围50~2000,使用无冷却时间

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_summary_group-0.6.0.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_summary_group-0.6.0-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_summary_group-0.6.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_summary_group-0.6.0.tar.gz
Algorithm Hash digest
SHA256 c1a42d5bc12e60189a9eae2e76b53a8fd7c5af8aff9146f59ddfc233f2098980
MD5 c8c14ad553428d75dc28678545d21f02
BLAKE2b-256 d9992ddacb73f5c2f13e972f97c6c1b57428155b9f61d722a642d6f07b8b557b

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_summary_group-0.6.0.tar.gz:

Publisher: python-publish.yml on StillMisty/nonebot_plugin_summary_group

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file nonebot_plugin_summary_group-0.6.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_summary_group-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8fb8b0e2853f52f855c5f5fbe0066dcbc9abe6c08ae7ac37f9ca3c1aaffe7c33
MD5 260f3d2d62d3c6ed3c7db6f02f373630
BLAKE2b-256 ae656d0152ec7b744228cab0210113c791331c094d55bf4a7bb23023715691e9

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_summary_group-0.6.0-py3-none-any.whl:

Publisher: python-publish.yml on StillMisty/nonebot_plugin_summary_group

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page