Files
chongming-config/workers/doubao/config.toml
T

39 lines
1.4 KiB
TOML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ====== 插件注册信息(控制加载方式) ======
[workers]
type = "doubao"
module = "plugins.doubao"
factory = "create_workers"
cleanup = "cleanup"
count = 3
[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 = "ark-b149df84-a057-4ca0-b1a0-82a22c4e3c70-32cde"
base_url = "https://ark.cn-beijing.volces.com/api/v3"
model = "doubao-seed-evolving"
# AICC 模式专用配置(按需启用):
# is_aicc = true
# api_key = "db04d42e-71e3-4119-abee-12ecc7ef5c34"
# base_url = "https://sd77a0f4ummt3i4vnems0.apigateway-cn-beijing.volceapi.com/api/v3"
# model = "ep-20260721154333-fre3bey"
# ra_url = "" # 远程证明地址(独立于 base_url 时配置)
# ra_service_name = "AICC.ConfidentialInference"
# ra_policy_id = "router_policy"
# ak = "" # 火山引擎 AK(TOP 网关鉴权模式)
# sk = "" # 火山引擎 SK(TOP 网关鉴权模式)