# Deepseek R1 succesive user messages error

**URL:** <https://forum.cursor.com/t/deepseek-r1-succesive-user-messages-error/43517>\
**Category:** Bug Reports\
**Created:** [January 22, 2025, 9:52am UTC](https://forum.cursor.com/t/deepseek-r1-succesive-user-messages-error/43517 "2025-01-22T09:52:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robo\_coder](https://avatars.discourse-cdn.com/v4/letter/r/e68b1a/32.png) [@robo\_coder](https://forum.cursor.com/u/robo_coder)\
**Post date:** [January 22, 2025, 9:52am UTC](https://forum.cursor.com/t/deepseek-r1-succesive-user-messages-error/43517/1 "2025-01-22T09:52:31Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![diadras](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/diadras/32/9441_2.png) [@diadras](https://forum.cursor.com/u/diadras)\
**Post date:** [January 22, 2025, 11:10am UTC](https://forum.cursor.com/t/deepseek-r1-succesive-user-messages-error/43517/2 "2025-01-22T11:10:59Z")

</div>

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

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/5/8/58f998cae5023edc8529ed6fe5aac78b45bda63b.png)

---

<div class="post-metadata">

**Author:** ![gradinarot](https://avatars.discourse-cdn.com/v4/letter/g/ecc23a/32.png) [@gradinarot](https://forum.cursor.com/u/gradinarot)\
**Post date:** [January 22, 2025, 1:17pm UTC](https://forum.cursor.com/t/deepseek-r1-succesive-user-messages-error/43517/3 "2025-01-22T13:17:40Z")

</div>

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