🐛 fix: fix hydration error (#7535)

* fix

* fix mcp type

* fix lint
This commit is contained in:
Arvin Xu
2025-04-24 11:35:04 +08:00
committed by GitHub
parent afe1f052aa
commit e130855d45
4 changed files with 3 additions and 15 deletions
-11
View File
@@ -1,11 +0,0 @@
import { PropsWithChildren } from 'react';
const Layout = ({ children }: PropsWithChildren) => {
return (
<html>
<body>{children}</body>
</html>
);
};
export default Layout;
-1
View File
@@ -1 +0,0 @@
export { default } from '@/components/404';
+2 -2
View File
@@ -264,13 +264,13 @@ class _MessageModel extends BaseModel {
translate,
tts,
...item
}: DBModel<DB_Message>): ChatMessage => {
}: DBModel<DB_Message>) => {
return {
...item,
extra: { fromModel, fromProvider, translate, tts },
meta: {},
topicId: item.topicId ?? undefined,
};
} as ChatMessage;
};
}
+1 -1
View File
@@ -11,7 +11,7 @@ const PluginSchema = z.object({
identifier: z.string(),
arguments: z.string(),
apiName: z.string(),
type: z.enum(['default', 'markdown', 'standalone', 'builtin']).default('default'),
type: z.enum(['default', 'markdown', 'standalone', 'builtin', 'mcp']).default('default'),
});
const ToolCallSchema = PluginSchema.extend({