Skip to main content

适用于SuggarChat插件的CloudFlare协议适配器实现,SuggarChat附属插件

Project description

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_suggarex_cf-1.1.4.post2.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file nonebot_plugin_suggarex_cf-1.1.4.post2.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_suggarex_cf-1.1.4.post2.tar.gz
Algorithm Hash digest
SHA256 f3ed8271e03be831a095ac0c8775fa006161d111add937a29b0b7eb2ae14fefc
MD5 9099ec252574a5a6bfae2afbfcca4f46
BLAKE2b-256 ff021d6de43f89eea2965504099ef850430d27e6fc08e7a0571fdecfdefa338e

See more details on using hashes here.

File details

Details for the file nonebot_plugin_suggarex_cf-1.1.4.post2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_suggarex_cf-1.1.4.post2-py3-none-any.whl
Algorithm Hash digest
SHA256 d7f26ce29e40338e5dc15776afd879b61189e348b941b15c4f813598ade377c9
MD5 a4a6289453298bd40510f043e4d1f3c6
BLAKE2b-256 12c1f40509e371e5ccd979d061004031928d734e9d6f05b9ce7a32038a74e188

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page