From 028f76fcbeaa5cf581101b4d169bbbe797525f70 Mon Sep 17 00:00:00 2001 From: withsalt Date: Tue, 23 Jan 2024 23:36:41 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20key=E8=87=AA=E5=8A=A8=E5=A1=AB?= =?UTF-8?q?=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/components/chat.tsx | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 39abdd97b24..2252261618a 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -1006,22 +1006,15 @@ function _Chat() { console.log("[Command] got settings from url: ", payload); - if (payload.key || payload.url) { - showConfirm( - Locale.URLCommand.Settings + - `\n${JSON.stringify(payload, null, 4)}`, - ).then((res) => { - if (!res) return; - if (payload.key) { - accessStore.update( - (access) => (access.openaiApiKey = payload.key!), - ); - } - if (payload.url) { - accessStore.update((access) => (access.openaiUrl = payload.url!)); - } - }); + if (payload.key) { + accessStore.update( + (access) => (access.openaiApiKey = payload.key!), + ); + } + if (payload.url) { + accessStore.update((access) => (access.openaiUrl = payload.url!)); } + } catch { console.error("[Command] failed to get settings from url: ", text); } From aed4e823d3524ff3605485b930e41f3459039374 Mon Sep 17 00:00:00 2001 From: withsalt Date: Tue, 23 Jan 2024 23:57:44 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E6=97=A0=E8=BE=B9=E6=A1=86=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/store/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/store/config.ts b/app/store/config.ts index 057e31b2565..2cd6ce3639b 100644 --- a/app/store/config.ts +++ b/app/store/config.ts @@ -32,7 +32,7 @@ export const DEFAULT_CONFIG = { avatar: "1f603", fontSize: 14, theme: Theme.Auto as Theme, - tightBorder: !!getClientConfig()?.isApp, + tightBorder: true, //!!getClientConfig()?.isApp, sendPreviewBubble: true, enableAutoGenerateTitle: true, sidebarWidth: DEFAULT_SIDEBAR_WIDTH,