You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove non-AsXx surface area from M.E.AI.OpenAI/AzureAIInference (#6138)
We expect the AsChatClient/AsEmbeddingGenerator extension methods from M.E.AI.OpenAI and M.E.AI.AzureAIInference to move into the OpenAI / Azure.AI.Inference libraries, respectively. To prepare for that, and the temporary M.E.AI.OpenAI/AzureAIInference libs then being deprecated, this PR removes the other surface area from these assemblies. For anything folks found useful, we should find another way to ship it, likely just as sample source somewhere.
/// <summary>The finish reason value. If null because `default(ChatFinishReason)` was used, the instance will behave like <see cref="Stop"/>.</summary>
17
+
/// <summary>The finish reason value. If <see langword="null"/> because `default(ChatFinishReason)` was used, the instance will behave like <see cref="Stop"/>.</summary>
18
18
privatereadonlystring?_value;
19
19
20
20
/// <summary>Initializes a new instance of the <see cref="ChatFinishReason"/> struct with a string that describes the reason.</summary>
21
21
/// <param name="value">The reason value.</param>
22
-
/// <exception cref="ArgumentNullException"><paramref name="value"/> is null.</exception>
22
+
/// <exception cref="ArgumentNullException"><paramref name="value"/> is <see langword="null"/>.</exception>
23
23
/// <exception cref="ArgumentException"><paramref name="value"/> is empty or composed entirely of whitespace.</exception>
Copy file name to clipboardExpand all lines: src/Libraries/Microsoft.Extensions.AI.Abstractions/ChatCompletion/ChatRole.cs
+2-2
Original file line number
Diff line number
Diff line change
@@ -54,7 +54,7 @@ public ChatRole(string value)
54
54
/// </summary>
55
55
/// <param name="left">The first <see cref="ChatRole"/> instance to compare.</param>
56
56
/// <param name="right">The second <see cref="ChatRole"/> instance to compare.</param>
57
-
/// <returns><see langword="true"/> if left and right are both null or have equivalent values; otherwise, <see langword="false"/>.</returns>
57
+
/// <returns><see langword="true"/> if left and right are both <see langword="null"/> or have equivalent values; otherwise, <see langword="false"/>.</returns>
/// <param name="left">The first <see cref="ChatRole"/> instance to compare. </param>
68
68
/// <param name="right">The second <see cref="ChatRole"/> instance to compare. </param>
69
-
/// <returns><see langword="true"/> if left and right have different values; <see langword="false"/> if they have equivalent values or are both null.</returns>
69
+
/// <returns><see langword="true"/> if left and right have different values; <see langword="false"/> if they have equivalent values or are both <see langword="null"/>.</returns>
/// <summary>Gets the ID of the default model used by this embedding generator.</summary>
38
38
/// <remarks>
39
-
/// This value can be null if no default model is set on the corresponding embedding generator.
39
+
/// This value can be <see langword="null"/> if no default model is set on the corresponding embedding generator.
40
40
/// An individual request may override this value via <see cref="EmbeddingGenerationOptions.ModelId"/>.
41
41
/// </remarks>
42
42
publicstring?DefaultModelId{get;}
43
43
44
44
/// <summary>Gets the number of dimensions in the embeddings produced by the default model.</summary>
45
45
/// <remarks>
46
-
/// This value can be null if either the number of dimensions is unknown or there are multiple possible lengths associated with this model.
46
+
/// This value can be <see langword="null"/> if either the number of dimensions is unknown or there are multiple possible lengths associated with this model.
47
47
/// An individual request may override this value via <see cref="EmbeddingGenerationOptions.Dimensions"/>.
/// <summary>Initializes a new instance of the <see cref="AzureAIInferenceChatClient"/> class for the specified <see cref="ChatCompletionsClient"/>.</summary>
/// <param name="modelId">The ID of the model to use. If null, it can be provided per request via <see cref="ChatOptions.ModelId"/>.</param>
38
+
/// <param name="defaultModelId">The ID of the model to use. If <see langword="null"/>, it can be provided per request via <see cref="ChatOptions.ModelId"/>.</param>
42
39
/// <exception cref="ArgumentNullException"><paramref name="chatCompletionsClient"/> is <see langword="null"/>.</exception>
43
-
/// <exception cref="ArgumentNullException"><paramref name="modelId"/> is empty or composed entirely of whitespace.</exception>
/// <summary>Gets or sets <see cref="JsonSerializerOptions"/> to use for any serialization activities related to tool call arguments and results.</summary>
/// <param name="modelId">The ID of the model to use. If null, it can be provided per request via <see cref="ChatOptions.ModelId"/>.</param>
13
+
/// <param name="modelId">The ID of the model to use. If <see langword="null"/>, it can be provided per request via <see cref="ChatOptions.ModelId"/>.</param>
14
14
/// <returns>An <see cref="IChatClient"/> that can be used to converse via the <see cref="ChatCompletionsClient"/>.</returns>
/// <param name="modelId">The ID of the model to use. If null, it can be provided per request via <see cref="ChatOptions.ModelId"/>.</param>
22
-
/// <param name="dimensions">The number of dimensions to generate in each embedding.</param>
21
+
/// <param name="defaultModelId">The ID of the model to use. If <see langword="null"/>, it can be provided per request via <see cref="ChatOptions.ModelId"/>.</param>
22
+
/// <param name="defaultModelDimensions">The number of dimensions generated in each embedding.</param>
23
23
/// <returns>An <see cref="IEmbeddingGenerator{String, Embedding}"/> that can be used to generate embeddings via the <see cref="EmbeddingsClient"/>.</returns>
0 commit comments