From 42fdbd9bb863203912b86205641dec2e5b4d07c3 Mon Sep 17 00:00:00 2001 From: lzz <55302758+122cygf@users.noreply.github.com> Date: Wed, 7 Aug 2024 17:22:32 +0800 Subject: [PATCH 1/3] Fix spelling errors --- app/api/openai.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/openai.ts b/app/api/openai.ts index d32e45dd9..0059ff8b4 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.id.startsWith("gpt-40-mini"), + (m) => !m.id.startsWith("gpt-4") || m.id.startsWith("gpt-4o-mini"), ); } From 4b97e374e75d5b709ba41711df20d97d0dd8329e Mon Sep 17 00:00:00 2001 From: sijinhui Date: Wed, 7 Aug 2024 23:42:03 +0800 Subject: [PATCH 2/3] fix little bug --- app/components/sidebar.tsx | 2 +- app/utils/chat.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/components/sidebar.tsx b/app/components/sidebar.tsx index 823e2e0d2..e18888ea5 100644 --- a/app/components/sidebar.tsx +++ b/app/components/sidebar.tsx @@ -319,7 +319,7 @@ export function SideBar(props: { className?: string }) { } onClose={() => setShowPluginSelector(false)} onSelection={(s) => { - navigate(s[0], { state: { fromHome: true } }); + navigate(s[0] as any, { state: { fromHome: true } }); }} /> )} diff --git a/app/utils/chat.ts b/app/utils/chat.ts index c4dfe4c6b..a85b7a5d7 100644 --- a/app/utils/chat.ts +++ b/app/utils/chat.ts @@ -145,7 +145,7 @@ export function uploadImage(file: Blob): Promise { body, mode: "cors", credentials: "include", - }) + } as RequestInit) .then((res) => res.json()) .then((res) => { console.log("res", res); From 9776cb5471bb17355323adef634f3fecadc6dfcd Mon Sep 17 00:00:00 2001 From: sijinhui Date: Wed, 7 Aug 2024 23:45:01 +0800 Subject: [PATCH 3/3] merge --- next.config.mjs | 1 + 1 file changed, 1 insertion(+) diff --git a/next.config.mjs b/next.config.mjs index 53636e75b..25c87bdb5 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -74,6 +74,7 @@ const nextConfig = { unoptimized: mode === "export", // domains: ["cos.xiaosi.cc"], remotePatterns: [ + { hostname: "localhost" }, { hostname: "**.xiaosi.cc" }, { hostname: "public.blob.vercel-storage.com" }, { hostname: "res.cloudinary.com" },