-
Notifications
You must be signed in to change notification settings - Fork 154
Closed
Description
Related to an existing integration?
Yes
Existing integration
CommunityToolkit.Aspire.OllamaSharp
Overview
OllamaSharp's client is AOT compatible if you pass in a JsonSerializerContext with the type information.
However, Aspire's integration does not allow passing this field in making it impossible to use this package in an AOT environment.
Usage example
builder.AddKeyedOllamaApiClient("embedding", settings => settings.JsonSerializerContext = MySerializerContext.Default)
.AddEmbeddingGenerator();basically add in the option to pass the JsonSerializerContext
Breaking change?
No
Alternatives
currently no alternatives exist to make AOT possible
Additional context
OllamaSharp's documentation refers to this:
https://awaescher.github.io/OllamaSharp/docs/native-aot-support.html
Help us help you
Yes, I'd like to be assigned to work on this item
Copilot
Metadata
Metadata
Assignees
Labels
No labels