-
Notifications
You must be signed in to change notification settings - Fork 61.1k
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]The first message (except the system message) of deepseek-reasoner must be a user message, but an assistant message detected. #6305
Comments
这也是历史遗留问题了,本来应该按轮次来控制消息的,而不应该按消息数,按轮次可以减少很多潜在的问题: #4443 |
This is also a historical problem. The messages should have been controlled by rounds, rather than by the number of messages. By rounds, many potential problems can be reduced: #4443 |
You can try my second edition 😀 |
Hello, I also encountered this problem. Does your secondary development version refer to the fork on your homepage? It has too many bifurcations with the main line. I wonder if I can give one or several commits to solve this problem? |
我也遇到这个问题喽.....不知官方能不能修复嘞..emmmmm |
I'm also facing this problem... I don't know if it can be fixed by the official... |
@Lingrui98 是楼主说的 assistant 消息问题还是楼里说的思维链拼接问题,如您所说,因为分岔较早代码差异大,所以很难说哪些 commit 对官方当前版本是起作用的,我可以给你具体的修改建议 |
Is it the assistant message problem mentioned by the poster or the thinking chain splicing problem mentioned by the poster? As you said, because the codes for bifurcation are very different from each other, it is difficult to say which commits work for the current official version. I can give you specific modification suggestions |
感谢您的回复!目前merge最新的pr以后问题已经解决了 : ) |
Thank you for your reply! Currently, the latest PR problem in merge has been solved : ) |
📦 Deployment Method
Docker
📌 Version
V2.15.8
💻 Operating System
Ubuntu
📌 System Version
Ubuntu 24.04.1 LTS
🌐 Browser
Chrome
📌 Browser Version
133.0.6943.128(正式版本)
🐛 Bug Description
对接了DeepSeek官方API的时候,聊几句就会出现如下如图问题,问题描述:The first message (except the system message) of deepseek-reasoner must be a user message, but an assistant message detected.
我估计是因为历史消息的原因:
📷 Recurrence Steps
设置中,历史消息设置为4,多轮对话下来,当你问第3个问题的时候,就会出现上述问题,但是如果我清除聊天,又可以继续聊了,所以我认为就是历史消息的缘故。
🚦 Expected Behavior
不确定这是不是DeepSeek官方API的问题,还是C端的问题,期望的是我能够一直提问和回答下去
📝 Additional Information
No response
The text was updated successfully, but these errors were encountered: