-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Anthropic API 反馈invalid_request_error 🐛 Bug #1765
Comments
👀 @JZ86 Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
我看已经好多人说有这个问题了 你确定聊天界面是一条用户消息一条助手消息吗? |
I see a lot of people have said they have this problem. Are you sure the chat interface is one user message and one assistant message? |
上一秒还在回答,突然就返回error,然后就再也不work。只能在“默认话题”(临时)开启新的聊天,without history chat |
It was still answering a second ago, but suddenly an error was returned, and then it never worked again. New chats can only be opened in the "default topic" (temporary) without history chat |
✅ @JZ86 This issue is closed, If you have any questions, you can comment and reply. |
🎉 This issue has been resolved in version 0.156.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
💻 Operating System
Windows
📦 Environment
Official Preview
🌐 Browser
Chrome
🐛 Bug Description
今天突然反馈此问题,切换模型和角色无法解决。Anthropic API测试没问题
{
"error": {
"status": 400,
"headers": {
"connection": "keep-alive",
"content-length": "184",
"content-type": "application/json",
"date": "Wed, 27 Mar 2024 12:08:58 GMT",
"request-id": "req_0154YLAibXPbELPQvh5G2J8C",
"via": "1.1 google",
"x-cloud-trace-context": "691f3559ace780d47541f113d73afd8a",
"x-should-retry": "false"
},
"error": {
"type": "error",
"error": {
"type": "invalid_request_error",
"message": "messages: roles must alternate between "user" and "assistant", but found multiple "assistant" roles in a row"
}
}
},
"endpoint": "https://api.anthropic.com",
"provider": "anthropic"
}
🚦 Expected Behavior
No response
📷 Recurrence Steps
No response
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: