Skip to content

Commit 49264a8

Browse files
authored
Merge pull request #271673 from MicrosoftDocs/main
4/9/2024 PM Publish
2 parents 1f3d621 + 608f575 commit 49264a8

File tree

100 files changed

+1275
-980
lines changed

Some content is hidden

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

100 files changed

+1275
-980
lines changed

.openpublishing.redirection.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1070,6 +1070,11 @@
10701070
"redirect_url": "/azure/container-instances/container-instances-resource-and-quota-limits",
10711071
"redirect_document_id": false
10721072
},
1073+
{
1074+
"source_path_from_root": "/articles/container-instances/tutorial-docker-compose.md",
1075+
"redirect_url": "/azure/container-instances/container-instances-multi-container-group",
1076+
"redirect_document_id": false
1077+
},
10731078
{
10741079
"source_path_from_root": "/articles/cassandra-managed-instance/compare-cosmosdb-managed-instance.md",
10751080
"redirect_url": "/azure/managed-instance-apache-cassandra/compare-cosmosdb-managed-instance",
@@ -3964,6 +3969,11 @@
39643969
"source_path_from_root":"/articles/virtual-network-manager/concept-security-admin-rules-network-groups.md",
39653970
"redirect_url":"/azure/virtual-network-manager/overview",
39663971
"redirect_document_id":false
3972+
},
3973+
{
3974+
"source_path_from_root":"/articles/trusted-signing/concept.md",
3975+
"redirect_url":"/azure/trusted-signing/concept-trustedsigning-resources-roles",
3976+
"redirect_document_id":false
39673977
}
39683978
]
39693979
}

.openpublishing.redirection.virtual-desktop.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,11 @@
404404
"source_path_from_root": "/articles/virtual-desktop/whats-new-client-microsoft-store.md",
405405
"redirect_url": "/azure/virtual-desktop/whats-new-client-windows",
406406
"redirect_document_id": false
407+
},
408+
{
409+
"source_path_from_root": "/articles/virtual-desktop/autoscale-scaling-plan.md",
410+
"redirect_url": "/azure/virtual-desktop/autoscale-create-assign-scaling-plan",
411+
"redirect_document_id": true
407412
}
408413
]
409414
}

articles/ai-services/cognitive-services-virtual-networks.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ manager: nitinme
88
ms.service: azure-ai-services
99
ms.custom: devx-track-azurepowershell, devx-track-azurecli
1010
ms.topic: how-to
11-
ms.date: 03/25/2024
11+
ms.date: 04/05/2024
1212
ms.author: aahi
1313
---
1414

@@ -60,6 +60,8 @@ Virtual networks are supported in [regions where Azure AI services are available
6060
> - `CognitiveServicesManagement`
6161
> - `CognitiveServicesFrontEnd`
6262
> - `Storage` (Speech Studio only)
63+
>
64+
> For information on configuring Azure AI Studio, see the [Azure AI Studio documentation](../ai-studio/how-to/configure-private-link.md).
6365
6466
## Change the default network access rule
6567

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ To use this API, you must create your Azure AI Content Safety resource in the su
6565

6666
| Pricing Tier | Requests per 10 seconds |
6767
| :----------- | :--------------------------- |
68-
| F0 | 10 |
69-
| S0 | 10 |
68+
| F0 | 50 |
69+
| S0 | 50 |
7070

7171
If you need a higher rate, [contact us](mailto:[email protected]) to request it.
7272

articles/ai-services/openai/how-to/reproducible-output.md

Lines changed: 29 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
22
title: 'How to generate reproducible output with Azure OpenAI Service'
33
titleSuffix: Azure OpenAI
4-
description: Learn how to generate reproducible output (preview) with Azure OpenAI Service
4+
description: Learn how to generate reproducible output (preview) with Azure OpenAI Service.
55
services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-openai
88
ms.topic: how-to
9-
ms.date: 11/17/2023
9+
ms.date: 04/09/2024
1010
author: mrbullwinkle
1111
ms.author: mbullwin
1212
recommendations: false
@@ -15,20 +15,22 @@ recommendations: false
1515

1616
# Learn how to use reproducible output (preview)
1717

18-
By default if you ask an Azure OpenAI Chat Completion model the same question multiple times you are likely to get a different response. The responses are therefore considered to be non-deterministic. Reproducible output is a new preview feature that allows you to selectively change the default behavior towards producing more deterministic outputs.
18+
By default if you ask an Azure OpenAI Chat Completion model the same question multiple times you're likely to get a different response. The responses are therefore considered to be non-deterministic. Reproducible output is a new preview feature that allows you to selectively change the default behavior to help product more deterministic outputs.
1919

2020
## Reproducible output support
2121

2222
Reproducible output is only currently supported with the following:
2323

2424
### Supported models
2525

26-
- `gpt-4-1106-preview` ([region availability](../concepts/models.md#gpt-4-and-gpt-4-turbo-preview-model-availability))
27-
- `gpt-35-turbo-1106` ([region availability)](../concepts/models.md#gpt-35-turbo-model-availability))
26+
* `gpt-35-turbo` (1106) - [region availability](../concepts/models.md#gpt-35-turbo-model-availability)
27+
* `gpt-35-turbo` (0125) - [region availability](../concepts/models.md#gpt-35-turbo-model-availability)
28+
* `gpt-4` (1106-Preview) - [region availability](../concepts/models.md#gpt-4-and-gpt-4-turbo-preview-model-availability)
29+
* `gpt-4` (0125-Preview) - [region availability](../concepts/models.md#gpt-4-and-gpt-4-turbo-preview-model-availability)
2830

2931
### API Version
3032

31-
- `2023-12-01-preview`
33+
Support for reproducible output was first added in API version [`2023-12-01-preview`](https://github.com/Azure/azure-rest-api-specs/blob/main/specification/cognitiveservices/data-plane/AzureOpenAI/inference/preview/2023-12-01-preview/inference.json)
3234

3335
## Example
3436

@@ -43,17 +45,17 @@ from openai import AzureOpenAI
4345
client = AzureOpenAI(
4446
azure_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT"),
4547
api_key=os.getenv("AZURE_OPENAI_API_KEY"),
46-
api_version="2023-12-01-preview"
48+
api_version="2024-02-01"
4749
)
4850

4951
for i in range(3):
5052
print(f'Story Version {i + 1}\n---')
5153

5254
response = client.chat.completions.create(
53-
model="gpt-4-1106-preview", # Model = should match the deployment name you chose for your 1106-preview model deployment
55+
model="gpt-35-turbo-0125", # Model = should match the deployment name you chose for your 0125-preview model deployment
5456
#seed=42,
5557
temperature=0.7,
56-
max_tokens =200,
58+
max_tokens =50,
5759
messages=[
5860
{"role": "system", "content": "You are a helpful assistant."},
5961
{"role": "user", "content": "Tell me a story about how the universe began?"}
@@ -72,7 +74,7 @@ for i in range(3):
7274
$openai = @{
7375
api_key = $Env:AZURE_OPENAI_API_KEY
7476
api_base = $Env:AZURE_OPENAI_ENDPOINT # like the following https://YOUR_RESOURCE_NAME.openai.azure.com/
75-
api_version = '2023-12-01-preview' # may change in the future
77+
api_version = '2024-02-01' # may change in the future
7678
name = 'YOUR-DEPLOYMENT-NAME-HERE' # name you chose for your deployment
7779
}
7880
@@ -93,7 +95,7 @@ $messages += @{
9395
$body = @{
9496
#seed = 42
9597
temperature = 0.7
96-
max_tokens = 200
98+
max_tokens = 50
9799
messages = $messages
98100
} | ConvertTo-Json
99101
@@ -112,34 +114,17 @@ for ($i=0; $i -le 2; $i++) {
112114
```output
113115
Story Version 1
114116
---
115-
In the beginning, there was nothingness, a vast expanse of empty space, a blank canvas waiting to be painted with the wonders of existence. Then, approximately 13.8 billion years ago, something extraordinary happened, an event that would mark the birth of the universe – the Big Bang.
116-
117-
The Big Bang was not an explosion in the conventional sense but rather an expansion, an incredibly rapid stretching of space that took place everywhere in the universe at once. In just a fraction of a second, the universe grew from smaller than a single atom to an incomprehensibly large expanse.
118-
119-
In these first moments, the universe was unimaginably hot and dense, filled with a seething soup of subatomic particles and radiant energy. As the universe expanded, it began to cool, allowing the first particles to form. Protons and neutrons came together to create the first simple atomic nuclei in a process known as nucleosynthesis.
120-
121-
For hundreds of thousands of years, the universe continued to cool and expand
117+
Once upon a time, before there was time, there was nothing but a vast emptiness. In this emptiness, there existed a tiny, infinitely dense point of energy. This point contained all the potential for the universe as we know it. And
122118
---
123119
124120
Story Version 2
125121
---
126-
Once upon a time, in the vast expanse of nothingness, there was a moment that would come to define everything. This moment, a tiny fraction of a second that would be forever known as the Big Bang, marked the birth of the universe as we know it.
127-
128-
Before this moment, there was no space, no time, just an infinitesimally small point of pure energy, a singularity where all the laws of physics as we understand them did not apply. Then, suddenly, this singular point began to expand at an incredible rate. In a cosmic symphony of creation, matter, energy, space, and time all burst forth into existence.
129-
130-
The universe was a hot, dense soup of particles, a place of unimaginable heat and pressure. It was in this crucible of creation that the simplest elements were formed. Hydrogen and helium, the building blocks of the cosmos, came into being.
131-
132-
As the universe continued to expand and cool, these primordial elements began to co
122+
Once upon a time, long before the existence of time itself, there was nothing but darkness and silence. The universe lay dormant, a vast expanse of emptiness waiting to be awakened. And then, in a moment that defies comprehension, there
133123
---
134124
135125
Story Version 3
136126
---
137-
Once upon a time, in the vast expanse of nothingness, there was a singularity, an infinitely small and infinitely dense point where all the mass and energy of what would become the universe were concentrated. This singularity was like a tightly wound cosmic spring holding within it the potential of everything that would ever exist.
138-
139-
Then, approximately 13.8 billion years ago, something extraordinary happened. This singularity began to expand in an event we now call the Big Bang. In just a fraction of a second, the universe grew exponentially during a period known as cosmic inflation. It was like a symphony's first resounding chord, setting the stage for a cosmic performance that would unfold over billions of years.
140-
141-
As the universe expanded and cooled, the fundamental forces of nature that we know today – gravity, electromagnetism, and the strong and weak nuclear forces – began to take shape. Particles of matter were created and began to clump together under the force of gravity, forming the first atoms
142-
---
127+
Once upon a time, before time even existed, there was nothing but darkness and stillness. In this vast emptiness, there was a tiny speck of unimaginable energy and potential. This speck held within it all the elements that would come
143128
```
144129

145130
Notice that while each story might have similar elements and some verbatim repetition the longer the response goes on the more they tend to diverge.
@@ -155,17 +140,17 @@ from openai import AzureOpenAI
155140
client = AzureOpenAI(
156141
azure_endpoint = os.getenv("AZURE_OPENAI_ENDPOINT"),
157142
api_key=os.getenv("AZURE_OPENAI_API_KEY"),
158-
api_version="2023-12-01-preview"
143+
api_version="2024-02-01"
159144
)
160145

161146
for i in range(3):
162147
print(f'Story Version {i + 1}\n---')
163148

164149
response = client.chat.completions.create(
165-
model="gpt-4-1106-preview", # Model = should match the deployment name you chose for your 1106-preview model deployment
150+
model="gpt-35-turbo-0125", # Model = should match the deployment name you chose for your 0125-preview model deployment
166151
seed=42,
167152
temperature=0.7,
168-
max_tokens =200,
153+
max_tokens =50,
169154
messages=[
170155
{"role": "system", "content": "You are a helpful assistant."},
171156
{"role": "user", "content": "Tell me a story about how the universe began?"}
@@ -184,7 +169,7 @@ for i in range(3):
184169
$openai = @{
185170
api_key = $Env:AZURE_OPENAI_API_KEY
186171
api_base = $Env:AZURE_OPENAI_ENDPOINT # like the following https://YOUR_RESOURCE_NAME.openai.azure.com/
187-
api_version = '2023-12-01-preview' # may change in the future
172+
api_version = '2024-02-01' # may change in the future
188173
name = 'YOUR-DEPLOYMENT-NAME-HERE' # name you chose for your deployment
189174
}
190175
@@ -205,7 +190,7 @@ $messages += @{
205190
$body = @{
206191
seed = 42
207192
temperature = 0.7
208-
max_tokens = 200
193+
max_tokens = 50
209194
messages = $messages
210195
} | ConvertTo-Json
211196
@@ -224,33 +209,26 @@ for ($i=0; $i -le 2; $i++) {
224209
```
225210
Story Version 1
226211
---
227-
In the beginning, there was nothing but a vast emptiness, a void without form or substance. Then, from this nothingness, a singular event occurred that would change the course of existence forever—The Big Bang.
228-
229-
Around 13.8 billion years ago, an infinitely hot and dense point, no larger than a single atom, began to expand at an inconceivable speed. This was the birth of our universe, a moment where time and space came into being. As this primordial fireball grew, it cooled, and the fundamental forces that govern the cosmos—gravity, electromagnetism, and the strong and weak nuclear forces—began to take shape.
230-
231-
Matter coalesced into the simplest elements, hydrogen and helium, which later formed vast clouds in the expanding universe. These clouds, driven by the force of gravity, began to collapse in on themselves, creating the first stars. The stars were crucibles of nuclear fusion, forging heavier elements like carbon, nitrogen, and oxygen
212+
In the beginning, there was nothing but darkness and silence. Then, suddenly, a tiny point of light appeared. This point of light contained all the energy and matter that would eventually form the entire universe. With a massive explosion known as the Big Bang
232213
---
233214
234215
Story Version 2
235216
---
236-
In the beginning, there was nothing but a vast emptiness, a void without form or substance. Then, from this nothingness, a singular event occurred that would change the course of existence forever—The Big Bang.
237-
238-
Around 13.8 billion years ago, an infinitely hot and dense point, no larger than a single atom, began to expand at an inconceivable speed. This was the birth of our universe, a moment where time and space came into being. As this primordial fireball grew, it cooled, and the fundamental forces that govern the cosmos—gravity, electromagnetism, and the strong and weak nuclear forces—began to take shape.
239-
240-
Matter coalesced into the simplest elements, hydrogen and helium, which later formed vast clouds in the expanding universe. These clouds, driven by the force of gravity, began to collapse in on themselves, creating the first stars. The stars were crucibles of nuclear fusion, forging heavier elements like carbon, nitrogen, and oxygen
217+
In the beginning, there was nothing but darkness and silence. Then, suddenly, a tiny point of light appeared. This point of light contained all the energy and matter that would eventually form the entire universe. With a massive explosion known as the Big Bang
241218
---
242219
243220
Story Version 3
244221
---
245-
In the beginning, there was nothing but a vast emptiness, a void without form or substance. Then, from this nothingness, a singular event occurred that would change the course of existence forever—The Big Bang.
246-
247-
Around 13.8 billion years ago, an infinitely hot and dense point, no larger than a single atom, began to expand at an inconceivable speed. This was the birth of our universe, a moment where time and space came into being. As this primordial fireball grew, it cooled, and the fundamental forces that govern the cosmos—gravity, electromagnetism, and the strong and weak nuclear forces—began to take shape.
222+
In the beginning, there was nothing but darkness and silence. Then, suddenly, a tiny point of light appeared. This was the moment when the universe was born.
248223
249-
Matter coalesced into the simplest elements, hydrogen and helium, which later formed vast clouds in the expanding universe. These clouds, driven by the force of gravity, began to collapse in on themselves, creating the first stars. The stars were crucibles of nuclear fusion, forging heavier elements like carbon, nitrogen, and oxygen
224+
The point of light began to expand rapidly, creating space and time as it grew.
250225
---
251226
```
252227

253-
By using the same `seed` parameter of 42 for each of our three requests we're able to produce much more consistent (in this case identical) results.
228+
By using the same `seed` parameter of 42 for each of our three requests, while keeping all other parameters the same, we're able to produce much more consistent results.
229+
230+
> [!IMPORTANT]
231+
> Determinism is not guaranteed with reproducible output. Even in cases where the seed parameter and `system_fingerprint` are the same across API calls it is currently not uncommon to still observe a degree of variability in responses. Identical API calls with larger `max_tokens` values, will generally result in less deterministic responses even when the seed parameter is set.
254232
255233
## Parameter details
256234

articles/ai-services/openai/how-to/use-your-data-securely.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,15 @@ When using the API, pass the `filter` parameter in each API request. For example
103103
* `group_id1, group_id2` are groups attributed to the logged in user. The client application can retrieve and cache users' groups.
104104

105105

106-
## Resources configuration
106+
## Resource configuration
107107

108108
Use the following sections to configure your resources for optimal secure usage. Even if you plan to only secure part of your resources, you still need to follow all the steps below.
109109

110110
This article describes network settings related to disabling public network for Azure OpenAI resources, Azure AI search resources, and storage accounts. Using selected networks with IP rules is not supported, because the services' IP addresses are dynamic.
111111

112+
> [!TIP]
113+
> You can use the bash script available on [GitHub](https://github.com/microsoft/sample-app-aoai-chatGPT/blob/main/scripts/validate-oyd-vnet.sh) to validate your setup, and determine if all of the requirements listed here are being met.
114+
112115
## Create resource group
113116

114117
Create a resource group, so you can organize all the relevant resources. The resources in the resource group include but are not limited to:

articles/ai-services/openai/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ The service provides users access to several different models. Each model provid
125125

126126
The DALL-E models (some in preview; see [models](./concepts/models.md#dall-e)) generate images from text prompts that the user provides.
127127

128-
The Whisper models, currently in preview, can be used to transcribe and translate speech to text.
128+
The Whisper models can be used to transcribe and translate speech to text.
129129

130130
The text to speech models, currently in preview, can be used to synthesize text to speech.
131131

articles/ai-services/speech-service/embedded-speech.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ Follow these steps to install the Speech SDK for Java using Apache Maven:
131131
<dependency>
132132
<groupId>com.microsoft.cognitiveservices.speech</groupId>
133133
<artifactId>client-sdk-embedded</artifactId>
134-
<version>1.36.0</version>
134+
<version>1.37.0</version>
135135
</dependency>
136136
</dependencies>
137137
</project>
@@ -152,7 +152,7 @@ Be sure to use the `@aar` suffix when the dependency is specified in `build.grad
152152

153153
```
154154
dependencies {
155-
implementation 'com.microsoft.cognitiveservices.speech:client-sdk-embedded:1.36.0@aar'
155+
implementation 'com.microsoft.cognitiveservices.speech:client-sdk-embedded:1.37.0@aar'
156156
}
157157
```
158158
::: zone-end

articles/ai-services/speech-service/includes/quickstarts/captioning/java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ Before you can do anything, you need to [install the Speech SDK](~/articles/ai-s
4343
<dependency>
4444
<groupId>com.microsoft.cognitiveservices.speech</groupId>
4545
<artifactId>client-sdk</artifactId>
46-
<version>1.36.0</version>
46+
<version>1.37.0</version>
4747
</dependency>
4848
</dependencies>
4949
</project>

articles/ai-services/speech-service/includes/quickstarts/platform/java-android.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ Add the Speech SDK as a dependency in your project.
5050

5151
:::image type="content" source="../../../media/sdk/android-studio/sdk-install-3-zoom.png" alt-text="Screenshot that shows how to add a library dependency in Android Studio." lightbox="../../../media/sdk/android-studio/sdk-install-3.png":::
5252

53-
1. In the **Add Library Dependency** window that appears, enter the name and version of the Speech SDK for Java: *com.microsoft.cognitiveservices.speech:client-sdk:1.36.0*. Then select **Search**.
53+
1. In the **Add Library Dependency** window that appears, enter the name and version of the Speech SDK for Java: *com.microsoft.cognitiveservices.speech:client-sdk:1.37.0*. Then select **Search**.
5454
1. Make sure that the selected **Group ID** is **com.microsoft.cognitiveservices.speech**, and then select **OK**.
5555
1. Select **OK** to close the **Project Structure** window and apply your changes to the project.

0 commit comments

Comments
 (0)