Enhanced ChatGPT Clone: Features Agents, MCP, Skills, DeepSeek, Anthropic, AWS, OpenAI, Responses API, Azure, Groq, o1, GPT-5, Mistral, OpenRouter, Vertex AI, Gemini, Artifacts, AI model switching, message search, Code Interpreter, langchain, DALL-E-3, OpenAPI Actions, Functions, Secure Multi-User Auth, Presets, open-source for self-hosting. Active
TypeScript aianthropicartifactsawsazurechatgptchatgpt-cloneclaudeclonedeepseekgeminigooglegpt-5librechatmcpo1openairesponses-apivisionwebui
fix(bingAI): markdown and error formatting for final stream response (#829)
Danny Avilad38e463d34c7
diff --git a/api/server/routes/ask/bingAI.js b/api/server/routes/ask/bingAI.jsindex 86c526fc9d..4eedb0df45 100644--- a/api/server/routes/ask/bingAI.js+++ b/api/server/routes/ask/bingAI.js@@ -102,6 +102,7 @@ const ask = async ({let { text, parentMessageId: userParentMessageId, messageId: userMessageId } = userMessage;let responseMessageId = crypto.randomUUID();+ const model = endpointOption?.jailbreak ? 'Sydney' : 'BingAI';if (preSendRequest) {sendMessage(res, { message: userMessage, created: true });@@ -115,13 +116,15 @@ const ask = async ({lastSavedTimestamp = currentTimestamp;saveMessage({messageId: responseMessageId,- sender: endpointOption?.jailbreak ? 'Sydney' : 'BingAI',+ sender: model,conversationId,parentMessageId: overrideParentMessageId || userMessageId,+ model,text: text,unfinished: true,cancelled: false,error: false,+ isCreatedByUser: false,});}},@@ -178,14 +181,16 @@ const ask = async ({messageId: responseMessageId,newMessageId: newResponseMessageId,parentMessageId: overrideParentMessageId || newUserMessageId,- sender: endpointOption?.jailbreak ? 'Sydney' : 'BingAI',+ sender: model,text: await handleText(response, true),+ model,suggestions:response.details.suggestedResponses &&response.details.suggestedResponses.map((s) => s.text),unfinished,cancelled: false,error: false,+ isCreatedByUser: false,};await saveMessage(responseMessage);@@ -246,14 +251,15 @@ const ask = async ({if (partialText?.length > 2) {const responseMessage = {messageId: responseMessageId,- sender: endpointOption?.jailbreak ? 'Sydney' : 'BingAI',+ sender: model,conversationId,parentMessageId: overrideParentMessageId || userMessageId,text: partialText,- model: endpointOption.modelOptions.model,+ model,unfinished: true,cancelled: false,error: false,+ isCreatedByUser: false,};saveMessage(responseMessage);@@ -269,13 +275,15 @@ const ask = async ({console.log(error);const errorMessage = {messageId: responseMessageId,- sender: endpointOption?.jailbreak ? 'Sydney' : 'BingAI',+ sender: model,conversationId,parentMessageId: overrideParentMessageId || userMessageId,unfinished: false,cancelled: false,error: true,text: error.message,+ model,+ isCreatedByUser: false,};await saveMessage(errorMessage);handleError(res, errorMessage);diff --git a/client/src/components/Messages/Content/MessageContent.tsx b/client/src/components/Messages/Content/MessageContent.tsxindex e8910523d1..07800cbb56 100644--- a/client/src/components/Messages/Content/MessageContent.tsx+++ b/client/src/components/Messages/Content/MessageContent.tsx@@ -61,7 +61,6 @@ const EditMessage = ({const resubmitMessage = () => {const text = textEditor?.current?.innerText ?? '';- console.log('siblingIdx:', siblingIdx);if (message.isCreatedByUser) {ask({text,