Skip to content

Commit 37dd83b

Browse files
Merge pull request #45087 from dotnet/main
Merge main into live
2 parents 0d999f9 + 17ddd55 commit 37dd83b

File tree

10 files changed

+726
-726
lines changed

10 files changed

+726
-726
lines changed

Diff for: docs/ai/quickstarts/snippets/evaluate-ai-responses/MyTests.cs

+5-5
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public sealed class MyTests
1010
// <SnippetPrivateMembers>
1111
private static ChatConfiguration? s_chatConfiguration;
1212
private static IList<ChatMessage> s_messages = [
13-
new ChatMessage(
13+
new ChatMessage(
1414
ChatRole.System,
1515
"""
1616
You're an AI assistant that can answer questions related to astronomy.
@@ -28,7 +28,7 @@ Keep your responses concise and try to stay under 100 words.
2828
public static async Task InitializeAsync(TestContext _)
2929
{
3030
/// Set up the <see cref="ChatConfiguration"/>,
31-
// which includes the <see cref="IChatClient"/> that the
31+
/// which includes the <see cref="IChatClient"/> that the
3232
/// evaluator uses to communicate with the model.
3333
s_chatConfiguration = GetOllamaChatConfiguration();
3434

@@ -39,7 +39,7 @@ public static async Task InitializeAsync(TestContext _)
3939
ResponseFormat = ChatResponseFormat.Text
4040
};
4141

42-
/// Fetch the response to be evaluated
42+
// Fetch the response to be evaluated
4343
// and store it in a static variable.
4444
ChatResponse response = await s_chatConfiguration.ChatClient.GetResponseAsync(s_messages, chatOptions);
4545
s_response = response.Message;
@@ -49,7 +49,7 @@ public static async Task InitializeAsync(TestContext _)
4949
// <SnippetGetChatConfig>
5050
private static ChatConfiguration GetOllamaChatConfiguration()
5151
{
52-
/// Get a chat client for the Ollama endpoint.
52+
// Get a chat client for the Ollama endpoint.
5353
IChatClient client =
5454
new OllamaChatClient(
5555
new Uri("http://localhost:11434"),
@@ -72,7 +72,7 @@ public async Task TestCoherence()
7272
/// Retrieve the score for coherence from the <see cref="EvaluationResult"/>.
7373
NumericMetric coherence = result.Get<NumericMetric>(CoherenceEvaluator.CoherenceMetricName);
7474

75-
/// Validate the default interpretation
75+
// Validate the default interpretation
7676
// for the returned coherence metric.
7777
Assert.IsFalse(coherence.Interpretation!.Failed);
7878
Assert.IsTrue(coherence.Interpretation.Rating is EvaluationRating.Good or EvaluationRating.Exceptional);

Diff for: docs/azure/includes/dotnet-all.md

+354-354
Large diffs are not rendered by default.

Diff for: docs/azure/includes/dotnet-new.md

+362-362
Large diffs are not rendered by default.

Diff for: docs/core/diagnostics/media/aspire-dashboard.png

-217 Bytes
Loading
-15.5 KB
Loading

Diff for: docs/csharp/language-reference/xmldoc/snippets/xmldoc/DocComments.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ public static int Add(int left, int right)
164164
/// This tag will apply to the primary constructor parameter.
165165
/// </param>
166166
public record Person(string FirstName, string LastName);
167+
//</ClassExample>
167168
}
168-
//</ClassExample>
169169

170170
namespace InheritDoc
171171
{

Diff for: docs/csharp/language-reference/xmldoc/snippets/xmldoc/tagged-library.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
The main Math class
55
Contains all methods for performing basic math functions
66
*/
7-
/// <summary>
7+
/// <summary>
88
/// The main <c>Math</c> class.
99
/// Contains all methods for performing basic math functions.
1010
/// <list type="bullet">

Diff for: docs/csharp/tour-of-csharp/tutorials/branches-and-loops-local.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ else
103103

104104
The `==` symbol tests for *equality*. Using `==` distinguishes the test for equality from assignment, which you saw in `a = 5`.
105105

106-
The `&&` represents "and". It means both conditions must be true to execute the statement in the true branch. These examples also show that you can have multiple statements in each conditional branch, provided you enclose them in `{` and `}`. You can also use `||` to represent "or". Add the following code after what you've written so far:
106+
The `&&` represents "and". It means both conditions must be true to execute the statement in the true branch. These examples also show that you can have multiple statements in each conditional branch, as long as you enclose them in `{` and `}`. You can also use `||` to represent "or". Add the following code after what you've written so far:
107107

108108
```csharp
109109
if ((a + b + c > 10) || (a == b))

Diff for: docs/csharp/whats-new/csharp-14.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ delegate bool TryParse<T>(string text, out T result);
7878
TryParse<int> parse1 = (text, out result) => Int32.TryParse(text, out result);
7979
```
8080

81-
Previously, adding any modifiers was allowed only when the parameter declarations included the types for the parameters. The preceding declaration would require typs on all parameters:
81+
Previously, adding any modifiers was allowed only when the parameter declarations included the types for the parameters. The preceding declaration would require types on all parameters:
8282

8383
```csharp
8484
TryParse<int> parse2 = (string text, out int result) => Int32.TryParse(text, out result);

Diff for: docs/machine-learning/tutorials/movie-recommendation-model-builder.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ When adding a web API to your solution, you will be prompted to name the project
164164
4.577113
165165
```
166166

167-
Congratulations! You've successfully built a machine learning model to categorize the risk of health violations using Model Builder. You can find the source code for this tutorial at the [dotnet/machinelearning-samples](https://github.com/dotnet/machinelearning-samples/tree/main/samples/modelbuilder/MatrixFactorization_MovieRecommendation) GitHub repository.
167+
Congratulations! You've successfully built a machine learning model for movie recommendations using Model Builder. You can find the source code for this tutorial at the [dotnet/machinelearning-samples](https://github.com/dotnet/machinelearning-samples/tree/main/samples/modelbuilder/MatrixFactorization_MovieRecommendation) GitHub repository.
168168
169169
## Additional resources
170170

0 commit comments

Comments
 (0)