Skip to content

Commit fbba11f

Browse files
committed
Merge branch 'main' into release-preview-p2s
2 parents eb3e975 + b70a526 commit fbba11f

File tree

583 files changed

+5790
-2005
lines changed

Some content is hidden

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

583 files changed

+5790
-2005
lines changed

articles/active-directory-b2c/oauth2-error-technical-profile.md

Lines changed: 52 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ manager: CelesteDG
99
ms.service: active-directory
1010

1111
ms.topic: reference
12-
ms.date: 01/11/2024
12+
ms.date: 05/07/2024
1313
ms.author: kengaderdus
1414
ms.subservice: B2C
1515

@@ -73,6 +73,43 @@ The following example shows a technical profile for `ReturnOAuth2Error`:
7373
</ClaimsProviders> -->
7474
```
7575

76+
## Define claims transformation to generate custom values of error code and error message
77+
78+
Use these steps to generate custom values of error code and error message:
79+
80+
1. Locate the `ClaimsTransformations` element, then add the following code inside it
81+
82+
```xml
83+
<!--
84+
<ClaimsTransformations> -->
85+
<ClaimsTransformation Id="GenerateErrorCode" TransformationMethod="CreateStringClaim">
86+
<InputParameters>
87+
<InputParameter Id="value" DataType="string" Value="Error_001" />
88+
</InputParameters>
89+
<OutputClaims>
90+
<OutputClaim ClaimTypeReferenceId="errorCode" TransformationClaimType="createdClaim" />
91+
</OutputClaims>
92+
</ClaimsTransformation>
93+
<ClaimsTransformation Id="GenerateErrorMessage" TransformationMethod="CreateStringClaim">
94+
<InputParameters>
95+
<InputParameter Id="value" DataType="string" Value="Insert error description." />
96+
</InputParameters>
97+
<OutputClaims>
98+
<OutputClaim ClaimTypeReferenceId="errorMessage" TransformationClaimType="createdClaim" />
99+
</OutputClaims>
100+
</ClaimsTransformation>
101+
<!--
102+
</ClaimsTransformations> -->
103+
```
104+
105+
1. Add the two claims transformations in the `OutputClaimsTransformations` element of any technical profile before Oauth2 technical that you define:
106+
107+
```xml
108+
<OutputClaimsTransformations>
109+
<OutputClaimsTransformation ReferenceId="generateErrorCode" />
110+
<OutputClaimsTransformation ReferenceId="generateErrorMessage" />
111+
</OutputClaimsTransformations>
112+
```
76113
## Input claims
77114

78115
The **InputClaims** element contains a list of claims required to return OAuth2 error.
@@ -123,6 +160,20 @@ In the following example:
123160
</UserJourney>
124161
```
125162

163+
Optionally, you can use preconditions to manipulate the Oauth2 error technical profile. For example, if there is no email claim, you can set to call Oauth2 error technical profile:
164+
165+
```xml
166+
<OrchestrationStep Order="3" Type="SendClaims" CpimIssuerTechnicalProfileReferenceId="ReturnOAuth2Error">
167+
<Preconditions>
168+
<Precondition Type="ClaimsExist" ExecuteActionsIf="false">
169+
<Value>email</Value>
170+
<Action>SkipThisOrchestrationStep</Action>
171+
</Precondition>
172+
</Preconditions>
173+
</OrchestrationStep>
174+
```
175+
176+
126177
## Next steps
127178

128179
Learn about [UserJourneys](userjourneys.md)

articles/ai-services/openai/concepts/model-retirements.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ These models are currently available for use in Azure OpenAI Service.
6666
| `gpt-35-turbo` | 0125 | No earlier than Feb 22, 2025 |
6767
| `gpt-4`<br>`gpt-4-32k` | 0314 | No earlier than July 13, 2024 |
6868
| `gpt-4`<br>`gpt-4-32k` | 0613 | No earlier than Sep 30, 2024 |
69-
| `gpt-4` | 1106-preview | To be upgraded to `gpt-4` Version: `turbo-2024-04-09`, starting on June 10, 2024, or later **<sup>1</sup>** |
70-
| `gpt-4` | 0125-preview |To be upgraded to `gpt-4` Version: `turbo-2024-04-09`, starting on June 10, 2024, or later **<sup>1</sup>** |
71-
| `gpt-4` | vision-preview | To be upgraded to `gpt-4` Version: `turbo-2024-04-09`, starting on June 10, 2024, or later **<sup>1</sup>** |
69+
| `gpt-4` | 1106-preview | To be upgraded to `gpt-4` Version: `turbo-2024-04-09`, starting on July 15, 2024, or later **<sup>1</sup>** |
70+
| `gpt-4` | 0125-preview |To be upgraded to `gpt-4` Version: `turbo-2024-04-09`, starting on July 15, 2024, or later **<sup>1</sup>** |
71+
| `gpt-4` | vision-preview | To be upgraded to `gpt-4` Version: `turbo-2024-04-09`, starting on July 15, 2024, or later **<sup>1</sup>** |
7272
| `gpt-3.5-turbo-instruct` | 0914 | No earlier than Sep 14, 2025 |
7373
| `text-embedding-ada-002` | 2 | No earlier than April 3, 2025 |
7474
| `text-embedding-ada-002` | 1 | No earlier than April 3, 2025 |

articles/ai-services/openai/faq.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,7 @@ sections:
265265
answer: |
266266
* Inference cost (input and output) of the base model you're using for each Assistant (for example gpt-4-0125). If you've created multiple Assistants, you will be charged for the base model attached to each Assistant.
267267
* If you've enabled the Code Interpreter tool. For example if your assistant calls Code Interpreter simultaneously in two different threads, this would create two Code Interpreter sessions, each of which would be charged. Each session is active by default for one hour, which means that you would only pay this fee once if your user keeps giving instructions to Code Interpreter in the same thread for up to one hour.
268+
* File search is currently not billed.
268269
269270
For more information, see the [pricing page](https://azure.microsoft.com/pricing/details/cognitive-services/openai-service/).
270271
- question: |

articles/ai-services/speech-service/captioning-concepts.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ The following are aspects to consider when using captioning:
2727
* Let your audience know that captions are generated by an automated service.
2828
* Center captions horizontally on the screen, in a large and prominent font.
2929
* Consider whether to use partial results, when to start displaying captions, and how many words to show at a time.
30-
* Learn about captioning protocols such as [SMPTE-TT](https://ieeexplore.ieee.org/document/7291854).
30+
* Learn about captioning protocols such as [SMPTE-TT](https://pub.smpte.org/doc/st2052-1/20101203-pub/st2052-1-2010.pdf).
3131
* Consider output formats such as SRT (SubRip Text) and WebVTT (Web Video Text Tracks). These can be loaded onto most video players such as VLC, automatically adding the captions on to your video.
3232

3333
> [!TIP]

articles/ai-services/speech-service/includes/speech-studio-vnet.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ This section describes working with the different kind of Speech Studio projects
2626
1. In the **Resource Management** group in the left pane, select **Networking** > **Firewalls and virtual networks**.
2727
1. Select one option from **All networks**, **Selected Networks and Private Endpoints**, or **Disabled**.
2828

29-
#### Custom speech
29+
#### Custom speech, Custom voice and Audio Content Creation
3030

31-
The following table describes custom speech project accessibility per Speech resource **Networking** > **Firewalls and virtual networks** security setting.
31+
The following table describes custom speech/custom voice/audio content creation project accessibility per Speech resource **Networking** > **Firewalls and virtual networks** security setting.
3232

3333
> [!NOTE]
3434
> If you allow only private endpoints via the **Networking** > **Private endpoint connections** tab, then you can't use Speech Studio with the Speech resource. You can still use the Speech resource outside of Speech Studio.
@@ -47,6 +47,4 @@ To use custom speech without relaxing network access restrictions on your produc
4747
* Create another Speech resource for development that can be used on a public network. Prepare your custom model in Speech Studio on the development resource, and then copy the model to your production resource. See the [Models_CopyTo](/rest/api/speechtotext/models/copy-to) REST request with [Speech to text REST API](../rest-speech-to-text.md).
4848
* You have the option to not use Speech Studio for custom speech. Use the [Speech to text REST API](../rest-speech-to-text.md) for all custom speech operations.
4949

50-
#### Custom voice and Audio Content Creation
51-
52-
You can use custom voice and Audio Content Creation Speech Studio projects only when the Speech resource network security setting is **All networks**.
50+
To use custom voice without relaxing network access restrictions on your production Speech resource, consider Use the [Custom voice REST API](/rest/api/speechapi/operation-groups?&preserve-view=true=rest-speechapi-2023-12-01-preview) for all custom voice operations.

articles/ai-services/translator/document-translation/reference/translate-document.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Query string parameters:
7272

7373
|Name |Description|Content Type|Condition|
7474
|---|---|---|---|
75-
|**document**| Source document to be translated.|Any one of the [supported document formats](../../language-support.md).|***Required***|
75+
|**document**| Source document to be translated.|Any one of the [supported document formats](../overview.md#synchronous-supported-document-formats).|***Required***|
7676
|**glossary**|Document containing a list of terms with definitions to use during the translation process.|Any one of the supported [glossary formats](get-supported-glossary-formats.md).|***Optional***|
7777

7878
## Next steps

articles/ai-services/translator/reference/v3-0-break-sentence.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88

99
ms.service: azure-ai-translator
1010
ms.topic: reference
11-
ms.date: 07/18/2023
11+
ms.date: 06/06/2024
1212
ms.author: lajanuar
1313
---
1414

@@ -41,9 +41,9 @@ Request headers include:
4141

4242
| Headers | Description |
4343
| ------- | ----------- |
44-
| Authentication header(s) <img width=200/> | **Required request header**.<br/>See <a href="v3-0-reference.md#authentication">available options for authentication</a>. |
44+
| Authentication headers <img width=200/> | **Required request header**.<br/>See <a href="v3-0-reference.md#authentication">available options for authentication</a>. |
4545
| Content-Type | **Required request header**.<br/>Specifies the content type of the payload. Possible values are: `application/json`. |
46-
| Content-Length | **Required request header**.<br/>The length of the request body. |
46+
| Content-Length | **Optional**.<br/>The length of the request body. |
4747
| X-ClientTraceId | **Optional**.<br/>A client-generated GUID to uniquely identify the request. You can omit this header if you include the trace ID in the query string using a query parameter named `ClientTraceId`. |
4848

4949
## Request body
@@ -99,7 +99,7 @@ An example JSON response is:
9999

100100
|Headers|Description|
101101
|--- |--- |
102-
|X-RequestId|Value generated by the service to identify the request. It's used for troubleshooting purposes.|
102+
|X-RequestId|Value generated by the service to identify the request and used for troubleshooting purposes.|
103103

104104
## Response status codes
105105

@@ -110,8 +110,8 @@ The following are the possible HTTP status codes that a request returns.
110110
|200|Success.|
111111
|400|One of the query parameters is missing or not valid. Correct request parameters before retrying.|
112112
|401|The request couldn't be authenticated. Check that credentials are specified and valid.|
113-
|403|The request isn't authorized. Check the details error message. This response code often indicates that all free translations provided with a trial subscription have been used up.|
114-
|429|The server rejected the request because the client has exceeded request limits.|
113+
|403|The request isn't authorized. Check the details error message. This response code often indicates that all free translations provided with a trial subscription are used.|
114+
|429|The server rejected the request because the client exceeded request limits.|
115115
|500|An unexpected error occurred. If the error persists, report it with: date and time of the failure, request identifier from response header `X-RequestId`, and client identifier from request header `X-ClientTraceId`.|
116116
|503|Server temporarily unavailable. Retry the request. If the error persists, report it with: date and time of the failure, request identifier from response header `X-RequestId`, and client identifier from request header `X-ClientTraceId`.|
117117

articles/ai-services/translator/reference/v3-0-detect.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88

99
ms.service: azure-ai-translator
1010
ms.topic: reference
11-
ms.date: 09/19/2023
11+
ms.date: 06/06/2024
1212
ms.author: lajanuar
1313
---
1414

@@ -40,10 +40,10 @@ Request headers include:
4040

4141
| Headers | Description |
4242
| --- | --- |
43-
| Authentication header(s) | <em>Required request header</em>.<br>See [available options for authentication](./v3-0-reference.md#authentication)</a>. |
44-
| Content-Type | *Required request header*.<br>Specifies the content type of the payload. Possible values are: `application/json`. |
45-
| Content-Length | *Required request header*.<br>The length of the request body. |
46-
| X-ClientTraceId | *Optional*.<br>A client-generated GUID to uniquely identify the request. You can omit this header if you include the trace ID in the query string using a query parameter named `ClientTraceId`. |
43+
| Authentication headers | <em>Required request header</em>.<br>See [available options for authentication](./v3-0-reference.md#authentication)</a>. |
44+
| Content-Type | _Required request header_.<br>Specifies the content type of the payload. Possible values are: `application/json`. |
45+
| Content-Length | _Optional_.<br>The length of the request body. |
46+
| X-ClientTraceId | _Optional_.<br>A client-generated GUID to uniquely identify the request. You can omit this header if you include the trace ID in the query string using a query parameter named `ClientTraceId`. |
4747

4848
## Request body
4949

@@ -72,7 +72,7 @@ A successful response is a JSON array with one result for each string in the inp
7272

7373
* `isTransliterationSupported`: A boolean value that is true if the detected language is one of the languages supported for transliteration.
7474

75-
* `alternatives`: An array of other possible languages. Each element of the array is another object the following properties: `language`, `score`, `isTranslationSupported` and `isTransliterationSupported`.
75+
* `alternatives`: An array of other possible languages. Each element of the array is another object the following properties: `language`, `score`, `isTranslationSupported`, and `isTransliterationSupported`.
7676

7777
An example JSON response is:
7878

@@ -98,7 +98,7 @@ An example JSON response is:
9898

9999
| Headers | Description |
100100
| --- | --- |
101-
| X-RequestId | Value generated by the service to identify the request. It's used for troubleshooting purposes. |
101+
| X-RequestId | Value generated by the service to identify the request and used for troubleshooting purposes. |
102102

103103
## Response status codes
104104

@@ -109,8 +109,8 @@ The following are the possible HTTP status codes that a request returns.
109109
| 200 | Success. |
110110
| 400 | One of the query parameters is missing or not valid. Correct request parameters before retrying. |
111111
| 401 | The request couldn't be authenticated. Check that credentials are specified and valid. |
112-
| 403 | The request isn't authorized. Check the details error message. This code often indicates that all free translations provided with a trial subscription have been used up. |
113-
| 429 | The server rejected the request because the client has exceeded request limits. |
112+
| 403 | The request isn't authorized. Check the details error message. This code often indicates that all free translations provided with a trial subscription are used. |
113+
| 429 | The server rejected the request because the client exceeded request limits. |
114114
| 500 | An unexpected error occurred. If the error persists, report it with: date and time of the failure, request identifier from response header `X-RequestId`, and client identifier from request header `X-ClientTraceId`. |
115115
| 503 | Server temporarily unavailable. Retry the request. If the error persists, report it with: date and time of the failure, request identifier from response header `X-RequestId`, and client identifier from request header `X-ClientTraceId`. |
116116

articles/ai-services/translator/reference/v3-0-dictionary-examples.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88

99
ms.service: azure-ai-translator
1010
ms.topic: reference
11-
ms.date: 09/19/2023
11+
ms.date: 06/06/2024
1212
ms.author: lajanuar
1313
---
1414
<!-- markdownlint-disable MD033 -->
@@ -41,9 +41,9 @@ Request headers include:
4141

4242
| Headers | Description |
4343
| ------ | ----------- |
44-
| Authentication header(s) <img width=200/> | **Required request header**.<br>See [Authentication](v3-0-reference.md#authentication)>available options for authentication</a>. |
44+
| Authentication headers <img width=200/> | **Required request header**.<br>See [Authentication](v3-0-reference.md#authentication)>available options for authentication</a>. |
4545
| Content-Type | **Required request header**.<br>Specifies the content type of the payload. Possible values are: `application/json`. |
46-
| Content-Length | **Required request header**.<br>The length of the request body. |
46+
| Content-Length | **Optional**.<br>The length of the request body. |
4747
| X-ClientTraceId | **Optional**.<br>A client-generated GUID to uniquely identify the request. You can omit this header if you include the trace ID in the query string using a query parameter named `ClientTraceId`. |
4848

4949
## Request body
@@ -77,11 +77,11 @@ A successful response is a JSON array with one result for each string in the inp
7777

7878
* `examples`: A list of examples for the (source term, target term) pair. Each element of the list is an object with the following properties:
7979

80-
* `sourcePrefix`: The string to concatenate _before_ the value of `sourceTerm` to form a complete example. Don't add a space character, since it's already there when it should be. This value may be an empty string.
80+
* `sourcePrefix`: The string to concatenate _before_ the value of `sourceTerm` to form a complete example. Don't add a space character, since it's already there when it should be. This value can be an empty string.
8181

8282
* `sourceTerm`: A string equal to the actual term looked up. The string is added with `sourcePrefix` and `sourceSuffix` to form the complete example. Its value is separated so it can be marked in a user interface, for example, by bolding it.
8383

84-
* `sourceSuffix`: The string to concatenate _after_ the value of `sourceTerm` to form a complete example. Don't add a space character, since it's already there when it should be. This value may be an empty string.
84+
* `sourceSuffix`: The string to concatenate _after_ the value of `sourceTerm` to form a complete example. Don't add a space character, since it's already there when it should be. This value can be an empty string.
8585

8686
* `targetPrefix`: A string similar to `sourcePrefix` but for the target.
8787

0 commit comments

Comments
 (0)