Skip to main content

分析群聊记录,生成近期讨论话题的总结。

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-whats-talk-gemini

✨ 分析群聊记录,生成近期讨论话题的总结。 ✨

GitHub stars license pypi python

📖 介绍

通过指令获取当前群聊近期讨论内容的总结,或者将群聊加入推送列表定时进行话题总结。

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-whats-talk-gemini
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-whats-talk-gemini
pdm
pdm add nonebot-plugin-whats-talk-gemini
poetry
poetry add nonebot-plugin-whats-talk-gemini
conda
conda install nonebot-plugin-whats-talk-gemini

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入

plugins = ["nonebot_plugin_whats_talk_gemini"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
wt_ai_keys Gemini API Key, 可填入多个key, 格式为["xxx","xxx"]
wt_base_url "https://generativelanguage.googleapis.com/v1beta" API地址,兼容OpenAI格式, 可填入多个key, 格式为["xxx","xxx"]
wt_model "gemini-flash-latest" 总结使用的AI模型
wt_thinking None 是否开启思考模式,None=不传递,True=开启,False=显式关闭
wt_proxy 访问Gemini使用的代理,格式为"http://<ip>:<port>"
wt_history_lens 1000 总结使用的群聊条数
wt_max_tokens 2000 总结输出的最大字数
wt_push_cron "0 14,22 * * *" 定时推送的时间,只支持Cron表达式
wt_group_list 定时推送的群列表

🕹️ 使用

指令表

指令 权限 需要@ 范围 说明
他们在聊什么/群友在聊什么 群员 群聊 获取当前群聊的讨论总结

🎉 鸣谢

感谢大橘提供的prompt以及插件灵感

同时感谢以下开发者对本插件作出的贡献:

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_whats_talk_gemini-0.0.7.tar.gz (7.6 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file nonebot_plugin_whats_talk_gemini-0.0.7.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_whats_talk_gemini-0.0.7.tar.gz
Algorithm Hash digest
SHA256 6fe204cc9393998e1be2d57284f64dc68e01d46b3773590fb7a7128e4ced66d9
MD5 d2e7d25047cd35302247f0d7cbaa9bd3
BLAKE2b-256 0371bf019027585587aef7f045eca9040db818886aa2c47f2ddc7962f5010a09

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_whats_talk_gemini-0.0.7.tar.gz:

Publisher: pypi-publish.yml on hakunomiko/nonebot-plugin-whats-talk-gemini

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_whats_talk_gemini-0.0.7-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_whats_talk_gemini-0.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 1fb99a7504891c51e557c9490869836841dbd6d444d5f79eb2737684c23d3976
MD5 a9ff5f9f7713b74e89dcf563bfccee34
BLAKE2b-256 e31f5a6bf0a8198ddb12d31394aee9d4dae620ef0b6dd65994d946b2409e2abc

See more details on using hashes here.

Provenance

The following attestation bundles were made for nonebot_plugin_whats_talk_gemini-0.0.7-py3-none-any.whl:

Publisher: pypi-publish.yml on hakunomiko/nonebot-plugin-whats-talk-gemini

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