ChatGPTNextWeb / ChatGPTNextWeb/NextChat

[Bug] claude角色bug

Open
#5,104 10 comments 1 reaction 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
88.8k
Forks
59.1k
PR merge metrics
No merged PRs in 30d

Description

### 📦 Deployment Method

Docker

### 📌 Version

2.13.1

### 💻 Operating System

Windows, Other Linux

### 📌 System Version

11

### 🌐 Browser

Edge

### 📌 Browser Version

121

### 🐛 Bug Description

因为我是通过oneapi,把chatgpt nextweb的openai GPT模型重定向成claude3.5 来使用,会遇到之前解决过的claude角色bug。
能不能让dockercompose 的yml 使用openai 形式的key和url同时可以使用claude3.5模型以及他特殊的角色管理,谢谢

{
"error": {
"message": "messages: Unexpected role \"system\". The Messages API accepts a top-level `system` parameter, not \"system\" as an input message role. (request id: 202407251632314853703071740834)",
"type": "invalid_request_error",
"param": "",
"code": null
}
}
{
"error": {
"message": "messages: Unexpected role \"system\". The Messages API accepts a top-level `system` parameter, not \"system\" as an input message role. (request id: 2024072517231349157195880867053)",
"type": "invalid_request_error",
"param": "",
"code": null
}
}

### 📷 Recurrence Steps

_No response_

### 🚦 Expected Behavior

_No response_

### 📝 Additional Information

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the Docker Compose YAML and the OpenAI-compatible request path used for Claude 3.5, reproducing the reported `Unexpected role "system"` response on version 2.13.1. Done means the OpenAI-style key and URL work with Claude's role handling; the payload names no tests or more specific files to inspect.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker-compose, typescript
Domain
api
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.