Skip to content

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

handle bing message refusal

Danny Avila5568a60174ea
diff --git a/.gitignore b/.gitignore
index e201974879..7d333204e8 100644
--- a/.gitignore
+++ b/.gitignore
@@ -33,6 +33,7 @@ client/public/main.js.LICENSE.txt
# Deployed apps should consider commenting these lines out:
# see https://npmjs.org/doc/faq.html#Should-I-check-my-node_modules-folder-into-git
node_modules/
+meili_data/
api/node_modules/
client/node_modules/
bower_components/
diff --git a/api/server/routes/askBing.js b/api/server/routes/askBing.js
index 0614faf86a..18a08c4135 100644
--- a/api/server/routes/askBing.js
+++ b/api/server/routes/askBing.js
@@ -117,8 +117,8 @@ const ask = async ({
);
conversationId = userMessage.conversationId;
- response.text = response.response;
- delete response.response;
+ response.text = response.response || response.details.spokenText || '**Bing refused to answer.**';
+ // delete response.response;
// response.id = response.details.messageId;
response.suggestions =
response.details.suggestedResponses &&
diff --git a/api/server/routes/askSydney.js b/api/server/routes/askSydney.js
index a2017cf7d6..c85bd20d52 100644
--- a/api/server/routes/askSydney.js
+++ b/api/server/routes/askSydney.js
@@ -111,8 +111,8 @@ const ask = async ({
response.conversationSignature = convo.conversationSignature
? convo.conversationSignature
: crypto.randomUUID();
- response.text = response.response;
- delete response.response;
+ response.text = response.response || response.details.spokenText || '**Bing refused to answer.**';
+ // delete response.response;
response.suggestions =
response.details.suggestedResponses &&
response.details.suggestedResponses.map((s) => s.text);