From 9cb7275703945dc4fb65a799461df591f6ee3e0d Mon Sep 17 00:00:00 2001 From: EvanWu <850123119@qq.com> Date: Tue, 5 Aug 2025 18:53:31 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=BD=91=E7=BB=9C?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=AE=A1=E7=90=86=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=B8=BB=E9=A2=98=E5=88=87=E6=8D=A2=E6=97=B6=E7=9A=84=E7=BD=91?= =?UTF-8?q?=E7=BB=9C=E7=8A=B6=E6=80=81=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/chat.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 9f7357e43..01d0d565a 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -512,7 +512,7 @@ export function ChatActions(props: { // switch themes const theme = config.theme; - const enableNetWork = config.modelConfig.enableNetWork; + const enableNetWork = session.mask.modelConfig.enableNetWork || false; function nextTheme() { const themes = [Theme.Auto, Theme.Light, Theme.Dark]; @@ -523,10 +523,10 @@ export function ChatActions(props: { } function nextNetWork() { - config.update( - (config) => - (config.modelConfig.enableNetWork = !config.modelConfig.enableNetWork), - ); + chatStore.updateTargetSession(session, (session) => { + session.mask.modelConfig.enableNetWork = + !session.mask.modelConfig.enableNetWork; + }); } // stop all responses