Skip to content

Commit 89acdd2

Browse files
committed
Merge branch 'main' of https://github.com/MicrosoftDocs/azure-docs-pr into rolyon-rbac-constrained-delegation-example-update
2 parents e58a9fd + 6cde9a3 commit 89acdd2

File tree

19 files changed

+65
-67
lines changed

19 files changed

+65
-67
lines changed

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

Lines changed: 12 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ for i in range(3):
5555
model="gpt-35-turbo-0125", # Model = should match the deployment name you chose for your 0125-preview model deployment
5656
#seed=42,
5757
temperature=0.7,
58-
max_tokens =200,
58+
max_tokens =50,
5959
messages=[
6060
{"role": "system", "content": "You are a helpful assistant."},
6161
{"role": "user", "content": "Tell me a story about how the universe began?"}
@@ -95,7 +95,7 @@ $messages += @{
9595
$body = @{
9696
#seed = 42
9797
temperature = 0.7
98-
max_tokens = 200
98+
max_tokens = 50
9999
messages = $messages
100100
} | ConvertTo-Json
101101
@@ -114,34 +114,17 @@ for ($i=0; $i -le 2; $i++) {
114114
```output
115115
Story Version 1
116116
---
117-
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.
118-
119-
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.
120-
121-
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.
122-
123-
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
124118
---
125119
126120
Story Version 2
127121
---
128-
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.
129-
130-
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.
131-
132-
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.
133-
134-
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
135123
---
136124
137125
Story Version 3
138126
---
139-
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.
140-
141-
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.
142-
143-
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
144-
---
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
145128
```
146129

147130
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.
@@ -167,7 +150,7 @@ for i in range(3):
167150
model="gpt-35-turbo-0125", # Model = should match the deployment name you chose for your 0125-preview model deployment
168151
seed=42,
169152
temperature=0.7,
170-
max_tokens =200,
153+
max_tokens =50,
171154
messages=[
172155
{"role": "system", "content": "You are a helpful assistant."},
173156
{"role": "user", "content": "Tell me a story about how the universe began?"}
@@ -207,7 +190,7 @@ $messages += @{
207190
$body = @{
208191
seed = 42
209192
temperature = 0.7
210-
max_tokens = 200
193+
max_tokens = 50
211194
messages = $messages
212195
} | ConvertTo-Json
213196
@@ -226,36 +209,26 @@ for ($i=0; $i -le 2; $i++) {
226209
```
227210
Story Version 1
228211
---
229-
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.
230-
231-
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.
232-
233-
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
234213
---
235214
236215
Story Version 2
237216
---
238-
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.
239-
240-
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.
241-
242-
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
243218
---
244219
245220
Story Version 3
246221
---
247-
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.
248-
249-
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.
250223
251-
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.
252225
---
253226
```
254227

255228
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.
256229

257230
> [!IMPORTANT]
258-
> 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 not currently uncommon to still observe a degree of response variability.
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.
259232
260233
## Parameter details
261234

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.

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Follow these steps to install the Speech SDK for Java using Apache Maven:
5252
<dependency>
5353
<groupId>com.microsoft.cognitiveservices.speech</groupId>
5454
<artifactId>client-sdk</artifactId>
55-
<version>1.36.0</version>
55+
<version>1.37.0</version>
5656
</dependency>
5757
</dependencies>
5858
</project>
@@ -107,7 +107,7 @@ Follow these steps to install the Speech SDK for Java using Apache Maven:
107107
<dependency>
108108
<groupId>com.microsoft.cognitiveservices.speech</groupId>
109109
<artifactId>client-sdk</artifactId>
110-
<version>1.36.0</version>
110+
<version>1.37.0</version>
111111
</dependency>
112112
</dependencies>
113113
```
@@ -124,7 +124,7 @@ Gradle configurations require an explicit reference to the *.jar* dependency ext
124124
// build.gradle
125125
126126
dependencies {
127-
implementation group: 'com.microsoft.cognitiveservices.speech', name: 'client-sdk', version: "1.36.0", ext: "jar"
127+
implementation group: 'com.microsoft.cognitiveservices.speech', name: 'client-sdk', version: "1.37.0", ext: "jar"
128128
}
129129
```
130130

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The macOS CocoaPod package is available for download and use with the [Xcode 9.4
3434
use_frameworks!
3535

3636
target 'AppName' do
37-
pod 'MicrosoftCognitiveServicesSpeech-macOS', '~> 1.36.0'
37+
pod 'MicrosoftCognitiveServicesSpeech-macOS', '~> 1.37.0'
3838
end
3939
```
4040

@@ -65,7 +65,7 @@ The macOS CocoaPod package is available for download and use with the [Xcode 9.4
6565
use_frameworks!
6666

6767
target 'AppName' do
68-
pod 'MicrosoftCognitiveServicesSpeech-iOS', '~> 1.36.0'
68+
pod 'MicrosoftCognitiveServicesSpeech-iOS', '~> 1.37.0'
6969
end
7070
```
7171

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ The macOS CocoaPod package is available for download and use with the [Xcode 9.4
3434
use_frameworks!
3535

3636
target 'AppName' do
37-
pod 'MicrosoftCognitiveServicesSpeech-macOS', '~> 1.36.0'
37+
pod 'MicrosoftCognitiveServicesSpeech-macOS', '~> 1.37.0'
3838
end
3939
```
4040

@@ -65,7 +65,7 @@ The macOS CocoaPod package is available for download and use with the [Xcode 9.4
6565
use_frameworks!
6666

6767
target 'AppName' do
68-
pod 'MicrosoftCognitiveServicesSpeech-iOS', '~> 1.36.0'
68+
pod 'MicrosoftCognitiveServicesSpeech-iOS', '~> 1.37.0'
6969
end
7070
```
7171

articles/ai-services/speech-service/includes/quickstarts/speech-to-text-basics/java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ To set up your environment, [install the Speech SDK](~/articles/ai-services/spee
4444
<dependency>
4545
<groupId>com.microsoft.cognitiveservices.speech</groupId>
4646
<artifactId>client-sdk</artifactId>
47-
<version>1.36.0</version>
47+
<version>1.37.0</version>
4848
</dependency>
4949
</dependencies>
5050
</project>

articles/ai-services/speech-service/includes/quickstarts/speech-translation-basics/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. The sample in th
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/stt-diarization/java.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ To set up your environment, [install the Speech SDK](~/articles/ai-services/spee
4545
<dependency>
4646
<groupId>com.microsoft.cognitiveservices.speech</groupId>
4747
<artifactId>client-sdk</artifactId>
48-
<version>1.36.0</version>
48+
<version>1.37.0</version>
4949
</dependency>
5050
</dependencies>
5151
</project>

0 commit comments

Comments
 (0)