You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Endpoints are not region-based anymore, but rather custom domain -based. Although regional endpoints will still work. Also, the authentication information is moving to a standard of getting it from environment variables.
Copy file name to clipboardExpand all lines: nodejs/Search/BingSpellCheckv7.js
+6-4Lines changed: 6 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,13 @@
2
2
3
3
lethttps=require('https');
4
4
5
-
lethost='api.cognitive.microsoft.com';
5
+
// Add your Bing Spell Check endpoint to your environment variables.
6
+
lethost=process.env['BING_SPELL_CHECK_ENDPOINT']
6
7
letpath='/bing/v7.0/spellcheck';
7
8
8
-
/* NOTE: Replace this example key with a valid subscription key (see the Prequisites section above). Also note v5 and v7 require separate subscription keys. */
9
-
letkey='ENTER KEY HERE';
9
+
// Add your Bing Spell Check subscription key to your environment variables.
10
+
// Also note v5 and v7 require separate subscription keys.
0 commit comments