Provider returned error: {“error”:{“message”:“The reasoning_content in the thinking mode must be passed back to the API.”,“type”:“invalid_request_error”,“param”:null,“code”:“invalid_request_error”}}
Steps to Reproduce
set deepseek-v4-pro api.
set deepseek-v4-pro api key.
prompt: Ask him to write a plan proposal document.
Hey, yeah, I’ve seen this issue. DeepSeek V4, same as R1 and Kimi K2.5, requires reasoning_content from previous assistant responses to be sent back to the API in multi-turn requests that include tool calls. On the BYOK path, Cursor currently doesn’t store this field for the DeepSeek API directly, so DeepSeek returns 400.
After integrating deepseek v4 pro into cursor, simple questions can be asked, but asking it to read project code will result in an error. However, integrating v4 pro into TRAE works without any issues.
Steps to Reproduce
After integrating deepseek v4 pro, you will encounter errors when reading project code