Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add implementations of Microsoft.Extensions.AI's IChatClient / IEmbeddingGenerator #659

Merged
merged 14 commits into from
Nov 13, 2024

Conversation

stephentoub
Copy link
Contributor

This enables OpenAiService to then be consumed by anyone in the .NET ecosystem written in terms of these exchange types.

Examples in https://www.nuget.org/packages/Microsoft.Extensions.AI.Abstractions/9.0.0-preview.9.24525.1#readme-body-tab.

More details in https://devblogs.microsoft.com/dotnet/introducing-microsoft-extensions-ai-preview/.

…dingGenerator

This enables OpenAiService to then be consumed by anyone in the .NET ecosystem written in terms of these exchange types.
@kayhantolga
Copy link
Member

Hmm, that's interesting. Not sure how I missed this announcement. I will check this after the real-time API implementation completed.

stephentoub and others added 12 commits November 1, 2024 09:07
Reorganized `using` directives and added new namespaces. Modified `ChatClientMetadata` for better readability. Expanded `GetService` and `Dispose` methods to use block bodies. Refactored `CompleteAsync`, `CompleteStreamingAsync`, `CreateRequest`, and other methods to use `var` and simplify loops and statements. Improved error messages and renamed variables for clarity.
@kayhantolga kayhantolga changed the base branch from master to dev November 13, 2024 13:52
@kayhantolga kayhantolga merged commit 9054d9b into betalgo:dev Nov 13, 2024
@kayhantolga kayhantolga added this to the 8.10.0 milestone Nov 13, 2024
@kayhantolga
Copy link
Member

@stephentoub Is there any documentation for changelogs? I'm struggling to find details about the changes and how to address the breaking changes.

@stephentoub
Copy link
Contributor Author

@stephentoub Is there any documentation for changelogs? I'm struggling to find details about the changes and how to address the breaking changes.

I thought I submitted a pr to update this library, but it looks like I never hit submit. I can do so when I'm back at my computer.

Regarding a changelog, yes:
https://github.com/dotnet/extensions/blob/main/src/Libraries/Microsoft.Extensions.AI.Abstractions/CHANGELOG.md

I expect the only break to address is that GetService became non-generic.

@stephentoub stephentoub deleted the meai branch December 4, 2024 14:37
@kayhantolga
Copy link
Member

That would be great, Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants