{"id":25020619,"url":"https://github.com/stillmisty/nonebot_plugin_summary_group","last_synced_at":"2025-10-10T00:34:09.521Z","repository":{"id":275937662,"uuid":"911212427","full_name":"StillMisty/nonebot_plugin_summary_group","owner":"StillMisty","description":"基于 Nonebot2，使用 AI 分析群聊记录，生成讨论内容的总结。","archived":false,"fork":false,"pushed_at":"2025-09-22T10:44:09.000Z","size":251,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T12:17:23.930Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StillMisty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-01-02T13:52:13.000Z","updated_at":"2025-09-22T10:42:52.000Z","dependencies_parsed_at":null,"dependency_job_id":"c90956e1-f62b-452e-8066-a2bfba0eb117","html_url":"https://github.com/StillMisty/nonebot_plugin_summary_group","commit_stats":null,"previous_names":["stillmisty/nonebot_plugin_summary_group"],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/StillMisty/nonebot_plugin_summary_group","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StillMisty%2Fnonebot_plugin_summary_group","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StillMisty%2Fnonebot_plugin_summary_group/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StillMisty%2Fnonebot_plugin_summary_group/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StillMisty%2Fnonebot_plugin_summary_group/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StillMisty","download_url":"https://codeload.github.com/StillMisty/nonebot_plugin_summary_group/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StillMisty%2Fnonebot_plugin_summary_group/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002359,"owners_count":26083357,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-05T12:16:49.778Z","updated_at":"2025-10-10T00:34:09.516Z","avatar_url":"https://github.com/StillMisty.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://nonebot.dev/store/plugins\"\u003e\n    \u003cimg src=\"./docs/NoneBotPlugin.svg\" width=\"300\" alt=\"logo\"\u003e\n  \u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n\n# nonebot_plugin_summary_group\n\n\u003c/div\u003e\n\n## 📖 介绍\n\n基于Nonebot2，使用 AI 分析群聊记录，生成讨论内容的总结，亦或是总结特定人或事。\n\n## 💿 安装\n\n使用nb-cli安装插件\n\n```shell\nnb plugin install nonebot_plugin_summary_group\n```\n\n使用pip安装插件\n\n```shell\npip install nonebot_plugin_summary_group\n```\n\n## ⚙️ 配置\n\n如无特殊需求，仅需在`env`文件中配置必填项。\n\n|         配置项         |      必填      |       默认       |                   说明                    |\n| :--------------------: | :------------: | :--------------: | :---------------------------------------: |\n|       gemini_key       | 与OpenAI二选一 |       None       |              gemini接口密钥               |\n|    openai_base_url     | 与Gemini二选一 |       None       |              openai接口地址               |\n|     openai_api_key     | 与Gemini二选一 |       None       |              openai接口密钥               |\n|     summary_model      |       是       | gemini-2.5-flash |                 模型名称                  |\n|         proxy          |       否       |       None       |                 代理设置                  |\n|   summary_max_length   |       否       |       1000       |               总结最大长度                |\n|   summary_min_length   |       否       |        50        |               总结最小长度                |\n|   summary_cool_down    |       否       |        0         | 总结冷却时间（0即无冷却，针对人，而非群） |\n|        time_out        |       否       |       120        |             API 请求超时时间              |\n|     summary_in_png     |       否       |      False       |      总结是否以图片形式发送（重要）       |\n| summary_max_queue_size |       否       |        10        |         请求模型总结队列最大大小          |\n| summary_queue_timeout  |       否       |       300        |     请求模型总结队列等待超时时间(秒)      |\n| summary_queue_workers  |       否       |        2         |        最大并发请求模型总结 API 数        |\n\n- 使用Gemini需要配置 gemini_key 与 summary_model。\n- 使用OpenAI兼容的API则需要配置 openai_base_url 、 openai_api_key 与 summary_model。\n\n若同时配置Gemini与OpenAI，则优先使用Gemini。\n\n使用`nonebot_plugin_htmlrender`渲染图片，为节省不必要的消耗，此包不会作为该项目依赖，需要自行安装并设置`summary_in_png=True`以使用图片发送。\n\n``` shell\nnb plugin install nonebot_plugin_htmlrender\n```\n\n## 🕹️ 使用\n\n**总结 [消息数量] [特定内容?]** ：生成该群最近消息数量的总结或指定内容的总结，特定内容为可选项。\n\n**总结定时 [时间] [最少消息数量?=summary_max_length]** ：定时生成消息数量的内容总结，时间：0~23，最少消息数量：默认为总结最大长度，每群的定时总结独立计算，默认不启用。\n\n**总结定时取消** ：取消本群的定时内容总结。\n\n## 🙏 感谢\n\n[github-markdown-css](https://github.com/sindresorhus/github-markdown-css) - 用于美化Markdown文档\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstillmisty%2Fnonebot_plugin_summary_group","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstillmisty%2Fnonebot_plugin_summary_group","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstillmisty%2Fnonebot_plugin_summary_group/lists"}