abort when clear conversations
This commit is contained in:
parent
c3084a3290
commit
db4e0a5734
@ -255,6 +255,8 @@ const ChatPanel: FC = observer(() => {
|
||||
icon={<Delete28Regular />}
|
||||
size="large" shape="circular" appearance="subtle"
|
||||
onClick={(e) => {
|
||||
if (generating)
|
||||
sseControllerRef.current?.abort();
|
||||
commonStore.setConversations({});
|
||||
commonStore.setConversationsOrder([]);
|
||||
}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user