Skip to content

fix: deepseek-v4-flash reasoning_options omit low, which the API accepts and honors - #3963

Open
github-actions[bot] wants to merge 1 commit into
devfrom
issue-3962
Open

fix: deepseek-v4-flash reasoning_options omit low, which the API accepts and honors#3963
github-actions[bot] wants to merge 1 commit into
devfrom
issue-3962

Conversation

@github-actions

@github-actions github-actions Bot commented Aug 2, 2026

Copy link
Copy Markdown
Contributor

Summary

deepseek-v4-flash documents a distinct reasoning_effort=low level (maps to low on Flash), but several catalog entries only listed high/max. That hid the only effort value that differs meaningfully from the default on Flash. Effort values are now ["low", "high", "max"] on the first-party DeepSeek entry and the opencode / opencode-go Flash hosts.

Changes

File Field Old New
providers/deepseek/models/deepseek-v4-flash.toml reasoning_options effort ["high", "max"] ["low", "high", "max"]
providers/opencode-go/models/deepseek-v4-flash.toml reasoning_options effort ["high", "max"] ["low", "high", "max"]
providers/opencode/models/deepseek-v4-flash.toml reasoning_options effort ["high", "max"] ["low", "high", "max"]
providers/opencode/models/deepseek-v4-flash-free.toml reasoning_options effort ["high", "max"] ["low", "high", "max"]
providers/deepseek/provider.toml leading comment said low/medium→high documents Flash low→low vs Pro low→high

Left unchanged: deepseek-v4-pro remains high/max (docs map Pro lowhigh). Did not add xhigh (Flash maps it to high) or medium (not a native OpenAI-format effort for this model).

Evidence

Validation

  • Checked official Thinking Mode docs against the mapping table for Flash vs Pro.
  • Diff-reviewed the four model TOMLs and provider comment for leading source comments and effort lists only.
  • Did not run bun validate or live API calls in this environment.

Review notes

  • Other relays (Fireworks, Alibaba, Ollama Cloud, etc.) still list Flash as high/max only; left alone without per-host verification.
  • opencode / opencode-go shapes kept as-is (toggle only where already present); only the effort list changed.
  • AGENTS.md still summarizes DeepSeek V4 as high/max in places; that text was not edited (catalog-only change).

Closes #3962

Automated by the issue fixer: https://github.com/anomalyco/models.dev/actions/runs/30759490163

@sigco3111

Copy link
Copy Markdown

Hi! Quick question on the trigger for this fix — was the low option explicitly rejected by the DeepSeek v4-flash API response, or was this caught during upstream SDK behavior validation? I'm asking because the cost-optimization guidance differs depending on which case it is (silent accept vs explicit reject behaves very differently for retries).

I'm maintaining a Korean dev community cost-optimization guide for DeepSeek models, so getting the low option behavior right matters a lot for our users.

Thanks for the great work on models.dev! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deepseek-v4-flash reasoning_options omit low, which the API accepts and honors

1 participant