@@ -39,7 +39,7 @@ This section walks through a sample request with cURL. Paste the command below i
39
39
40
40
41
41
``` 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' \
43
43
--header ' Ocp-Apim-Subscription-Key: <your_subscription_key>' \
44
44
--header ' Content-Type: application/json' \
45
45
--data-raw ' {
@@ -87,7 +87,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
87
87
' Ocp-Apim-Subscription-Key' : ' < your_subscription_key> ' ,
88
88
' Content-Type' : ' application/json'
89
89
}
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)
91
91
res = conn.getresponse()
92
92
data = res.read()
93
93
print(data.decode("utf-8"))
@@ -124,7 +124,7 @@ The following fields must be included in the URL:
124
124
125
125
| Name | Required | Description | Type |
126
126
| :-------------- | :-------- | :------ | :----- |
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 |
128
128
129
129
The parameters in the request body are defined in this table:
130
130
@@ -210,7 +210,7 @@ This section walks through a sample request with cURL. Paste the command below i
210
210
211
211
212
212
``` 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' \
214
214
--header ' Ocp-Apim-Subscription-Key: <your_subscription_key>' \
215
215
--header ' Content-Type: application/json' \
216
216
--data-raw ' {
@@ -244,7 +244,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
244
244
import http.client
245
245
import json
246
246
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")
248
248
payload = json.dumps({
249
249
"domain": "Generic",
250
250
"task": "QnA",
@@ -266,7 +266,7 @@ Create a new Python file named _quickstart.py_. Open the new file in your prefer
266
266
' Ocp-Apim-Subscription-Key' : ' < your_subscription_key> ' ,
267
267
' Content-Type' : ' application/json'
268
268
}
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)
270
270
res = conn.getresponse()
271
271
data = res.read()
272
272
print(data.decode("utf-8"))
@@ -389,7 +389,7 @@ This section demonstrates a sample request using cURL. Replace the placeholders
389
389
390
390
391
391
` ` ` 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' \
393
393
--header ' Ocp-Apim-Subscription-Key: <your_subscription_key>' \
394
394
--header ' Content-Type: application/json' \
395
395
--data-raw ' {
@@ -412,7 +412,7 @@ curl --location --request POST '<endpoint>/contentsafety/text:detectGroundedness
412
412
Create a Python script named quickstart.py and include the following code. Update the endpoint URL and key as appropriate:
413
413
` ` ` Python
414
414
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" )
416
416
payload = json.dumps({
417
417
" domain" : " Generic" ,
418
418
" task" : " Summarization" ,
@@ -431,7 +431,7 @@ headers = {
431
431
' Ocp-Apim-Subscription-Key' : ' <your_subscription_key>' ,
432
432
' Content-Type' : ' application/json'
433
433
}
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)
435
435
res = conn.getresponse ()
436
436
data = res.read ()
437
437
print(data.decode(" utf-8" ))
0 commit comments