@@ -10,7 +10,7 @@ def dominant_entity_lookup(subscription_key):
1010 This will look up a single entity (Satya Nadella) and print out a short description about them.
1111 """
1212 client = EntitySearchClient (
13- endpoint = "https://api.cognitive.microsoft.com/bing/v7.0 " ,
13+ endpoint = "https://api.cognitive.microsoft.com" ,
1414 credentials = CognitiveServicesCredentials (subscription_key )
1515 )
1616
@@ -41,7 +41,7 @@ def handling_disambiguation(subscription_key):
4141 "This will handle disambiguation results for an ambiguous query (William Gates)".
4242 """
4343 client = EntitySearchClient (
44- endpoint = "https://api.cognitive.microsoft.com/bing/v7.0 " ,
44+ endpoint = "https://api.cognitive.microsoft.com" ,
4545 credentials = CognitiveServicesCredentials (subscription_key )
4646 )
4747
@@ -88,7 +88,7 @@ def restaurant_lookup(subscription_key):
8888 This will look up a single restaurant (john howie bellevue) and print out its phone number.
8989 """
9090 client = EntitySearchClient (
91- endpoint = "https://api.cognitive.microsoft.com/bing/v7.0 " ,
91+ endpoint = "https://api.cognitive.microsoft.com" ,
9292 credentials = CognitiveServicesCredentials (subscription_key )
9393 )
9494
@@ -133,7 +133,7 @@ def multiple_restaurant_lookup(subscription_key):
133133 """
134134
135135 client = EntitySearchClient (
136- endpoint = "https://api.cognitive.microsoft.com/bing/v7.0 " ,
136+ endpoint = "https://api.cognitive.microsoft.com" ,
137137 credentials = CognitiveServicesCredentials (subscription_key )
138138 )
139139
@@ -176,7 +176,7 @@ def error(subscription_key):
176176 """
177177
178178 client = EntitySearchClient (
179- endpoint = "https://api.cognitive.microsoft.com/bing/v7.0 " ,
179+ endpoint = "https://api.cognitive.microsoft.com" ,
180180 credentials = CognitiveServicesCredentials (subscription_key )
181181 )
182182
0 commit comments