mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 08:50:15 +01:00
handle bing message refusal
This commit is contained in:
parent
ea4180f22a
commit
5568a60174
3 changed files with 5 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue