mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 00:40:14 +01:00
Do not allow to override bing AI tone in the middle of conversation
This commit is contained in:
parent
55f04ffa60
commit
af4110ff15
1 changed files with 2 additions and 2 deletions
|
|
@ -12,10 +12,10 @@ function BingStyles(props, ref) {
|
||||||
|
|
||||||
const isBing = model === 'bingai' || model === 'sydney';
|
const isBing = model === 'bingai' || model === 'sydney';
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (isBing) {
|
if (model === 'bingai' && !conversationId || model === 'sydney') {
|
||||||
dispatch(setConversation({ toneStyle: value }));
|
dispatch(setConversation({ toneStyle: value }));
|
||||||
}
|
}
|
||||||
}, [isBing, conversationId, model, value, dispatch]);
|
}, [conversationId, model, value, dispatch]);
|
||||||
|
|
||||||
const show = isBing && ((!conversationId || messages?.length === 0) || props.show);
|
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';
|
const defaultClasses = 'p-2 rounded-md font-normal bg-white/[.60] dark:bg-gray-700 text-black';
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue