feat(admin): 模型配置加「编辑」按钮 + 语音默认提示改 deepseek-v4-flash

- ModelManager: 每行加「编辑」→ 载入表单就地改(api_key 留空=沿用现有密钥),
  后端按 id 走更新而非新增;表单头/按钮随编辑态切换,带「取消」;省去删了重登记
- ModelsPage: 语音默认模型提示 deepseek-chat→deepseek-v4-flash(chat 2026/07/24 弃用)

注:语音模型实例已通过 admin API 从 deepseek-chat 热切到 deepseek-v4-flash(dispatcher
现读 v4-flash,无需重启)——验证了编辑/激活的 NATS 热更新链路。

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Blizzard
2026-07-22 13:07:13 +08:00
parent a4669a0d82
commit 95f3781076
2 changed files with 31 additions and 5 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ export function ModelsPage() {
kind="voice"
title="JARVIS 语音模型 (voice → 语音对话,选快模型抢首字时延)"
baseUrlHint="https://api.deepseek.com"
modelHint="deepseek-chat"
modelHint="deepseek-v4-flash"
/>
)}
{tab === "embedding" && (