牛牛画画 pallas-plugin-draw
提供群内 AI 生图与参考图改图能力。
安装方式
需已安装 Pallas-Bot ≥ 4.0。
推荐直接在控制台插件商店安装,或在本体项目中执行:
uv run pallas ext install pallas-plugin-draw
也可单独安装本包:
uv pip install pallas-plugin-draw
怎么使用
群内 AI 生图;可纯文字或带参考图(附图/回复图)。依赖画画网关,次数受限。
用户命令
| 口令 / 触发 | 场景 | 说明 |
|---|---|---|
牛牛画画 … |
群内 | 按描述生图或改图 |
命令权限
| 命令 ID | 默认等级 |
|---|---|
draw.draw |
所有人 |
详细用法、限制条件和可用范围以帮助为主。
配置项
WebUI 插件 → 牛牛画画 或 服务网关 / 连通性;字段前缀为 pallas_image_*(历史命名,见文档站)。
完整键:本仓库 config.py
排障
| 现象 | 处理 |
|---|---|
| 失败提示 | 看返回文案;用 牛牛连通 测网关 |
| 次数用尽 | 等待重置或调配额 |
实现
关键文件:
src/pallas_plugin_draw/__init__.py:注册画画命令与插件元数据。src/pallas_plugin_draw/config.py:定义画画网关与限制配置。
实现要点:
- 默认在 Bot 进程内直连配置的画画网关(
plugin_runtime);可选ai_service_runtime经 AI Runtime(兼容旧部署)。 - 支持纯文本生成与带参考图的改图路径。
- 结果依赖外部画图网关,失败时以返回文案和连通性为主要事实源。
相关链接
| 说明 | 链接 |
|---|---|
| 牛牛画画 · 用户文档 | 文档站 · draw |
| 插件开发入门 | develop/plugin/getting-started |
Metadata
Release files for pallas-plugin-draw 4.0.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pallas_plugin_draw-4.0.17.tar.gz | 2.5 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pallas_plugin_draw-4.0.17-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 2.5 MB
Release files / pallas_plugin_draw-4.0.17.tar.gz
| Download URL | pallas_plugin_draw-4.0.17.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
0a24433119678dd0eecf6d180542c8cc26bde9849270295f23a6df86fc452861
|
|
BLAKE2b-256 checksum How to use checksums |
c2cc7bd8e8883a67c671e108fbe26c4a17af19bd78f232226ac0cccb4de6c58d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency logRelease files / pallas_plugin_draw-4.0.17-py3-none-any.whl
| Download URL | pallas_plugin_draw-4.0.17-py3-none-any.whl |
|---|---|
| Size | 63.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be99132cf2f1671cb5324ca7639aeca5700caa98abc7c09ca5986e3909f85903
|
|
BLAKE2b-256 checksum How to use checksums |
3601c28db88a531fc44eabbc410d58d96bbfea9390fb5bfb8643eeecc8fdcbe8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 20, 2026.
Transparency log