mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-07 04:45:19 +08:00
fix: conversation history in bing mode
This commit is contained in:
@@ -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