Nonebot Plugin Kindness Lesson
可以只用一句话就生成恩情课文的 NoneBot 插件
使用方法
输入 恩情课文 <主题> 即可。其中,主题可以是一句话,也可以只是一个词。
例如,恩情课文 桐谷和人用超越系统限制的一击击落茅场晶彦。这句话中包含了重要的三个关键词:桐谷和人、超越系统限制的一击、茅场晶彦。大语言模型会主要根据这三个关键词生成恩情课文。
别忘了加上你配置的命令前缀
效果展示
安装方法
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-kindness-lesson
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-kindness-lesson
pdm
pdm add nonebot-plugin-kindness-lesson
poetry
poetry add nonebot-plugin-kindness-lesson
conda
conda install nonebot-plugin-kindness-lesson
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_kindness_lesson"]
配置
| 配置项 | 默认值 | 说明 |
|---|---|---|
KINDNESS_LESSON_MODEL |
gpt-4o-mini |
大语言模型 |
KINDNESS_LESSON_API_KEY |
无 | 大语言模型的 API Key |
KINDNESS_LESSON_BASE_URL |
https://api.openai.com/v1 |
大语言模型的 API Base URL |
KINDNESS_LESSON_PROXY |
无 | 代理地址 |
任何属于 OpenAI API 格式的 API 都可以使用。
| 模型 | 效果 | 备注 |
|---|---|---|
gemini-1.5-flash |
★☆☆☆☆ | 容易偏离主题,注意力不集中 |
gpt-4o-mini |
★★☆☆☆ | 达不到引人发笑的效果 |
gpt-4o |
☆☆☆☆☆ | 未测试,免费额度用完了 |
gemini-1.5-pro |
★★★★★ | 能根据主题进行更多联想 |
Gemini 的 API 并不是 OpenAI 格式的,这里使用了 uni-api 进行转换。如果你希望使用不属于 OpenAI 格式的 API,可以尝试使用这个项目进行转换。
欢迎 PR 添加更多模型
Metadata
Release files for nonebot-plugin-kindness-lesson 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_kindness_lesson-0.1.2.tar.gz | 5.9 kB | Without provenance | Details for nonebot_plugin_kindness_lesson-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_kindness_lesson-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_kindness_lesson-0.1.2-py3-none-any.whl |
Total release size: 13.1 kB
Release files / nonebot_plugin_kindness_lesson-0.1.2.tar.gz
| Download URL | nonebot_plugin_kindness_lesson-0.1.2.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ffbdc9a8673f6642b1c7279922e266f63cf1e33ca7880cdc0b6c89a42c2c1f1f
|
|
BLAKE2b-256 checksum How to use checksums |
0169db3b321f2c4b6fbd753a89ce2841847abfbff64f97c694cfc6deab6145d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.20.1 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Release files / nonebot_plugin_kindness_lesson-0.1.2-py3-none-any.whl
| Download URL | nonebot_plugin_kindness_lesson-0.1.2-py3-none-any.whl |
|---|---|
| Size | 7.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
16dbad6a8489e6ce320a7d4e9d713d590fef66cda7cad978e50b0d5346e5df5f
|
|
BLAKE2b-256 checksum How to use checksums |
2e623b455fc6244c43c51d34a08e7f5645be2db0376d8dfa8202729e3a15a9d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.20.1 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Security for nonebot-plugin-kindness-lesson 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.