feat(provider): add low reasoning effort for DeepSeek V4 Flash - #224
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Adds model-specific reasoning-effort capabilities, exposing low for DeepSeek V4 Flash while preserving Pro’s supported options.
Changes:
- Centralizes supported and default reasoning efforts in model metadata.
- Generates picker options and validates configured efforts per model.
- Updates localized labels and documentation.
Reviewed changes
Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
src/types.ts |
Defines reasoning-effort capability types. |
src/provider/request.ts |
Applies validated model-specific effort settings. |
src/provider/models.ts |
Generates picker schemas from capability metadata. |
src/i18n.ts |
Adds localized low labels. |
src/consts.ts |
Configures efforts supported by Flash and Pro. |
README.md |
Documents model-specific effort options. |
README.zh-cn.md |
Updates Simplified Chinese documentation. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lowreasoning effort for DeepSeek V4 Flash while keeping DeepSeek V4 Pro onhighandmaxWhy
DeepSeek V4 Flash now implements a distinct
lowreasoning effort, but the extension only exposednone,high, andmax. Keeping the effort list in each model definition also avoids hard-coding model-specific behavior in the picker and request pipeline.noneremains a separate UI option that disables thinking rather than an API-level reasoning effort.User impact
Flash users can select a lightweight reasoning mode for quick edits and simple tasks. Pro users continue to see only the effort levels currently implemented by the official API. Existing and invalid stored values safely fall back to each model's configured default.
Validation
npm run format:checknpm run compilenpm run lintthinking.type: "enabled"withreasoning_effort: "low"Closes #220