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-2.0.0.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

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

nonebot_plugin_suggarex_cf-2.0.0-py3-none-any.whl (16.4 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_suggarex_cf-2.0.0.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_suggarex_cf-2.0.0.tar.gz
Algorithm Hash digest
SHA256 7769cdf7e1ebe3d1ce0d3e90e58a06537d9e92f7fb2858c844f43c731bc175ac
MD5 4e3bbcb48993c20c24bb089249f93a2d
BLAKE2b-256 12e7fc68a8d1bc5cd85df350555695d2c64cea71e8577fd51081dc06d39d5354

See more details on using hashes here.

File details

Details for the file nonebot_plugin_suggarex_cf-2.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_suggarex_cf-2.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 570bb81d71b69efc41b5f286d10b27d731642a8cfcc90835497394d5148fda15
MD5 b916229436b16f8645cf0f89bf06d258
BLAKE2b-256 b76fab7b08a973a20f612fb98f38cd89fa3d5c0e65c3df70936782fd386a4d4c

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