From 1fe4befa7eef82d2b2a2f686c52029aa1ffcfc2a Mon Sep 17 00:00:00 2001 From: josc146 Date: Thu, 2 May 2024 15:31:05 +0800 Subject: [PATCH] small fix for bing web mode --- src/services/apis/bing-web.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/apis/bing-web.mjs b/src/services/apis/bing-web.mjs index 6cc0b617..ee0d7da4 100644 --- a/src/services/apis/bing-web.mjs +++ b/src/services/apis/bing-web.mjs @@ -76,7 +76,7 @@ export async function generateAnswersWithBingWebApi( ) } - if (response.details.sourceAttributions.length > 0) { + if (response.details.sourceAttributions && response.details.sourceAttributions.length > 0) { const footnotes = '\n\\-\n' + response.details.sourceAttributions