Deepseek R1 succesive user messages error

Hi all,
I just tried to use the R1 model with my own Deepseek API key in a chat window. The request failed and returned this error message:

{“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”}}

I have custom .cursorrules, maybe that could be related. Anyone else experiencing this? Hopefully it gets fixed soon

Best

Disable and wipe your .cursorrules and Rules for AI options.

1 Like

This will work but only if you dont attach any files to the context

1 Like