mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-10-01 12:01:10 +08:00
fix: conversation history in bing mode
This commit is contained in:
1 parent
545cb195e5
commit
0178cbbee9
1 file changed
+3
-1
@@ -58,6 +58,8 @@ export async function generateAnswersWithBingWebApi(
|
||||
session.bingWeb.clientId = response.clientId
|
||||
session.bingWeb.invocationId = response.invocationId
|
||||
|
||||
session.conversationRecords.push({ question: question, answer: answer })
|
||||
console.debug('conversation history', { content: session.conversationRecords })
|
||||
port.onMessage.removeListener(stopListener)
|
||||
port.postMessage({ answer: response.response, done: true, session: session })
|
||||
port.postMessage({ answer: answer, done: true, session: session })
|
||||
}
|
||||
Reference in new issue
Block a user