Merge pull request #145 from sijinhui/dev

Dev
This commit is contained in:
sijinhui 2024-08-07 23:45:55 +08:00 committed by GitHub
commit 0fa78d3c49
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 4 additions and 3 deletions

View File

@ -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"),
);
}

View File

@ -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 } });
}}
/>
)}

View File

@ -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);

View File

@ -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" },