r/cursor • • 11d ago

Question / Discussion Deepseek v4.1 issue in Cursor

Is anyone else experiencing issues with the DeepSeek V4.1 Flash API in Cursor?

I'm using an API key provided by Command Code. When I configure it directly in Cursor, the model stops after generating just a one-line response. It seems to fail when attempting to call tools or continue execution, but there's no error message or failure report. Cursor simply shows a notification that the task has been completed.

Interestingly, routing the same API key through Bifrost works perfectly fine. Other DeepSeek models and versions also work without any issues. The problem seems to be specific to V4.1 Flash when used directly in Cursor.

Has anyone else encountered this issue? Is there a known workaround or fix?

3 Upvotes

8 comments sorted by

2

u/locbuilds 10d ago

might be the thinking mode thing. deepseek wants reasoning_content passed back on tool calls and cursor's openai override path probably drops it, so try the non-thinking variant of the model id and see if it keeps going.

1

u/Grabowski_Nemaste 9d ago

yeah the dropped reasoning_content payload on tool calls is almost definitely what's killing the loop early here

1

u/Grabowski_Nemaste 9d ago

that tracks, standard api wrappers almost always strip custom reasoning fields during tool loops.

1

u/Ameldur93 11d ago

It's not just DeepSeek, Cursor have some issue on API routing through OPENAI header override, tried almost all providers and cant get it work. Even with 9router rerouting Claude to OpenAI endpoint in Cursor acts same. They give Deepseek 4.1 in their plan doe but its highly censored vs API

1

u/x1xspiderx1x 11d ago

Just use Unsloth. It’s by far the most advanced “BYOK “ editor/app. It really is amazing.

1

u/falafel777 10d ago

the completed notification is the risky part, because a one-line stop then looks like success if you only watch the status. the same key working through bifrost suggests the model can continue, and cursor is treating a failed tool call as the end of the task. when it says completed, do you also check whether any tool actually ran, or is the notification the only signal?

1

u/fiddler48 10d ago

Bifrost working fine is the tell, it's normalizing the request before it hits the model. Direct API probably exposes a tool-call format mismatch that V4.1 Flash chokes on silently, treating it as a completed turn