mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-02 08:06:38 +08:00
commit
0fa78d3c49
@ -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"),
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -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 } });
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
|
@ -145,7 +145,7 @@ export function uploadImage(file: Blob): Promise<string> {
|
||||
body,
|
||||
mode: "cors",
|
||||
credentials: "include",
|
||||
})
|
||||
} as RequestInit)
|
||||
.then((res) => res.json())
|
||||
.then((res) => {
|
||||
console.log("res", res);
|
||||
|
@ -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" },
|
||||
|
Loading…
Reference in New Issue
Block a user