We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc93ccc commit dfef9dcCopy full SHA for dfef9dc
src/components/ConversationCard/index.jsx
@@ -211,6 +211,15 @@ function ConversationCard(props) {
211
updateAnswer(`<p class="gpt-loading">${t('Waiting for response...')}</p>`, false, 'answer')
212
setIsReady(false)
213
214
+ if (session.conversationRecords.length > 0) {
215
+ const lastRecord = session.conversationRecords[session.conversationRecords.length - 1]
216
+ if (
217
+ conversationItemData[conversationItemData.length - 1].done &&
218
+ lastRecord.question === conversationItemData[conversationItemData.length - 2].content
219
+ ) {
220
+ session.conversationRecords.pop()
221
+ }
222
223
const newSession = { ...session, isRetry: true }
224
setSession(newSession)
225
try {
0 commit comments