handle bing message refusal

This commit is contained in:
Danny Avila 2023-03-17 09:11:45 -04:00
parent ea4180f22a
commit 5568a60174
3 changed files with 5 additions and 4 deletions

View file

@ -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 &&