@@ -39,7 +39,7 @@ This section walks through a sample request with cURL. Paste the command below i
3939
4040
4141 ``` shell
42- curl --location --request POST ' <endpoint>/contentsafety/text:detectGroundedness?api-version=2024-02 -15-preview' \
42+ curl --location --request POST ' <endpoint>/contentsafety/text:detectGroundedness?api-version=2024-09 -15-preview' \
4343 --header ' Ocp-Apim-Subscription-Key: <your_subscription_key>' \
4444 --header ' Content-Type: application/json' \
4545 --data-raw ' {
@@ -87,7 +87,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
8787 ' Ocp-Apim-Subscription-Key' : ' < your_subscription_key> ' ,
8888 ' Content-Type' : ' application/json'
8989 }
90- conn.request("POST", "/contentsafety/text:detectGroundedness?api-version=2024-02 -15-preview", payload, headers)
90+ conn.request("POST", "/contentsafety/text:detectGroundedness?api-version=2024-09 -15-preview", payload, headers)
9191 res = conn.getresponse()
9292 data = res.read()
9393 print(data.decode("utf-8"))
@@ -124,7 +124,7 @@ The following fields must be included in the URL:
124124
125125| Name | Required | Description | Type |
126126| :-------------- | :-------- | :------ | :----- |
127- | ** API Version** | Required | This is the API version to be used. The current version is: api-version=2024-02 -15-preview. Example: ` <endpoint>/contentsafety/text:detectGroundedness?api-version=2024-02 -15-preview ` | String |
127+ | ** API Version** | Required | This is the API version to be used. The current version is: api-version=2024-09 -15-preview. Example: ` <endpoint>/contentsafety/text:detectGroundedness?api-version=2024-09 -15-preview ` | String |
128128
129129The parameters in the request body are defined in this table:
130130
@@ -210,7 +210,7 @@ This section walks through a sample request with cURL. Paste the command below i
210210
211211
212212 ``` shell
213- curl --location --request POST ' <endpoint>/contentsafety/text:detectGroundedness?api-version=2024-02 -15-preview' \
213+ curl --location --request POST ' <endpoint>/contentsafety/text:detectGroundedness?api-version=2024-09 -15-preview' \
214214 --header ' Ocp-Apim-Subscription-Key: <your_subscription_key>' \
215215 --header ' Content-Type: application/json' \
216216 --data-raw ' {
@@ -244,7 +244,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
244244 import http.client
245245 import json
246246
247- conn = http.client.HTTPSConnection("<endpoint>/contentsafety/text:detectGroundedness?api-version=2024-02 -15-preview")
247+ conn = http.client.HTTPSConnection("<endpoint>/contentsafety/text:detectGroundedness?api-version=2024-09 -15-preview")
248248 payload = json.dumps({
249249 "domain": "Generic",
250250 "task": "QnA",
@@ -266,7 +266,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
266266 ' Ocp-Apim-Subscription-Key' : ' < your_subscription_key> ' ,
267267 ' Content-Type' : ' application/json'
268268 }
269- conn.request("POST", "/contentsafety/text:detectGroundedness?api-version=2024-02 -15-preview", payload, headers)
269+ conn.request("POST", "/contentsafety/text:detectGroundedness?api-version=2024-09 -15-preview", payload, headers)
270270 res = conn.getresponse()
271271 data = res.read()
272272 print(data.decode("utf-8"))
@@ -389,7 +389,7 @@ This section demonstrates a sample request using cURL. Replace the placeholders
389389
390390
391391` ` ` shell
392- curl --location --request POST ' <endpoint>/contentsafety/text:detectGroundedness?api-version=2024-02 -15-preview' \
392+ curl --location --request POST ' <endpoint>/contentsafety/text:detectGroundedness?api-version=2024-09 -15-preview' \
393393--header ' Ocp-Apim-Subscription-Key: <your_subscription_key>' \
394394--header ' Content-Type: application/json' \
395395--data-raw ' {
@@ -412,7 +412,7 @@ curl --location --request POST '<endpoint>/contentsafety/text:detectGroundedness
412412Create a Python script named quickstart.py and include the following code. Update the endpoint URL and key as appropriate:
413413` ` ` Python
414414
415- conn = http.client.HTTPSConnection(" <endpoint>/contentsafety/text:detectGroundedness?api-version=2024-02 -15-preview" )
415+ conn = http.client.HTTPSConnection(" <endpoint>/contentsafety/text:detectGroundedness?api-version=2024-09 -15-preview" )
416416payload = json.dumps({
417417 " domain" : " Generic" ,
418418 " task" : " Summarization" ,
@@ -431,7 +431,7 @@ headers = {
431431 ' Ocp-Apim-Subscription-Key' : ' <your_subscription_key>' ,
432432 ' Content-Type' : ' application/json'
433433}
434- conn.request(" POST" , " /contentsafety/text:detectGroundedness?api-version=2024-02 -15-preview" , payload, headers)
434+ conn.request(" POST" , " /contentsafety/text:detectGroundedness?api-version=2024-09 -15-preview" , payload, headers)
435435res = conn.getresponse ()
436436data = res.read ()
437437print(data.decode(" utf-8" ))
0 commit comments