mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-09-11 12:00:52 +08:00
patch: fakePort stop
This commit is contained in:
@@ -260,6 +260,7 @@ function ConversationCard(props) {
|
||||
const lastRecord = session.conversationRecords[session.conversationRecords.length - 1]
|
||||
if (
|
||||
conversationItemData[conversationItemData.length - 1].done &&
|
||||
conversationItemData.length > 1 &&
|
||||
lastRecord.question === conversationItemData[conversationItemData.length - 2].content
|
||||
) {
|
||||
session.conversationRecords.pop()
|
||||
@@ -484,15 +485,13 @@ function ConversationCard(props) {
|
||||
key={idx}
|
||||
type={data.type}
|
||||
session={session}
|
||||
done={data.done}
|
||||
port={port}
|
||||
onRetry={idx === conversationItemData.length - 1 ? getRetryFn(session) : null}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
<InputBox
|
||||
enabled={isReady}
|
||||
port={port}
|
||||
postMessage={postMessage}
|
||||
reverseResizeDir={props.pageMode}
|
||||
onSubmit={async (question) => {
|
||||
const newQuestion = new ConversationItemData('question', question)
|
||||
|
||||
Reference in New Issue
Block a user