nonebot_plugin_suggarex_cf
Cloudflare Workers AI 协议适配器,用于 SuggarChat
为 SuggarChat 提供 Cloudflare Workers AI 接入支持
📦 安装
提供两种安装方式:
-
方法一(推荐):
nb plugin install nonebot-plugin-suggarex-cf
-
方法二(手动安装):
pip install nonebot_plugin_suggarex_cf
若使用方法二,还需在
pyproject.toml中手动添加插件名:plugins = ["nonebot_plugin_suggarex_cf"]
⚙️ 配置
在配置文件中新增了以下字段:
| 配置项 | 说明 | 默认值 |
|---|---|---|
cf_user_id |
Cloudflare Workers AI 用户 ID,请前往 Workers AI 控制台 获取 | null |
🚀 使用说明
将 Suggar 配置文件中的 protocol 字段设为:
protocol = "cf"
并配置好 token 与模型名称。模型字段填写 Cloudflare Workers AI 的文本生成模型 ID,例如:
model = "llama-3.2-xxxx"
无需使用 @ 进行拼接。具体参数与格式请参考 SuggarChat 官方文档。
如果你有任何建议或问题,欢迎提 Issue 或 PR!
Metadata
Release files for nonebot_plugin_suggarex_cf 2.0.0
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_suggarex_cf-2.0.0.tar.gz | 16.3 kB | Without provenance | Details for nonebot_plugin_suggarex_cf-2.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_suggarex_cf-2.0.0-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_suggarex_cf-2.0.0-py3-none-any.whl |
Total release size: 32.7 kB
Release files / nonebot_plugin_suggarex_cf-2.0.0.tar.gz
| Download URL | nonebot_plugin_suggarex_cf-2.0.0.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7769cdf7e1ebe3d1ce0d3e90e58a06537d9e92f7fb2858c844f43c731bc175ac
|
|
BLAKE2b-256 checksum How to use checksums |
12e7fc68a8d1bc5cd85df350555695d2c64cea71e8577fd51081dc06d39d5354
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.6
|
Release files / nonebot_plugin_suggarex_cf-2.0.0-py3-none-any.whl
| Download URL | nonebot_plugin_suggarex_cf-2.0.0-py3-none-any.whl |
|---|---|
| Size | 16.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
570bb81d71b69efc41b5f286d10b27d731642a8cfcc90835497394d5148fda15
|
|
BLAKE2b-256 checksum How to use checksums |
b76fab7b08a973a20f612fb98f38cd89fa3d5c0e65c3df70936782fd386a4d4c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.6
|
Security for nonebot_plugin_suggarex_cf 2.0.0
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.