Do not allow to override bing AI tone in the middle of conversation

This commit is contained in:
Hyunggyu Jang 2023-03-26 13:24:20 +09:00
parent 55f04ffa60
commit af4110ff15

View file

@ -12,10 +12,10 @@ function BingStyles(props, ref) {
const isBing = model === 'bingai' || model === 'sydney';
useEffect(() => {
if (isBing) {
if (model === 'bingai' && !conversationId || model === 'sydney') {
dispatch(setConversation({ toneStyle: value }));
}
}, [isBing, conversationId, model, value, dispatch]);
}, [conversationId, model, value, dispatch]);
const show = isBing && ((!conversationId || messages?.length === 0) || props.show);
const defaultClasses = 'p-2 rounded-md font-normal bg-white/[.60] dark:bg-gray-700 text-black';