fix: jailbreak should be boolean

This commit is contained in:
Wentao Lyu 2023-03-31 16:36:24 +08:00
parent a8e44d0028
commit 8b86fd0901

View file

@ -28,7 +28,7 @@ const MessageHeader = ({ isSearchView = false }) => {
options.push(['top_p', conversation?.top_p]);
options.push(['presence_penalty', conversation?.presence_penalty]);
} else if (endpoint === 'bingAI') {
options.push(['jailbreak', conversation?.jailbreak]);
options.push(['jailbreak', !!conversation?.jailbreak]);
options.push(['toneStyle', conversation?.toneStyle]);
} else if (endpoint === 'chatGPTBrowser') {
options.push(['model', conversation?.model]);