From efb440128a3579d7e1a06b2573600ebcba24809d Mon Sep 17 00:00:00 2001 From: Wentao Lyu <35-wentao.lyu@users.noreply.git.stereye.tech> Date: Wed, 5 Apr 2023 02:30:25 +0800 Subject: [PATCH] code clean. --- client/src/utils/handleSubmit.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/utils/handleSubmit.js b/client/src/utils/handleSubmit.js index a3f7b739f1..b598dddf92 100644 --- a/client/src/utils/handleSubmit.js +++ b/client/src/utils/handleSubmit.js @@ -40,13 +40,13 @@ const useMessageHandler = () => { endpointOption = { endpoint, jailbreak: currentConversation?.jailbreak || false, - jailbreakConversationId: currentConversation?.jailbreakConversationId || null, - conversationSignature: currentConversation?.conversationSignature || null, systemMessage: currentConversation?.systemMessage || null, context: currentConversation?.context || null, + toneStyle: currentConversation?.toneStyle || 'fast', + jailbreakConversationId: currentConversation?.jailbreakConversationId || null, + conversationSignature: currentConversation?.conversationSignature || null, clientId: currentConversation?.clientId || null, - invocationId: currentConversation?.invocationId || 1, - toneStyle: currentConversation?.toneStyle || 'fast' + invocationId: currentConversation?.invocationId || 1 }; responseSender = endpointOption.jailbreak ? 'Sydney' : 'BingAI'; } else if (endpoint === 'chatGPTBrowser') {