diff --git a/app/api/openai.ts b/app/api/openai.ts index f76a3b983..9c55950e5 100644 --- a/app/api/openai.ts +++ b/app/api/openai.ts @@ -19,7 +19,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"), ); } 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); 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" },