After setting up DeepSeek R1 with Cursor using the OpenAI API, I encountered an issue where it did not function as expected. The system returned an error message that says the “deepseek-reasoner” does not support consecutive user or assistant messages
{“error”:{“message”:“deepseek-reasoner does not support successive user or assistant messages (messages[1] and messages[2] in your input). You should interleave the user/assistant messages in the message sequence.”,“type”:“invalid_request_error”,“param”:null,“code”:“invalid_request_error”}}
Thanks. I’ve already tested it, and I can confirm that r1 can be used normally. However, I did find two small problems:
1: The response speed seems to be a little slow, I don’t know why, v3 also has the same problem [if you use the OpenAI API interface to call v3, the response is very fast]
2: The previous use, the phenomenon of disconnected network connection occurred.
According to the forum reply, the cursor does not use the official API of Deepseek, but their partners, which makes the response very slow, but the accuracy and effect are not reduced. I hope it can be optimized.
We are hoping to improve the speed here, but we do use a 3rd party (Fireworks) to run this model to ensure our privacy and security agreements remain in place.