-
-
Notifications
You must be signed in to change notification settings - Fork 12.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] Unable to engage in more than two rounds of conversation with Deepseeker R1 #5620
Comments
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible. |
Hey @junity233! 👋 I'm here to help you with any bugs, questions, or contributions you have. Let's squash this bug together! The error you're encountering with Deepseeker R1 is due to the requirement that the first message, after any system message, must be a user message. The error message indicates that an assistant message was detected instead. This suggests that the message sequence is not being correctly managed, leading to an invalid request. To resolve this issue, ensure that the message sequence starts with a user message after any system message. You might need to adjust the logic in your application to enforce this sequence, especially when handling multiple rounds of conversation. This could involve checking the role of the first message in each conversation round and ensuring it is set to 'user' before sending it to Deepseeker R1. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
This issue is closed, If you have any questions, you can comment and reply. |
🎉 This issue has been resolved in version 1.49.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
📦 Environment
Docker
📌 Version
v1.49.5
💻 Operating System
Windows
🌐 Browser
Chrome
🐛 Bug Description
When there are more than one message, using deepseek-r1 will report the following error:
{
"error": {
"code": "invalid_request_error",
"type": "invalid_request_error",
"param": null,
"message": "The first message (except the system message) of deepseek-reasoner must be a user message, but an assistant message detected."
},
"endpoint": "https://api.deepseek.com/v1",
"provider": "deepseek"
}
📷 Recurrence Steps
Sending more than two messages
🚦 Expected Behavior
Reply normally
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: