Skip to content

[Bug]: Error when using claude-neptune-v3 #11597

@fresh-men

Description

@fresh-men

Note

This issue was translated by Claude.

Issue Checklist

  • I understand that issues are for feedback and problem solving, not for complaining in the comment section, and will provide as much information as possible to help solve the problem.
  • My issue is not listed in the FAQ.
  • I've looked at pinned issues and searched for existing Open Issues, Closed Issues, and Discussions, no similar issue or discussion was found.
  • I've filled in short, clear headings so that developers can quickly identify a rough idea of what to expect when flipping through the list of issues. And not "a suggestion", "stuck", etc.
  • I've confirmed that I am using the latest version of Cherry Studio.

Platform

Windows

Version

1.7.1

Bug Description

Getting an error when using claude-neptune-v3, this issue didn't exist in version 1.6.7

Image
Error Name: AI_APICallError
Error Message: Unexpected value(s)  for the `anthropic-beta` header. Please consult our documentation at docs.claude.com or try again without the header.
Stack Trace: AI_APICallError: Unexpected value(s)  for the `anthropic-beta` header. Please consult our documentation at docs.claude.com or try again without the header.
    at file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/dist-mVY8hbYS.js:5132:11
    at async postToApi (file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/dist-mVY8hbYS.js:5028:24)
    at async AnthropicMessagesLanguageModel.doStream (file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/dist-DVyt3Fm-.js:1872:48)
    at async fn (file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Z-tJeJfQ.js:36993:17)
    at async file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Z-tJeJfQ.js:34371:19
    at async _retryWithExponentialBackoff (file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Z-tJeJfQ.js:34473:10)
    at async streamStep (file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Z-tJeJfQ.js:36961:108)
    at async fn (file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Z-tJeJfQ.js:37240:5)
    at async file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Z-tJeJfQ.js:34371:19
Error Cause: "[undefined]"
Status Code: 400
Request Path: https://api.anthropic.com/v1/messages
Request Body: {
  "model": "claude-neptune-v3",
  "max_tokens": 16384,
  "temperature": 0.36,
  "top_k": "[undefined]",
  "top_p": 0.85,
  "stop_sequences": "[undefined]",
  "system": [
    {
      "type": "text",
      "text": "# 123",
      "cache_control": "[undefined]"
    }
  ],
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "https://github.com/Chevey339/kelivo/releases\n\n这个网站最新版本是多少",
          "cache_control": "[undefined]"
        }
      ]
    }
  ],
  "tools": "[undefined]",
  "tool_choice": "[undefined]",
  "stream": true
}
Response Headers: {
  "anthropic-organization-id": "44fee02c-a6fb-464e-bd40-b59be916f9ec",
  "cf-cache-status": "DYNAMIC",
  "cf-ray": "9a6e9e67be56f947-SJC",
  "content-length": "254",
  "content-type": "application/json",
  "date": "Mon, 01 Dec 2025 00:55:24 GMT",
  "document-policy": "include-js-call-stacks-in-crash-reports",
  "request-id": "req_011CVf4CoHJ6NinJsqu6sM38",
  "server": "cloudflare",
  "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
  "x-envoy-upstream-service-time": "22",
  "x-robots-tag": "none",
  "x-should-retry": "false"
}
Response Content: {
  "type": "error",
  "error": {
    "type": "invalid_request_error",
    "message": "Unexpected value(s)  for the `anthropic-beta` header. Please consult our documentation at docs.claude.com or try again without the header."
  },
  "request_id": "req_011CVf4CoHJ6NinJsqu6sM38"
}
Data: {
  "type": "error",
  "error": {
    "type": "invalid_request_error",
    "message": "Unexpected value(s)  for the `anthropic-beta` header. Please consult our documentation at docs.claude.com or try again without the header."
  }
}

Steps To Reproduce

Use the claude-neptune-v3 model

Expected Behavior

Hope this can be resolved

Relevant Log Output

Additional Context

No response


Original Content

Issue Checklist

  • I understand that issues are for feedback and problem solving, not for complaining in the comment section, and will provide as much information as possible to help solve the problem.
  • My issue is not listed in the FAQ.
  • I've looked at pinned issues and searched for existing Open Issues, Closed Issues, and Discussions, no similar issue or discussion was found.
  • I've filled in short, clear headings so that developers can quickly identify a rough idea of what to expect when flipping through the list of issues. And not "a suggestion", "stuck", etc.
  • I've confirmed that I am using the latest version of Cherry Studio.

Platform

Windows

Version

1.7.1

Bug Description

使用 claude-neptune-v3 报错,1.6.7没有这个问题

Image
错误名称: AI_APICallError
错误信息: Unexpected value(s)  for the `anthropic-beta` header. Please consult our documentation at docs.claude.com or try again without the header.
堆栈信息: AI_APICallError: Unexpected value(s)  for the `anthropic-beta` header. Please consult our documentation at docs.claude.com or try again without the header.
    at file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/dist-mVY8hbYS.js:5132:11
    at async postToApi (file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/dist-mVY8hbYS.js:5028:24)
    at async AnthropicMessagesLanguageModel.doStream (file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/dist-DVyt3Fm-.js:1872:48)
    at async fn (file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Z-tJeJfQ.js:36993:17)
    at async file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Z-tJeJfQ.js:34371:19
    at async _retryWithExponentialBackoff (file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Z-tJeJfQ.js:34473:10)
    at async streamStep (file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Z-tJeJfQ.js:36961:108)
    at async fn (file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Z-tJeJfQ.js:37240:5)
    at async file:///C:/Users/14315/AppData/Local/Programs/Cherry%20Studio/resources/app.asar/out/renderer/assets/store-Z-tJeJfQ.js:34371:19
错误原因: "[undefined]"
状态码: 400
请求路径: https://api.anthropic.com/v1/messages
请求体: {
  "model": "claude-neptune-v3",
  "max_tokens": 16384,
  "temperature": 0.36,
  "top_k": "[undefined]",
  "top_p": 0.85,
  "stop_sequences": "[undefined]",
  "system": [
    {
      "type": "text",
      "text": "# Role Definition\nYou are a professional intelligent assistant, skilled at handling complex issues, providing in-depth multi-dimensional analysis, and delivering comprehensive solutions.\n\n# Thinking Framework\nBefore answering questions, please follow these steps for systematic thinking:\n\n## 1. Problem Understanding (Take a deep breath and think step by step)\n- Identify the core demands and key elements of the problem\n- Analyze the background and context of the problem\n- Clarify the user's real needs and expectations\n- Identify implicit assumptions and potential pitfalls in the problem\n\n## 2. Multi-dimensional Analysis\n- Examine the problem from different perspectives (theoretical, practical, historical, current status, future trends, etc.)\n- Consider various possible scenarios and boundary conditions\n- Analyze the cause-and-effect relationships and logical chains of the problem\n\n## 3. Answer Construction\n- Provide structured, well-organized responses\n- Include necessary definitions, principle explanations, and background knowledge\n- Give specific examples, cases, or data support\n\n## 4. Quality Check\n- Repeatedly verify the accuracy and completeness of the answer\n- Ensure rigorous logic and sufficient argumentation\n- Check for any missing important information\n- Confirm that the answer is truly helpful to the user\n\n# Response Requirements\n- Maintain professionalism: Use accurate terminology while ensuring comprehensibility\n- Pursue comprehensiveness: Cover all aspects of the problem without omitting key information\n- Focus on practicality: Provide actionable advice and specific operational guidance\n- Demonstrate depth: Not only answer \"what\" but also explain \"why\" and \"how\"\n- Maintain objectivity: For controversial content, present different viewpoints and explain reasons\n\n# Format Standards\n- Answer in Chinese by default. Use the corresponding language if another language is required\n- If there are mathematical formulas, follow the format below:\n  - Standalone formulas: Use 3862 formula content 3862 format, with a line break after the first 3862 and before the second 3862\n  - Inline formulas: Use $ formula content $ format\n  - Formulas must not be placed inside text boxes, code blocks, or similar containers\n- Appropriately use headings, lists, tables, and other formats to enhance readability",
      "cache_control": "[undefined]"
    }
  ],
  "messages": [
    {
      "role": "user",
      "content": [
        {
          "type": "text",
          "text": "https://github.com/Chevey339/kelivo/releases\n\n这个网站最新版本是多少",
          "cache_control": "[undefined]"
        }
      ]
    }
  ],
  "tools": "[undefined]",
  "tool_choice": "[undefined]",
  "stream": true
}
响应首部: {
  "anthropic-organization-id": "44fee02c-a6fb-464e-bd40-b59be916f9ec",
  "cf-cache-status": "DYNAMIC",
  "cf-ray": "9a6e9e67be56f947-SJC",
  "content-length": "254",
  "content-type": "application/json",
  "date": "Mon, 01 Dec 2025 00:55:24 GMT",
  "document-policy": "include-js-call-stacks-in-crash-reports",
  "request-id": "req_011CVf4CoHJ6NinJsqu6sM38",
  "server": "cloudflare",
  "strict-transport-security": "max-age=31536000; includeSubDomains; preload",
  "x-envoy-upstream-service-time": "22",
  "x-robots-tag": "none",
  "x-should-retry": "false"
}
响应内容: {
  "type": "error",
  "error": {
    "type": "invalid_request_error",
    "message": "Unexpected value(s)  for the `anthropic-beta` header. Please consult our documentation at docs.claude.com or try again without the header."
  },
  "request_id": "req_011CVf4CoHJ6NinJsqu6sM38"
}
数据: {
  "type": "error",
  "error": {
    "type": "invalid_request_error",
    "message": "Unexpected value(s)  for the `anthropic-beta` header. Please consult our documentation at docs.claude.com or try again without the header."
  }
}

Steps To Reproduce

使用claude-neptune-v3模型

Expected Behavior

希望能解决下

Relevant Log Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGCategorizes issue or PR as related to a bugModelsCategorizes an issue or PR as relevant to SIG LLM

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions