feat: add jailbreak option for bingai

fix some bugs.
This commit is contained in:
Wentao Lyu 2023-04-05 02:46:22 +08:00
parent efb440128a
commit 9f1ded7f75
7 changed files with 67 additions and 111 deletions

View file

@ -16,13 +16,13 @@ const buildDefaultConversation = ({ conversation, endpoint, lastConversationSetu
...conversation,
endpoint,
jailbreak: lastConversationSetup?.jailbreak || false,
systemMessage: lastConversationSetup?.systemMessage || null,
context: lastConversationSetup?.context || null,
systemMessage: lastConversationSetup?.systemMessage || null,
toneStyle: lastConversationSetup?.toneStyle || 'fast',
jailbreakConversationId: lastConversationSetup?.jailbreakConversationId || null,
conversationSignature: null,
clientId: null,
invocationId: 1,
toneStyle: lastConversationSetup?.toneStyle || 'fast'
invocationId: 1
};
} else if (endpoint === 'chatGPTBrowser') {
conversation = {