适用于 Nonebot2 的AI画画插件(对接文心大模型API)
Project description
nonebot-plugin-drawer
基于文心大模型的AI机器人画画插件。
前提: nonebot2的部署
这里推荐两篇机器人部署教程
1.https://blog.csdn.net/weixin_47113651/article/details/121353191
2.https://zhuanlan.zhihu.com/p/371264976
通过nb-cli安装(推荐)
nb plugin install nonebot-plugin-drawer
通过pip安装
1.pip install nonebot-plugin-drawer 进行安装
2.在bot.py添加nonebot.load_plugin('nonebot_plugin_drawer')
配置env.*
请在env.*配置文件中加入如下两行
wenxin_ak = "xxxxxxxxxxxxxxxx"
wenxin_sk = "xxxxxxxxxxxxxxxx"
wenxin_cd_time = 300 # 技能冷却时间,以秒为单位
wenxin_image_count = 3 # 画画的图片数量
wenxin_manager_list = ["123456789", "98765432"] # 管理员列表(不触发冷却时间限制)
文心的ak和sk申请链接:https://wenxin.baidu.com/younger/apiDetail?id=20008
使用方法
触发菜单命令:画画帮助
当前支持油画、水彩画、卡通画、粉笔画、儿童画、蜡笔画, 主要擅长风景写意画,请尽量给定比较明确的意象
如:油画 江上落日与晚霞
油画 江上落日与晚霞
油画 思乡
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot-plugin-drawer-0.3.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | e105fe6ec8276e48a042db3f0990515dacf1318c4f3cb434dfc39d49e496e13d |
|
MD5 | fc5b32bd7d025f6c1a08456baba977c1 |
|
BLAKE2b-256 | 82dd69982d3754e52f1c83db386cd8dc3e4c50aad4b69843c9a5ab53bbb3609b |
Close
Hashes for nonebot_plugin_drawer-0.3.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7adb71251fa41b8852c816f01c53615f773845aaca4015c2785aa39c232d975f |
|
MD5 | d712cac22af2530ec2741574a059a888 |
|
BLAKE2b-256 | 85bd06a846015fab69c4d5b08e776bc4a104f841ca359c5a9203dfd873f08456 |