diff --git a/api/app/bingai.js b/api/app/bingai.js index 97674574c9..97f47ec921 100644 --- a/api/app/bingai.js +++ b/api/app/bingai.js @@ -47,6 +47,16 @@ const askBing = async ({ parentMessageId, toneStyle, onProgress, + clientOptions: { + features: { + genImage: { + server: { + enable: true, + type: 'markdown_list', + }, + }, + }, + }, }; } else { options = { @@ -56,6 +66,16 @@ const askBing = async ({ parentMessageId, toneStyle, onProgress, + clientOptions: { + features: { + genImage: { + server: { + enable: true, + type: 'markdown_list', + }, + }, + }, + }, }; // don't give those parameters for new conversation diff --git a/api/server/routes/ask/bingAI.js b/api/server/routes/ask/bingAI.js index e03529527b..ced293105a 100644 --- a/api/server/routes/ask/bingAI.js +++ b/api/server/routes/ask/bingAI.js @@ -172,7 +172,8 @@ const ask = async ({ let unfinished = false; if (partialText?.trim()?.length > response.text.length) { response.text = partialText; - unfinished = true; + unfinished = false; + //setting "unfinished" to false fix bing image generation error msg and allows to continue a convo after being triggered by censorship (bing does remember the context after a "censored error" so there is no reason to end the convo) } let responseMessage = { diff --git a/client/src/components/Messages/Content/Content.jsx b/client/src/components/Messages/Content/Content.jsx index bdeaef2fb9..f891d03901 100644 --- a/client/src/components/Messages/Content/Content.jsx +++ b/client/src/components/Messages/Content/Content.jsx @@ -69,7 +69,8 @@ const Content = React.memo(({ content, message }) => { ]; if (!isInitializing || !isLatestMessage) { - rehypePlugins.pop(); + //commented out to fix bing image creator errors + //rehypePlugins.pop(); } return (