Skip to content

Commit 824ff6e

Browse files
authored
Update changelogs for M.E.AI (#6079)
1 parent a8f71fd commit 824ff6e

File tree

5 files changed

+42
-0
lines changed

5 files changed

+42
-0
lines changed

src/Libraries/Microsoft.Extensions.AI.Abstractions/CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Release History
22

3+
## 9.3.0-preview.1.25161.3
4+
5+
- Changed `IChatClient.GetResponseAsync` and `IChatClient.GetStreamingResponseAsync` to accept an `IEnumerable<ChatMessage>` rather than an `IList<ChatMessage>`. It is no longer mutated by implementations.
6+
- Removed `ChatResponse.Choice` and `ChatResponseUpdate.ChoiceIndex`.
7+
- Replaced `ChatResponse.Message` with `ChatResponse.Messages`. Responses now carry with them all messages generated as part of the operation, rather than all but the last being added to the history and the last returned.
8+
- Added `GetRequiredService` extension method for `IChatClient`/`IEmbeddingGenerator`.
9+
- Added non-generic `IEmbeddingGenerator` interface, which is inherited by `IEmbeddingGenerator<TInput, TEmbedding>`. The `GetService` method moves down to the non-generic interface, and the `GetService`/`GetRequiredService` extension methods are now in terms of the non-generic.
10+
- `AIJsonUtilities.CreateFunctionJsonSchema` now special-cases `CancellationToken` to not include it in the schema.
11+
- Improved the debugger displays for `ChatMessage` and the `AIContent` types.
12+
- Added a static `AIJsonUtilities.HashDataToString` method.
13+
- Split `DataContent`, which handled both in-memory data and URIs to remote data, into `DataContent` (for the former) and `UriContent` (for the latter).
14+
- Renamed `DataContent.MediaTypeStartsWith` to `DataContent.HasTopLevelMediaType`, and changed semantics accordingly.
15+
316
## 9.3.0-preview.1.25114.11
417

518
- Renamed `IChatClient.Complete{Streaming}Async` to `IChatClient.Get{Streaming}ResponseAsync`. This is to avoid confusion with "Complete" being about stopping an operation, as well as to avoid tying the methods to a particular implementation detail of how responses are generated. Along with this, renamed `ChatCompletion` to `ChatResponse`, `StreamingChatCompletionUpdate` to `ChatResponseUpdate`, `CompletionId` to `ResponseId`, `ToStreamingChatCompletionUpdates` to `ToChatResponseUpdates`, and `ToChatCompletion{Async}` to `ToChatResponse{Async}`.

src/Libraries/Microsoft.Extensions.AI.AzureAIInference/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release History
22

3+
## 9.3.0-preview.1.25161.3
4+
5+
- Updated to accomodate the changes in `Microsoft.Extensions.AI.Abstractions`.
6+
37
## 9.3.0-preview.1.25114.11
48

59
- Updated to use Azure.AI.Inference 1.0.0-beta.3, adding support for structured output and audio input.

src/Libraries/Microsoft.Extensions.AI.Ollama/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release History
22

3+
## 9.3.0-preview.1.25161.3
4+
5+
- Updated to accomodate the changes in `Microsoft.Extensions.AI.Abstractions`.
6+
37
## 9.3.0-preview.1.25114.11
48

59
- Ensures that all yielded `ChatResponseUpdates` include a `ResponseId`.

src/Libraries/Microsoft.Extensions.AI.OpenAI/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release History
22

3+
## 9.3.0-preview.1.25161.3
4+
5+
- Updated to accomodate the changes in `Microsoft.Extensions.AI.Abstractions`.
6+
37
## 9.3.0-preview.1.25114.11
48

59
- Updated to depend on OpenAI 2.2.0-beta.1, updating with support for the Developer role, audio input and output, and additional options like output prediction. It is now also compatible with NativeAOT.

src/Libraries/Microsoft.Extensions.AI/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Release History
22

3+
## 9.3.0-preview.1.25161.3
4+
5+
- Added caching to `AIFunctionFactory.Create` to improve performance of creating the same functions repeatedly. As part of this, `AIJsonSchemaCreateOptions` now implements `IEquatable<AIJsonSchemaCreateOptions>`.
6+
- Removed the public `AnonymousDelegatingChatClient`/`AnonymousDelegatingEmbeddingGenerator`. Their functionality is still available via the `Use` methods on the builders.
7+
- Changed those `Use` methods to use `Func<...>` rather than a custom delegate type.
8+
- `AIFunctionFactory.Create` now supports `CancellationToken` parameters, and the `AIFunctionContext` type that had served to enable that has been removed.
9+
- Made `FunctionInvokingChatClient.CurrentContext`'s setter `protected`.
10+
- Renamed `FunctionInvokingChatClient.DetailedErrors` to `IncludeDetailedErrors`.
11+
- Renamed `FunctionInvokingChatClient.ConcurrentInvocation` to `AllowConcurrentInvocation`.
12+
- Removed `FunctionInvokingChatClient.KeepFunctionCallingContent`, as it's no longer relevant now that the input messages are an `IEnumerable<ChatMessage>` rather than an `IList<ChatMessage>`.
13+
- Renamed `FunctionStatus` to `FunctionInvocationStatus`.
14+
- Renamed `FunctionInvocationStatus.Failed` to `FunctionInvocationStatus.Exception`.
15+
- Moved the nested `FunctionInvocationContext` type to be a peer of `FunctionInvokingChatClient` rather than nested within it.
16+
- Made the `serviceKey` parameters to `AddKeyedChatClient`/`AddKeyedEmbeddingGenerator` nullable.
17+
- Improved `FunctionInvokingChatClient.GetStreamingResponseAsync` to send back to the inner client all content received until that point, and to stream back to the caller messages it generates (e.g. tool responses).
18+
- Improved `AddEmbeddingGenerator` and `AddKeyedEmbeddingGenerator` to register for both the generic and non-generic interfaces.
19+
320
## 9.3.0-preview.1.25114.11
421

522
- Updated `OpenTelemetryChatClient`/`OpenTelemetryEmbeddingGenerator` to conform to the latest 1.30.0 draft specification of the Semantic Conventions for Generative AI systems.

0 commit comments

Comments
 (0)