适用于 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"
cd_time = 300 # 技能冷却时间,以秒为单位
image_count: int = 3 # 画画的图片数量
文心的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.2.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 814da0801d8175ae49999d5d162e444d37eef18cc9e74d4336fa814b8de63595 |
|
MD5 | 6a7858cc8b0069936a29fc61e0fc82c6 |
|
BLAKE2b-256 | 83328a9f2e9b383f375135d91bddeaca14af7ecb65a96c51de5927aec27eed8a |
Close
Hashes for nonebot_plugin_drawer-0.2.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd47d9a197412303d3c47491c8b09fa1d337df227ec425d12ddc18b5cdae644b |
|
MD5 | 912fb494bd9a97dce67790caf39e8d26 |
|
BLAKE2b-256 | e5b9f3ba1d809c2f3f9662185190907d88a1872fd759d62f6b71fbabdd92f73c |