Skip to content

Commit

Permalink
small fix for bing web mode
Browse files Browse the repository at this point in the history
  • Loading branch information
josStorer committed May 2, 2024
1 parent 1263ea1 commit 1fe4bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/apis/bing-web.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1fe4bef

Please sign in to comment.