Skip to content

Commit 6819dfc

Browse files
committed
some cspell fixes, because eventually you gotta
1 parent b279a78 commit 6819dfc

File tree

8 files changed

+53
-39
lines changed

8 files changed

+53
-39
lines changed

.vscode/cspell.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@
7171
"blazor",
7272
"byok",
7373
"centralus",
74+
"clippy",
7475
"colls",
7576
"contoso",
7677
"cpus",
@@ -212,21 +213,6 @@
212213
"mobo"
213214
]
214215
},
215-
{
216-
"filename": "**/sdk/ai/**/*.cs",
217-
"words": [
218-
"ansii",
219-
"atbash",
220-
"azureai",
221-
"bleu",
222-
"gleu",
223-
"includable",
224-
"inpaint",
225-
"inpainting",
226-
"logprobs",
227-
"ubinary"
228-
]
229-
},
230216
{
231217
"filename": "**/sdk/analysisservices/**/*.cs",
232218
"words": [

sdk/ai/Azure.AI.Projects.OpenAI/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ To use Azure AI Agents capabilities, you must have an [Azure subscription](https
4747

4848
Install the client library for .NET with [NuGet](https://www.nuget.org/ ):
4949

50-
```dotnetcli
50+
```shell
5151
dotnet add package Azure.AI.Projects.OpenAI --prerelease
5252
```
5353

@@ -646,7 +646,7 @@ AgentVersion agentVersion = await projectClient.Agents.CreateAgentVersionAsync(
646646
To supply functions outputs, we will need to obtain responses multiple times. We will define method `CreateAndWaitForResponseAsync` for brevity.
647647

648648
```C# Snippet:Sample_CheckResponse_Function_Async
649-
public static async Task<OpenAIResponse> CreateAndCheckReponseAsync(OpenAIResponseClient responseClient, IEnumerable<ResponseItem> items)
649+
public static async Task<OpenAIResponse> CreateAndCheckResponseAsync(OpenAIResponseClient responseClient, IEnumerable<ResponseItem> items)
650650
{
651651
OpenAIResponse response = await responseClient.CreateResponseAsync(
652652
inputItems: items);
@@ -666,7 +666,7 @@ bool funcionCalled = false;
666666
OpenAIResponse response;
667667
do
668668
{
669-
response = await CreateAndCheckReponseAsync(
669+
response = await CreateAndCheckResponseAsync(
670670
responseClient,
671671
inputItems);
672672
funcionCalled = false;
@@ -704,14 +704,14 @@ Set the value to `true` to enable content recording.
704704
First, set the `APPLICATIONINSIGHTS_CONNECTION_STRING` environment variable to point to your Azure Monitor resource. You can also retrieve the connection string programmatically using the Azure AI Projects client library (Azure.AI.Projects) by calling the `Telemetry.GetApplicationInsightsConnectionString()` method on the `AIProjectClient` class.
705705

706706
For tracing to Azure Monitor from your application, the preferred option is to use Azure.Monitor.OpenTelemetry.AspNetCore. Install the package with [NuGet](https://www.nuget.org/ ):
707-
```dotnetcli
707+
```shell
708708
dotnet add package Azure.Monitor.OpenTelemetry.AspNetCore
709709
```
710710

711711
More information about using the Azure.Monitor.OpenTelemetry.AspNetCore package can be found [here](https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore/README.md ).
712712
713713
Another option is to use Azure.Monitor.OpenTelemetry.Exporter package. Install the package with [NuGet](https://www.nuget.org/ )
714-
```dotnetcli
714+
```shell
715715
dotnet add package Azure.Monitor.OpenTelemetry.Exporter
716716
```
717717

@@ -727,7 +727,7 @@ var tracerProvider = Sdk.CreateTracerProviderBuilder()
727727

728728
For tracing to console from your application, install the OpenTelemetry.Exporter.Console with [NuGet](https://www.nuget.org/ ):
729729
730-
```dotnetcli
730+
```shell
731731
dotnet add package OpenTelemetry.Exporter.Console
732732
```
733733

sdk/ai/Azure.AI.Projects.OpenAI/samples/Sample9_Function.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,11 @@ AgentVersion agentVersion = await projectClient.Agents.CreateAgentVersionAsync(
158158
options: new(agentDefinition));
159159
```
160160

161-
5. To supply functions outputs, we will need to obtain responses multiple times. We will define methods `CreateAndCheckReponse` and `CreateAndCheckReponseAsync` for brevity.
161+
5. To supply functions outputs, we will need to obtain responses multiple times. We will define methods `CreateAndCheckResponse` and `CreateAndCheckResponseAsync` for brevity.
162162

163163
Synchronous sample:
164164
```C# Snippet:Sample_CheckResponse_Function_Sync
165-
public static OpenAIResponse CreateAndCheckReponse(OpenAIResponseClient responseClient, IEnumerable<ResponseItem> items)
165+
public static OpenAIResponse CreateAndCheckResponse(OpenAIResponseClient responseClient, IEnumerable<ResponseItem> items)
166166
{
167167
OpenAIResponse response = responseClient.CreateResponse(
168168
inputItems: items);
@@ -173,7 +173,7 @@ public static OpenAIResponse CreateAndCheckReponse(OpenAIResponseClient response
173173

174174
Asynchronous sample:
175175
```C# Snippet:Sample_CheckResponse_Function_Async
176-
public static async Task<OpenAIResponse> CreateAndCheckReponseAsync(OpenAIResponseClient responseClient, IEnumerable<ResponseItem> items)
176+
public static async Task<OpenAIResponse> CreateAndCheckResponseAsync(OpenAIResponseClient responseClient, IEnumerable<ResponseItem> items)
177177
{
178178
OpenAIResponse response = await responseClient.CreateResponseAsync(
179179
inputItems: items);
@@ -194,7 +194,7 @@ bool funcionCalled = false;
194194
OpenAIResponse response;
195195
do
196196
{
197-
response = CreateAndCheckReponse(
197+
response = CreateAndCheckResponse(
198198
responseClient,
199199
inputItems);
200200
funcionCalled = false;
@@ -222,7 +222,7 @@ bool funcionCalled = false;
222222
OpenAIResponse response;
223223
do
224224
{
225-
response = await CreateAndCheckReponseAsync(
225+
response = await CreateAndCheckResponseAsync(
226226
responseClient,
227227
inputItems);
228228
funcionCalled = false;

sdk/ai/Azure.AI.Projects.OpenAI/tests/Samples/Sample_Function.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public async Task FunctionAsync()
168168
OpenAIResponse response;
169169
do
170170
{
171-
response = await CreateAndCheckReponseAsync(
171+
response = await CreateAndCheckResponseAsync(
172172
responseClient,
173173
inputItems);
174174
funcionCalled = false;
@@ -192,7 +192,7 @@ public async Task FunctionAsync()
192192
}
193193

194194
#region Snippet:Sample_CheckResponse_Function_Async
195-
public static async Task<OpenAIResponse> CreateAndCheckReponseAsync(OpenAIResponseClient responseClient, IEnumerable<ResponseItem> items)
195+
public static async Task<OpenAIResponse> CreateAndCheckResponseAsync(OpenAIResponseClient responseClient, IEnumerable<ResponseItem> items)
196196
{
197197
OpenAIResponse response = await responseClient.CreateResponseAsync(
198198
inputItems: items);
@@ -202,7 +202,7 @@ public static async Task<OpenAIResponse> CreateAndCheckReponseAsync(OpenAIRespon
202202
#endregion
203203

204204
#region Snippet:Sample_CheckResponse_Function_Sync
205-
public static OpenAIResponse CreateAndCheckReponse(OpenAIResponseClient responseClient, IEnumerable<ResponseItem> items)
205+
public static OpenAIResponse CreateAndCheckResponse(OpenAIResponseClient responseClient, IEnumerable<ResponseItem> items)
206206
{
207207
OpenAIResponse response = responseClient.CreateResponse(
208208
inputItems: items);
@@ -246,7 +246,7 @@ public void FunctionSync()
246246
OpenAIResponse response;
247247
do
248248
{
249-
response = CreateAndCheckReponse(
249+
response = CreateAndCheckResponse(
250250
responseClient,
251251
inputItems);
252252
funcionCalled = false;

sdk/ai/Azure.AI.Projects/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 1.2.0-beta.4 (Unreleaed)
3+
## 1.2.0-beta.4 (Unreleased)
44

55
### Bugs Fixed
66

sdk/ai/Azure.AI.Projects/tests_agents/AgentsTelemetryTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public async Task TestAgentCreateWithTracingActivitySourceDisabled()
9090

9191
AIProjectClient projectClient = GetTestProjectClient();
9292
var modelDeploymentName = GetModelDeploymentName();
93-
var agentName = "agensTelemetryTests1";
93+
var agentName = "agentsTelemetryTests1";
9494

9595
PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
9696
{
@@ -119,7 +119,7 @@ public async Task TestAgentCreateWithTracingContentRecordingEnabled()
119119

120120
AIProjectClient projectClient = GetTestProjectClient();
121121
var modelDeploymentName = GetModelDeploymentName();
122-
var agentName = "agensTelemetryTests2";
122+
var agentName = "agentsTelemetryTests2";
123123

124124
PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
125125
{
@@ -149,7 +149,7 @@ public async Task TestAgentCreateWithTracingContentRecordingDisabled()
149149

150150
AIProjectClient projectClient = GetTestProjectClient();
151151
var modelDeploymentName = GetModelDeploymentName();
152-
var agentName = "agensTelemetryTests3";
152+
var agentName = "agentsTelemetryTests3";
153153

154154
PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
155155
{
@@ -179,7 +179,7 @@ public async Task TestAgentUpdateWithTracingContentRecordingEnabled()
179179

180180
AIProjectClient projectClient = GetTestProjectClient();
181181
var modelDeploymentName = GetModelDeploymentName();
182-
var agentName = "agensTelemetryTests4";
182+
var agentName = "agentsTelemetryTests4";
183183

184184
PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
185185
{
@@ -237,7 +237,7 @@ public async Task TestAgentUpdateWithTracingContentRecordingDisabled()
237237

238238
AIProjectClient projectClient = GetTestProjectClient();
239239
var modelDeploymentName = GetModelDeploymentName();
240-
var agentName = "agensTelemetryTests5";
240+
var agentName = "agentsTelemetryTests5";
241241

242242
PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
243243
{
@@ -295,7 +295,7 @@ public async Task TestAgentVersionCreateWithTracingContentRecordingEnabled()
295295

296296
AIProjectClient projectClient = GetTestProjectClient();
297297
var modelDeploymentName = GetModelDeploymentName();
298-
var agentName = "agensTelemetryTests6";
298+
var agentName = "agentsTelemetryTests6";
299299

300300
PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
301301
{
@@ -325,7 +325,7 @@ public async Task TestAgentVersionCreateWithTracingContentRecordingDisabled()
325325

326326
AIProjectClient projectClient = GetTestProjectClient();
327327
var modelDeploymentName = GetModelDeploymentName();
328-
var agentName = "agensTelemetryTests7";
328+
var agentName = "agentsTelemetryTests7";
329329

330330
PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
331331
{

sdk/ai/Azure.AI.Projects/tests_agents/AgentsTestBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ namespace Azure.AI.Projects.Tests;
2626

2727
public class AgentsTestBase : RecordedTestBase<AIAgentsTestEnvironment>
2828
{
29-
#region Enumertions
29+
#region Enumerations
3030
public enum ToolType
3131
{
3232
None,

sdk/ai/cspell.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
version: "0.2"
2+
language: en
3+
allowCompoundWords: true
4+
dictionaries:
5+
- python
6+
- powershell
7+
- csharp
8+
- softwareTerms
9+
words:
10+
- aiprojects
11+
- ansii
12+
- atbash
13+
- azureai
14+
- bleu
15+
- conv
16+
- genai
17+
- gleu
18+
- includable
19+
- inpaint
20+
- inpainting
21+
- linq
22+
- logprobs
23+
- OPENAICUA
24+
- Plagiarus
25+
- PNAS
26+
- praepotens
27+
- ubinary
28+
- wfresp

0 commit comments

Comments
 (0)