From 03f1a439d653444fd78c8280078f2db0a1b0b00e Mon Sep 17 00:00:00 2001 From: Wentao Lyu <35-wentao.lyu@users.noreply.git.stereye.tech> Date: Fri, 31 Mar 2023 04:39:11 +0800 Subject: [PATCH] fix: suggestions seems not used. what's this? --- client/src/utils/getDefaultConversation.js | 3 +-- client/src/utils/handleSubmit.js | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/client/src/utils/getDefaultConversation.js b/client/src/utils/getDefaultConversation.js index c4a96b399e..a95a8f1486 100644 --- a/client/src/utils/getDefaultConversation.js +++ b/client/src/utils/getDefaultConversation.js @@ -19,8 +19,7 @@ const buildDefaultConversation = ({ conversation, endpoint, lastConversationSetu conversationSignature: null, clientId: null, invocationId: 1, - toneStyle: lastConversationSetup?.toneStyle || 'fast', - suggestions: [] + toneStyle: lastConversationSetup?.toneStyle || 'fast' }; } else if (endpoint === 'chatGPTBrowser') { conversation = { diff --git a/client/src/utils/handleSubmit.js b/client/src/utils/handleSubmit.js index 32c209694a..c545ed9ccd 100644 --- a/client/src/utils/handleSubmit.js +++ b/client/src/utils/handleSubmit.js @@ -43,8 +43,7 @@ const useMessageHandler = () => { conversationSignature: currentConversation?.conversationSignature || null, clientId: currentConversation?.clientId || null, invocationId: currentConversation?.invocationId || 1, - toneStyle: currentConversation?.toneStyle || 'fast', - suggestions: currentConversation?.suggestions || [] + toneStyle: currentConversation?.toneStyle || 'fast' }; responseSender = endpointOption.jailbreak ? 'Sydney' : 'BingAI'; } else if (endpoint === 'chatGPTBrowser') {