fix(BingAI): update convo handling with encryptedConversationSignature (#1063)

This commit is contained in:
Danny Avila 2023-10-16 13:36:45 -04:00 committed by GitHub
parent b23166d6be
commit 352e01f9d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@ const askBing = async ({
// don't give those parameters for new conversation
// for new conversation, conversationSignature always is null
if (conversationSignature) {
options.conversationSignature = conversationSignature;
options.encryptedConversationSignature = conversationSignature;
options.clientId = clientId;
options.invocationId = invocationId;
}

View file

@ -210,7 +210,7 @@ const ask = async ({
conversationUpdate.jailbreakConversationId = response.jailbreakConversationId;
} else {
conversationUpdate.jailbreak = false;
conversationUpdate.conversationSignature = response.conversationSignature;
conversationUpdate.conversationSignature = response.encryptedConversationSignature;
conversationUpdate.clientId = response.clientId;
conversationUpdate.invocationId = response.invocationId;
}