diff --git a/src/views/components/RegenerationButton/index.tsx b/src/views/components/RegenerationButton/index.tsx
index 04acad5..2143e1c 100644
--- a/src/views/components/RegenerationButton/index.tsx
+++ b/src/views/components/RegenerationButton/index.tsx
@@ -1,43 +1,44 @@
-
-import * as React from 'react';
-import { Button } from '@mantine/core';
-import { IconRotateDot } from '@tabler/icons-react';
+import * as React from "react";
+import { Button } from "@mantine/core";
+import { IconRotateDot } from "@tabler/icons-react";
import { observer } from "mobx-react-lite";
import { useMst } from "@/views/stores/RootStore";
-
const RegenerationButton = observer(() => {
- const { chat } = useMst();
- return (}
- onClick={() => chat.reGenerating()}
- variant="white" >
- Regeneration
- );
+ const { chat } = useMst();
+ return (
+ }
+ onClick={() => chat.reGenerating()}
+ variant="white"
+ >
+ Regeneration
+
+ );
});
-export default RegenerationButton;
\ No newline at end of file
+export default RegenerationButton;
diff --git a/src/views/stores/ChatStore.ts b/src/views/stores/ChatStore.ts
index f515008..6fdde0a 100644
--- a/src/views/stores/ChatStore.ts
+++ b/src/views/stores/ChatStore.ts
@@ -403,6 +403,7 @@ Thinking...
self.isLastPage = true;
if (reset) {
self.messages = [] as any;
+ self.errorMessage = "";
}
if (self.messages.length === 0) {
helpMessage(true);