From 3f51bab8af6f96df272680bde3d1b160766ba118 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=94=A1=E5=8F=8A?= <522caiji@gmail.com> Date: Fri, 11 Sep 2026 19:43:09 +0800 Subject: [PATCH] fix: restore WorkBuddy Deepseek V4.1 Flash thinking fields Send official top-level reasoning fields for deepseek-v4.1-flash only, and surface catalog 300k/1M context budgets on the model list without changing chat payloads for other models. --- CHANGELOG.md | 12 +++ frontend/src/components/ModelDetailsModal.tsx | 1 + frontend/src/i18n/messages.ts | 2 + frontend/src/pages/ProvidersPage.tsx | 10 ++- internal/api/modelsettings.go | 2 +- internal/providers/workbuddy/catalog.go | 78 ++++++++++++++++--- internal/providers/workbuddy/client_test.go | 55 ++++++++++++- internal/providers/workbuddy/mapping.go | 41 +++++++++- internal/providers/workbuddy/mapping_test.go | 55 +++++++++++++ ...t-CuLdabJd.js => TrafficChart-D43-fLy7.js} | 2 +- .../{index-sgsO79xb.js => index-DyfuUCZL.js} | 2 +- internal/webui/static/index.html | 2 +- 12 files changed, 241 insertions(+), 21 deletions(-) create mode 100644 internal/providers/workbuddy/mapping_test.go rename internal/webui/static/assets/{TrafficChart-CuLdabJd.js => TrafficChart-D43-fLy7.js} (99%) rename internal/webui/static/assets/{index-sgsO79xb.js => index-DyfuUCZL.js} (87%) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9edbe18..4914f91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,18 @@ Write each change in both `### English` and `### 中文` under `## Unreleased`. ### English +- Send WorkBuddy Deepseek V4.1 Flash thinking as official top-level reasoning fields so streamed thinking comes back +- Show WorkBuddy catalog context budgets (default and optional window) on the model list without inventing a Trae Max switch + +### 中文 + +- WorkBuddy 的 Deepseek V4.1 Flash 改为发送官方顶层思考字段,流式思考内容可以返回 +- 模型列表展示 WorkBuddy 目录里的默认和可选上下文窗口,不套用 Trae 的更大上下文开关 + +## 0.4.8 - 2026-09-11 + +### English + - Preserve cached model routes when the dynamic model catalog is temporarily unavailable, while refreshing genuine model misses - Let WorkBuddy accounts choose their automatic daily check-in time during creation, with a 21:00 retry for failed attempts - Enlarge the account-name input in the create-account wizard diff --git a/frontend/src/components/ModelDetailsModal.tsx b/frontend/src/components/ModelDetailsModal.tsx index f092265..07001ab 100644 --- a/frontend/src/components/ModelDetailsModal.tsx +++ b/frontend/src/components/ModelDetailsModal.tsx @@ -41,6 +41,7 @@ export function ModelDetailsModal({ model, t, onClose }: Props) {
{t('maxModeHint')}
: null} + {!model.supports_max_mode && windowMax && windowMax !== windowDev ?{t('workbuddyContextHint')}
: null} {model.prompt_max_tokens ?