Skip to content

Commit 8aa7863

Browse files
Merge pull request #565 from PatrickFarley/consaf-updates
update api version
2 parents 21adfd4 + be30e45 commit 8aa7863

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

articles/ai-services/content-safety/quickstart-groundedness.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

129129
The 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
412412
Create 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")
416416
payload = 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)
435435
res = conn.getresponse()
436436
data = res.read()
437437
print(data.decode("utf-8"))

0 commit comments

Comments
 (0)