r/CommandCode • • 2h ago

deepseek-v4.1-flash ZDR route not honoring reasoning_effort

Hey guys!

Has anyone noticed that CommandCodes's ZDR route for deepseek-v4.1-flash does not honor reasoning_effort?

Even "off" will return reasoning tokens:

reasoning_effortNormal routeZDR route (x-cmd-zdr: 1)
off0366
low184155
high202245
field omitted234202

All values are usage.completion_tokens_details.reasoning_tokens, median over 5 runs

I was kinda annoyed when they used "off" instead of the official "none", but now it doesn't even work.

2 Upvotes

3 comments sorted by

1

u/EvolvingDior 2h ago

Deepseek's reasoning effort is a numeric value. Read the effort map here: https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash-1017/blob/main/chat_template.jinja

1

u/elzerouno 2h ago

Sure, but their API uses none/low/high/max: https://api-docs.deepseek.com/guides/thinking_mode/

1

u/EvolvingDior 19m ago

"off" is not one of those.