": { "message": "Your account currently does not have permission to use the visu...

2026年01月05日 04:14 状态: processing

🚨 错误信息

"error": { "message": "Your account currently does not have permission to use the visual understanding capability of doubao-seed-1-8. For details, please contact platform customer service. Request id: 0217675576291668a58463ef17b425f3abf24ab17dedfd64a299d", "type": "rix_api_error", "param": "image_url", "code": "AccessDenied" } } at handleAPIError (E:\neuro\my-neuro-main\live-2d\js\api-utils.js:89:11) at async LLMClient.chatCompletion (E:\neuro\my-neuro-main\live-2d\js\ai\llm-client.js:81:17) at async VoiceChatFacade.sendToLLM (E:\neuro\my-neuro-main\live-2d\js\ai\llm-handler.js:168:34) at async AutoChatModule.executeChat (E:\neuro\my-neuro-main\live-2d\js\live\auto-chat.js:107:12)

🤖 AI解决方案

好的,我是一名资深工程师。以下是针对您提供的报错信息的详细分析:

分析流程

1. 错误翻译


``json
原文:Your account currently does not have permission to use the visual understanding capability of doubao-seed-1-8.
译文:您的账户当前没有权限使用
doubao-seed-1-8 模型的视觉理解能力。
`

2. 原因分析


这是一个 平台权限错误,而非代码逻辑或语法错误。

  • 根本原因:您的 API 账户/密钥绑定的服务套餐或权限列表中,未包含 调用豆包 seed 系列模型的图像理解(多模态)功能

  • 错误位置:代码尝试向豆包 API 发送包含图像 URL (param: "image_url") 的请求时,被平台权限系统拦截。从堆栈追踪来看,错误发生在 llm-client.js 中的 chatCompletion 方法调用时。
  • 3. 解决方案


    代码本身无需修改,问题出在账户配置或API调用方式上。请按以下步骤操作:

  • 联系平台客服:根据错误提示,您需要联系豆包(Doubao)API平台的客户服务。

  • 查询与开通

  • - 向客服提供您的 账户ID请求ID (
    Request id: 0217675576291668a58463ef17b425f3abf24ab17dedfd64a299d)。
    - 咨询如何为您的账户开通
    doubao-seed-1-8 或类似具有视觉能力的模型的调用权限。
    - 确认相关功能的计费方式
  • 临时代码规避方案:在权限开通前,您可以在代码中添加检查,避免在无权时发送图像。

  • `javascript
    // 在调用 LLMClient.chatCompletion 之前进行检查
    async function sendToLLM(message, imageUrl) {
    // 如果没有图像权限,则仅发送文本(根据您的业务逻辑调整)
    // 或者,可以在此处抛出一个更友好的错误提示给用户
    if (imageUrl && !hasVisionPermission) { //
    hasVisionPermission` 需要您自己维护状态
    console