small fix for bing web mode

This commit is contained in:
josc146
2024-05-02 15:31:05 +08:00
parent 1263ea1b1a
commit 1fe4befa7e
+1 -1
View File
@@ -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