Skip to content

Commit

Permalink
Update M.E.AI CHANGELOG.md for latest bits (#5684)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephentoub authored Nov 22, 2024
1 parent f846de6 commit d65645c
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Libraries/Microsoft.Extensions.AI.Abstractions/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# Release History

## 9.0.1-preview.1.24570.5

- Changed `IChatClient`/`IEmbeddingGenerator`.`GetService` to be non-generic.
- Added `ToChatCompletion` / `ToChatCompletionUpdate` extension methods for `IEnumerable<StreamingChatCompletionUpdate>` / `IAsyncEnumerable<StreamingChatCompletionUpdate>`, respectively.
- Added `ToStreamingChatCompletionUpdates` instance method to `ChatCompletion`.
- Added `IncludeTypeInEnumSchemas`, `DisallowAdditionalProperties`, `RequireAllProperties`, and `TransformSchemaNode` options to `AIJsonSchemaCreateOptions`.
- Fixed a Native AOT warning in `AIFunctionFactory.Create`.
- Fixed a bug in `AIJsonUtilities` in the handling of Boolean schemas.
- Improved the `ToString` override of `ChatMessage` and `StreamingChatCompletionUpdate` to include all `TextContent`, and of `ChatCompletion` to include all choices.
- Added `DebuggerDisplay` attributes to `DataContent` and `GeneratedEmbeddings`.
- Improved the documentation.

## 9.0.0-preview.9.24556.5

- Added a strongly-typed `ChatOptions.Seed` property.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 9.0.1-preview.1.24570.5

- Made the `ToolCallJsonSerializerOptions` property non-nullable.

## 9.0.0-preview.9.24556.5

- Fixed `AzureAIInferenceEmbeddingGenerator` to respect `EmbeddingGenerationOptions.Dimensions`.
Expand Down
4 changes: 4 additions & 0 deletions src/Libraries/Microsoft.Extensions.AI.Ollama/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release History

## 9.0.1-preview.1.24570.5

- Made the `ToolCallJsonSerializerOptions` property non-nullable.

## 9.0.0-preview.9.24525.1

- Lowered the required version of System.Text.Json to 8.0.5 when targeting net8.0 or older.
Expand Down
6 changes: 6 additions & 0 deletions src/Libraries/Microsoft.Extensions.AI.OpenAI/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Release History

## 9.0.1-preview.1.24570.5

- Upgraded to depend on the 2.1.0-beta.2 version of the OpenAI NuGet package.
- Added the `OpenAIRealtimeExtensions` class, with `ToConversationFunctionTool` and `HandleToolCallsAsync` extension methods for using `AIFunction` with the OpenAI Realtime API.
- Made the `ToolCallJsonSerializerOptions` property non-nullable.

## 9.0.0-preview.9.24525.1

- Lowered the required version of System.Text.Json to 8.0.5 when targeting net8.0 or older.
Expand Down
16 changes: 16 additions & 0 deletions src/Libraries/Microsoft.Extensions.AI/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Release History

## 9.0.1-preview.1.24570.5

- Moved the `AddChatClient`, `AddKeyedChatClient`, `AddEmbeddingGenerator`, and `AddKeyedEmbeddingGenerator` extension methods to the `Microsoft.Extensions.DependencyInjection` namespace, changed them to register singleton instances instead of scoped instances, and changed them to support lambda-less chaining.
- Renamed `UseChatOptions`/`UseEmbeddingOptions` to `ConfigureOptions`, and changed the behavior to always invoke the delegate with a safely-mutable instance, either a new instance if the caller provided null, or a clone of the provided instance.
- Renamed the final `Use` method for building a builder to be named `Build`. The inner client instance is passed to the constructor and the `IServiceProvider` is optionally passed to the `Build` method.
- Added `AsBuilder` extension methods to `IChatClient`/`IEmbeddingGenerator` to create builders from the instances.
- Changed the `CachingChatClient`/`CachingEmbeddingGenerator`.`GetCacheKey` method to accept a `params ReadOnlySpan<object?>`, included the `ChatOptions`/`EmbeddingGeneratorOptions` as part of the caching key, and reduced memory allocation.
- Added support for anonymous delegating `IChatClient`/`IEmbeddingGenerator` implementations, with `Use` methods on `ChatClientBuilder`/`EmbeddingGeneratorBuilder` that enable the implementations of the core methods to be supplied as lambdas.
- Changed `UseLogging` to accept an `ILoggerFactory` rather than `ILogger`.
- Reversed the order of the `IChatClient`/`IEmbeddingGenerator` and `IServiceProvider` arguments to used by one of the `Use` overloads.
- Added logging capabilities to `FunctionInvokingChatClient`. `UseFunctionInvocation` now accepts an optional `ILoggerFactory`.
- Fixed the `FunctionInvokingChatClient` to include usage data for non-streaming completions in the augmented history.
- Fixed the `FunctionInvokingChatClient` streaming support to appropriately fail for multi-choice completions.
- Fixed the `FunctionInvokingChatClient` to stop yielding function calling content that was already being handled.
- Improved the documentation.

## 9.0.0-preview.9.24556.5

- Added `UseEmbeddingGenerationOptions` and corresponding `ConfigureOptionsEmbeddingGenerator`.
Expand Down

0 comments on commit d65645c

Please sign in to comment.