Skip to content

Commit 1fe4bef

Browse files
committed
small fix for bing web mode
1 parent 1263ea1 commit 1fe4bef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/services/apis/bing-web.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export async function generateAnswersWithBingWebApi(
7676
)
7777
}
7878

79-
if (response.details.sourceAttributions.length > 0) {
79+
if (response.details.sourceAttributions && response.details.sourceAttributions.length > 0) {
8080
const footnotes =
8181
'\n\\-\n' +
8282
response.details.sourceAttributions

0 commit comments

Comments
 (0)