From 92b47ba29beeb1e489b2dcc5589f9a84ff1987c6 Mon Sep 17 00:00:00 2001 From: lyf <1910527151@qq.com> Date: Tue, 6 Aug 2024 12:45:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/openai.ts | 2 +- app/components/button.tsx | 10 +++++++++- app/components/chat.tsx | 7 ++++++- app/components/sidebar.tsx | 19 +++++++++++++++---- app/config/server.ts | 10 ++++++++-- app/locales/cn.ts | 1 + 6 files changed, 40 insertions(+), 9 deletions(-) diff --git a/app/api/openai.ts b/app/api/openai.ts index 6d11d679215..d32e45dd997 100644 --- a/app/api/openai.ts +++ b/app/api/openai.ts @@ -13,7 +13,7 @@ function getModels(remoteModelRes: OpenAIListModelResponse) { if (config.disableGPT4) { remoteModelRes.data = remoteModelRes.data.filter( - (m) => !m.id.startsWith("gpt-4"), + (m) => !m.id.startsWith("gpt-4") || m.id.startsWith("gpt-40-mini"), ); } diff --git a/app/components/button.tsx b/app/components/button.tsx index c6039acc292..87b4abd30f9 100644 --- a/app/components/button.tsx +++ b/app/components/button.tsx @@ -18,6 +18,7 @@ export function IconButton(props: { tabIndex?: number; autoFocus?: boolean; style?: CSSProperties; + aria?: string; }) { return ( ); diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 6cb0cc88f53..a0d909ca397 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -382,7 +382,7 @@ export function ChatAction(props: { } as React.CSSProperties } > -