modify: aibox_sophon_adapter

This commit is contained in:
2026-07-27 14:26:48 +08:00
parent 98ee0e29af
commit f95857f1f0
10 changed files with 97 additions and 3 deletions
+1
View File
@@ -1,6 +1,7 @@
[POST]
summary = "分析图片内容"
docstring = "发送图片(base64或路径)到豆包视觉模型,返回描述"
auth_required = false
params = [
"image_base64: str",
"prompt: str"
+3
View File
@@ -8,3 +8,6 @@ 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