From dd6da3a55c57c3c336b09d46d9f10e1fe9420c2a Mon Sep 17 00:00:00 2001 From: heimoshuiyu Date: Thu, 20 Jul 2023 11:41:52 +0800 Subject: [PATCH] disable re-generate and completion when generating --- src/chatbox.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/chatbox.tsx b/src/chatbox.tsx index 197b2b0..cfae0ba 100644 --- a/src/chatbox.tsx +++ b/src/chatbox.tsx @@ -1,4 +1,4 @@ -import structuredClone from '@ungap/structured-clone' +import structuredClone from "@ungap/structured-clone"; import { createRef } from "preact"; import { StateUpdater, useEffect, useState } from "preact/hooks"; import { ChatStore, STORAGE_NAME_TEMPLATE, addTotalCost } from "./app"; @@ -456,7 +456,8 @@ export default function ChatBOX(props: {

{chatStore.history.length > 0 && (