修复:更新已弃用的 DeepSeek 默认模型标识 - #370
Open
Zzy-min wants to merge 2 commits into
Open
Conversation
Zzy-min
marked this pull request as ready for review
July 28, 2026 05:51
Zzy-min
force-pushed
the
agent/fix-deepseek-v4-model
branch
from
August 13, 2026 09:02
a398f9f to
2b8d778
Compare
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.
概要
deepseek-chat更新为deepseek-v4-flash。thinking: { type: "disabled" },保持旧默认模型的非思考行为。根因
deepseek-chat已退役。迁移到deepseek-v4-flash后,如果不指定thinking,DeepSeek 会默认启用思考模式;旧模型别名对应的是非思考模式。两个 API 路由都从相同的 provider 配置获取默认模型,因此需要同时控制其上游请求载荷。验证
pnpm build通过。POST /api/grammar:HTTP 200,返回有效且非空的 JSON 内容。POST /api/polish:HTTP 200,流式输出非空。deepseek-v4-flash返回 HTTP 200 和预期最终内容。关联 Issue:Fixes #369