Skip to content

Commit 8dd42f7

Browse files
committed
Merge branch 'main' into release-DO-NOT-MERGE-TO-MAIN-test-branch
2 parents 94f0c5f + 8edc726 commit 8dd42f7

File tree

631 files changed

+6367
-3630
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

631 files changed

+6367
-3630
lines changed

.openpublishing.redirection.defender-for-cloud.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -945,6 +945,16 @@
945945
"redirect_url": "/azure/defender-for-cloud/create-custom-recommendations",
946946
"redirect_document_id": false
947947
},
948+
{
949+
"source_path_from_root": "/articles/defender-for-cloud/view-and-remediate-vulnerabilities-for-images.md",
950+
"redirect_url": "/azure/defender-for-cloud/view-and-remediate-vulnerabilities-containers",
951+
"redirect_document_id": false
952+
},
953+
{
954+
"source_path_from_root": "/articles/defender-for-cloud/view-and-remediate-vulnerability-assessment-findings.md",
955+
"redirect_url": "/azure/defender-for-cloud/view-and-remediate-vulnerability-registry-images",
956+
"redirect_document_id": false
957+
},
948958
{
949959
"source_path_from_root": "/articles/defender-for-cloud/how-to-migrate-to-built-in.md",
950960
"redirect_url": "/azure/defender-for-cloud/how-to-transition-to-built-in",

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The maximum character limit for the grounding sources is 55,000 characters per A
5757

5858
To use this API, you must create your Azure AI Content Safety resource in the supported regions. Currently, it's available in the following Azure regions:
5959
- East US 2
60-
- East US (only for non-reasoning)
60+
- East US
6161
- West US
6262
- Sweden Central
6363

@@ -75,4 +75,4 @@ If you need a higher rate, [contact us](mailto:[email protected]
7575
Follow the quickstart to get started using Azure AI Content Safety to detect groundedness.
7676

7777
> [!div class="nextstepaction"]
78-
> [Groundedness detection quickstart](../quickstart-groundedness.md)
78+
> [Groundedness detection quickstart](../quickstart-groundedness.md)

articles/ai-services/document-intelligence/how-to-guides/includes/v4-0/rest-api.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ms.author: lajanuar
1515
>
1616
> This project uses cURL command-line tool to execute REST API calls.
1717
18-
[Document Intelligence REST API](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-2023-07-31&preserve-view=true&tabs=HTTP) | [Azure client libraries](https://azure.github.io/azure-sdk/releases/latest/index.html) | [Supported client libraries](../../../sdk-overview-v3-1.md)
18+
| [Document Intelligence REST API](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-2024-02-29-preview&preserve-view=true&tabs=HTTP) | [Supported Azure SDKS](../../../sdk-overview-v4-0.md)
1919

2020
## Prerequisites
2121

@@ -62,26 +62,26 @@ Use the following table as a reference. Replace *\<modelId>* and *\<document-url
6262
Open a console window and run the following cURL command. The commands include the endpoint and key environment variables previously created in the set environment variables section. Replace those variables if your variable names differ. Remember to replace the *\<modelId>* and *\<document-url>* parameters.
6363

6464
```console
65-
curl -i -X POST "%FR_ENDPOINT%formrecognizer/documentModels/<modelId>:analyze?api-version=2023-07-31" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: %FR_KEY%" --data-ascii "{'urlSource': '<document-url>'}"
65+
curl -i -X POST "%DI_ENDPOINT%/documentintelligence/documentModels/{modelId}:analyze?api-version=2024-02-29-preview" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: %DI_KEY%" --data-ascii "{'urlSource': '<document-url>'}"
6666
```
6767

68-
To enable add-on capabilities, use the `features` query parameter in the POST request. There are four add-on capabilities available with the `2023-07-31` (GA) release: *ocr.highResolution*, *ocr.formula*, *ocr.font*, and *queryFields.premium*. To learn more about each of the capabilities, see [Custom models](../../../concept-accuracy-confidence.md).
68+
To enable add-on capabilities, use the `features` query parameter in the POST request. There are four add-on capabilities available with the `2023-07-31` (GA) and later releases: *ocr.highResolution*, *ocr.formula*, *ocr.font*, and *queryFields.premium*. To learn more about each of the capabilities, see [Custom models](../../../concept-accuracy-confidence.md).
6969

7070
You can only call the *highResolution*, *formula*, and *font* capabilities for the Read and Layout model, and the *queryFields* capability for the General Documents model. The following example shows how to call the *highResolution*, *formula*, and *font* capabilities for the Layout model.
7171

7272
```bash
73-
curl -i -X POST "%FR_ENDPOINT%formrecognizer/documentModels/prebuilt-layout:analyze?features=ocr.highResolution,ocr.formula,ocr.font?api-version=2023-07-31" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: %FR_KEY%" --data-ascii "{'urlSource': '<document-url>'}"
73+
curl -i -X POST "%DI_ENDPOINT%documentintelligence/documentModels/prebuilt-layout:analyze?features=ocr.highResolution,ocr.formula,ocr.font?api-version=2024-02-29-preview" -H "Content-Type: application/json" -H "Ocp-Apim-Subscription-Key: %DI_KEY%" --data-ascii "{'urlSource': '<document-url>'}"
7474
```
7575

7676
### POST response
7777

7878
You receive a `202 (Success)` response that includes an `Operation-location` header. Use the value of this header to retrieve the response results.
7979

80-
:::image type="content" source="../../../media/how-to/rest-get-response.png" alt-text="Screenshot shows a POST response with the operation location highlighted.":::
80+
:::image type="content" source="../../../media/quickstarts/operation-location-result-id.png" alt-text="Screenshot shows a POST response with the operation location highlighted.":::
8181

8282
### Get analyze result (GET Request)
8383

84-
After you call the [`Analyze document`](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-2023-07-31&preserve-view=true&tabs=HTTP) API, call the [`Get analyze` result}(/rest/api/aiservices/document-models/get-analyze-result?view=rest-aiservices-2023-07-31&preserve-view=true&tabs=HTTP) API to get the status of the operation and the extracted data.
84+
After you call the [`Analyze document`](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-2024-02-29-preview&preserve-view=true&tabs=HTTP) API, call the [`Get analyze` result}(/rest/api/aiservices/document-models/get-analyze-result?view=rest-aiservices-2024-02-29-preview&preserve-view=true&tabs=HTTP) API to get the status of the operation and the extracted data.
8585

8686
<!-- markdownlint-disable MD024 -->
8787

@@ -100,7 +100,7 @@ Use the NodeJS *json tool* as a JSON formatter for cURL. If you don't have [Node
100100
1. Pretty print the JSON output by including the pipe character `| json` with your GET requests.
101101

102102
```console
103-
curl -i -X GET "<endpoint>formrecognizer/documentModels/prebuilt-read/analyzeResults/0e49604a-2d8e-4b15-b6b8-bb456e5d3e0a?api-version=2023-07-31"-H "Ocp-Apim-Subscription-Key: <subscription key>" | json
103+
curl -i -X GET "<endpoint>documentintelligence/documentModels/prebuilt-read/analyzeResults/0e49604a-2d8e-4b15-b6b8-bb456e5d3e0a?api-version=2024-02-29-preview"-H "Ocp-Apim-Subscription-Key: <subscription key>" | json
104104
```
105105

106106
#### [macOS](#tab/macOS)
@@ -110,7 +110,7 @@ The *json_pp* command tool ships with macOS and can be used as a JSON formatter
110110
- Pretty print the JSON output by including `| json_pp` with your GET requests.
111111

112112
```console
113-
curl -i -X GET "{endpoint}formrecognizer/documentModels/prebuilt-read/analyzeResults/0e49604a-2d8e-4b15-b6b8-bb456e5d3e0a?api-version=2023-07-31"-H "Ocp-Apim-Subscription-Key: <subscription key>" | json_pp
113+
curl -i -X GET "{endpoint}documentintelligence/documentModels/prebuilt-read/analyzeResults/0e49604a-2d8e-4b15-b6b8-bb456e5d3e0a?api-version=2024-02-29-preview"-H "Ocp-Apim-Subscription-Key: <subscription key>" | json_pp
114114
```
115115

116116
#### [Linux](#tab/linux)
@@ -120,7 +120,7 @@ The *json_pp* command line tool is preinstalled in most Linux distributions. If
120120
- Pretty print the JSON output by including `| json_pp` with your `GET` requests.
121121

122122
```console
123-
curl -i -X GET "<endpoint>formrecognizer/documentModels/prebuilt-read/analyzeResults/0e49604a-2d8e-4b15-b6b8-bb456e5d3e0a?api-version=2023-07-31"-H "Ocp-Apim-Subscription-Key: <subscription key>" | json_pp
123+
curl -i -X GET "<endpoint>documentintelligence/documentModels/prebuilt-read/analyzeResults/0e49604a-2d8e-4b15-b6b8-bb456e5d3e0a?api-version=2024-02-29-preview"-H "Ocp-Apim-Subscription-Key: <subscription key>" | json_pp
124124
```
125125

126126
---
@@ -130,11 +130,11 @@ The *json_pp* command line tool is preinstalled in most Linux distributions. If
130130
Before you run the following command, make these changes:
131131

132132
- Replace *\<POST response>* with the `Operation-location` header from the [POST response](#post-response).
133-
- Replace *\<FR_KEY* with the variable for your environment variable if it differs from the name in the code.
133+
- Replace *\<DI_KEY* with the variable for your environment variable if it differs from the name in the code.
134134
- Replace *\<json-tool> with your JSON formatting tool.
135135

136136
```console
137-
curl -i -X GET "<POST response>" -H "Ocp-Apim-Subscription-Key: %FR_KEY%" | `<json-tool>`
137+
curl -i -X GET "<POST response>" -H "Ocp-Apim-Subscription-Key: %DI_KEY%" | `<json-tool>`
138138
```
139139

140140
### Examine the response
29 KB
Loading

articles/ai-services/document-intelligence/quickstarts/includes/rest-api.md

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
---
2-
title: "Quickstart: Document Intelligence (formerly Form Recognizer) REST API v3.0 | v3.0"
2+
title: "Quickstart: Document Intelligence (formerly Form Recognizer) REST API"
33
titleSuffix: Azure AI services
44
description: Form and document processing, data extraction, and analysis using Document Intelligence REST API v3.0
55
author: laujan
66
manager: nitinme
77
ms.service: azure-ai-document-intelligence
88
ms.topic: include
9-
ms.date: 03/28/2024
9+
ms.date: 04/02/2024
1010
ms.author: lajanuar
1111
---
1212

1313
<!-- markdownlint-disable MD036 -->
1414

15+
:::moniker range="doc-intel-4.0.0"
16+
| [Document Intelligence REST API](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-2024-02-29-preview&preserve-view=true&tabs=HTTP) | [Supported Azure SDKS](../../sdk-overview-v4-0.md)
17+
:::moniker-end
18+
1519
:::moniker range="doc-intel-3.1.0"
1620
| [Document Intelligence REST API](/rest/api/aiservices/document-models/analyze-document?view=rest-aiservices-2023-07-31&preserve-view=true&tabs=HTTP) | [Supported Azure SDKS](../../sdk-overview-v3-1.md) |
1721
:::moniker-end
@@ -195,8 +199,8 @@ You receive a `200 (Success)` response with JSON output. The first field, `"stat
195199
```json
196200
{
197201
"status": "succeeded",
198-
"createdDateTime": "2023-11-25T19:31:37Z",
199-
"lastUpdatedDateTime": "2023-11-25T19:31:43Z",
202+
"createdDateTime": "2024-03-25T19:31:37Z",
203+
"lastUpdatedDateTime": "2024-03-25T19:31:43Z",
200204
"analyzeResult": {
201205
"apiVersion": "2024-02-29-preview",
202206
"modelId": "prebuilt-invoice",

articles/ai-services/openai/includes/assistants-csharp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.topic: include
1010
ms.date: 03/05/2024
1111
---
1212

13-
[Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/openai/Azure.AI.OpenAI/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.AI.OpenAI/)
13+
[Reference documentation](/dotnet/api/overview/azure/ai.openai.assistants-readme?context=/azure/ai-services/openai/context/context) | [Source code](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/openai/Azure.AI.OpenAI/src) | [Package (NuGet)](https://www.nuget.org/packages/Azure.AI.OpenAI/)
1414

1515
## Prerequisites
1616

articles/ai-services/openai/includes/assistants-python.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.topic: include
1010
ms.date: 02/01/2024
1111
---
1212

13-
<a href="https://github.com/openai/openai-python" target="_blank">Library source code</a> | <a href="https://pypi.org/project/openai/" target="_blank">Package (PyPi)</a> |
13+
[Reference documentation](/java/api/overview/azure/ai-openai-assistants-readme?context=/azure/ai-services/openai/context/context) | <a href="https://github.com/openai/openai-python" target="_blank">Library source code</a> | <a href="https://pypi.org/project/openai/" target="_blank">Package (PyPi)</a> |
1414

1515
## Prerequisites
1616

articles/ai-services/openai/includes/chat-completion.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ def num_tokens_from_messages(messages, model="gpt-3.5-turbo-0613"):
502502
return num_tokens_from_messages(messages, model="gpt-4-0613")
503503
else:
504504
raise NotImplementedError(
505-
f"""num_tokens_from_messages() is not implemented for model {model}. See https://github.com/openai/openai-python/blob/main/chatml.md for information on how messages are converted to tokens."""
505+
f"""num_tokens_from_messages() is not implemented for model {model}."""
506506
)
507507
num_tokens = 0
508508
for message in messages:

articles/ai-services/openai/includes/chat-markup-language.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ print(response['choices'][0]['text'])
4040
> [!NOTE]
4141
> The following parameters aren't available with the gpt-35-turbo model: `logprobs`, `best_of`, and `echo`. If you set any of these parameters, you'll get an error.
4242
43-
The `<|im_end|>` token indicates the end of a message. We recommend including `<|im_end|>` token as a stop sequence to ensure that the model stops generating text when it reaches the end of the message. You can read more about the special tokens in the [Chat Markup Language (ChatML)](#chatml) section.
43+
The `<|im_end|>` token indicates the end of a message. We recommend including `<|im_end|>` token as a stop sequence to ensure that the model stops generating text when it reaches the end of the message.
4444

4545
Consider setting `max_tokens` to a slightly higher value than normal such as 300 or 500. This ensures that the model doesn't stop generating text before it reaches the end of the message.
4646

articles/ai-services/speech-service/speech-synthesis-markup-pronunciation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ The speech synthesis engine speaks the following example as "World Wide Web Cons
291291
The Mathematical Markup Language (MathML) is an XML-compliant markup language that describes mathematical content and structure. The Speech service can use the MathML as input text to properly pronounce mathematical notations in the output audio.
292292

293293
> [!NOTE]
294-
> The MathML elements (tags) are currently supported by all neural voices in the `en-US` and `en-AU` locales.
294+
> The MathML elements (tags) are currently supported in the following locales: `de-DE`, `en-AU`, `en-GB`, `en-US`, `es-ES`, `es-MX`, `fr-CA`, `fr-FR`, `it-IT`, `ja-JP`, `ko-KR`, `pt-BR`, and `zh-CN`.
295295
296296
All elements from the [MathML 2.0](https://www.w3.org/TR/MathML2/) and [MathML 3.0](https://www.w3.org/TR/MathML3/) specifications are supported, except the MathML 3.0 [Elementary Math](https://www.w3.org/TR/MathML3/chapter3.html#presm.elementary) elements.
297297

0 commit comments

Comments
 (0)