40 lines
1.5 KiB
TOML
40 lines
1.5 KiB
TOML
# ====== 插件注册信息(控制加载方式) ======
|
||
[workers]
|
||
type = "doubao"
|
||
module = "plugins.doubao"
|
||
factory = "create_workers"
|
||
cleanup = "cleanup"
|
||
count = 0
|
||
|
||
[worker]
|
||
name = "doubao"
|
||
version = "0.1.0"
|
||
description = "火山引擎豆包视觉理解 worker"
|
||
config_version = "1.0"
|
||
defaults = { method = "POST", timeout = 30.0, auth_required = false }
|
||
|
||
[worker.registration]
|
||
router_prefix = "/doubao"
|
||
tags = ["vision", "ai"]
|
||
|
||
# is_aicc = true 时启用 AICC 安全通信(端云互信),使用 AsyncOpenAI + AsyncSecureHttpClient
|
||
# is_aicc = false 时使用标准 Ark SDK(AsyncArk),默认 false
|
||
|
||
# ====== Worker 运行时配置(由 lifespan_setup 传递给 create_workers) ======
|
||
[workers.config]
|
||
# api_key 请勿提交到仓库:留空时从环境变量 VOLC_ACCESSKEY 读取(代码中兜底)
|
||
api_key = "PLACEHOLDER-REPLACE-WITH-REAL-DOUBAO-KEY"
|
||
base_url = "https://ark.cn-beijing.volces.com/api/v3"
|
||
model = "doubao-seed-evolving"
|
||
|
||
# AICC 模式专用配置(按需启用):
|
||
# is_aicc = true
|
||
# api_key = "" # AICC 模式的 api_key 同样经 VOLC_ACCESSKEY 提供,勿入库
|
||
# base_url = "https://<gateway-host>/api/v3"
|
||
# model = "ep-xxx"
|
||
# ra_url = "" # 远程证明地址(独立于 base_url 时配置)
|
||
# ra_service_name = "AICC.ConfidentialInference"
|
||
# ra_policy_id = "router_policy"
|
||
# ak = "" # 火山引擎 AK(TOP 网关鉴权模式)
|
||
# sk = "" # 火山引擎 SK(TOP 网关鉴权模式)
|