nonebot-plugin-caiyunai
适用于 Nonebot2 的彩云小梦AI续写插件
安装
- 使用 nb-cli
nb plugin install nonebot_plugin_caiyunai
- 使用 pip
pip install nonebot_plugin_caiyunai
本插件使用了 go-cqhttp 的 send_group_forward_msg 和 send_private_forward_msg 接口 来发送合并转发消息,
发送私聊合并转发消息需要使用 v1.0.0-rc2 版本以上的 go-cqhttp
配置
需要在 .env.xxx 文件中添加彩云小梦apikey:
caiyunai_apikey=xxx
apikey获取:
前往 http://if.caiyunai.com/dream 注册彩云小梦用户;
注册完成后,F12打开开发者工具;
在控制台中输入 alert(localStorage.cy_dream_user) ,弹出窗口中的 uid 即为 apikey;
或者进行一次续写,在 Network 中查看 novel_ai 请求,Payload 中的 uid 项即为 apikey。
使用
触发方式:
以下命令需要加命令前缀 (默认为/),可自行设置为空
@机器人 续写/彩云小梦 xxx
示例:
特别感谢
- assassingyk/novel_ai_kai 适用hoshino的基于彩云小梦的小说AI续写插件
Metadata
Release files for nonebot-plugin-caiyunai 0.2.5
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_caiyunai-0.2.5.tar.gz | 6.0 kB | Without provenance | Details for nonebot_plugin_caiyunai-0.2.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_caiyunai-0.2.5-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_caiyunai-0.2.5-py3-none-any.whl |
Total release size: 12.6 kB
Release files / nonebot_plugin_caiyunai-0.2.5.tar.gz
| Download URL | nonebot_plugin_caiyunai-0.2.5.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
67159772dbdeecacb5a9f7059984ca2ac2b230f59640a663619a18e06ca7d317
|
|
BLAKE2b-256 checksum How to use checksums |
2ab95ea2bf6bff7a404a1fdbc1534294bc90d75df358120959c552c6ef0fa48e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Linux/5.4.72-microsoft-standard-WSL2
|
Release files / nonebot_plugin_caiyunai-0.2.5-py3-none-any.whl
| Download URL | nonebot_plugin_caiyunai-0.2.5-py3-none-any.whl |
|---|---|
| Size | 6.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1e85c83a4fbb7169387f235ade08a4da6792fab8348b04ce8308d0d248cd3bac
|
|
BLAKE2b-256 checksum How to use checksums |
456598ea0daa508bf7a097208447502c6a962f4abc30e20a06f579243d201741
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.13 CPython/3.10.4 Linux/5.4.72-microsoft-standard-WSL2
|
Security for nonebot-plugin-caiyunai 0.2.5
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.