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
Related to an existing integration?
Yes
Existing integration
CommunityToolkit.Aspire.OllamaSharp
Overview
OllamaSharp's client is AOT compatible if you pass in a
JsonSerializerContextwith 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
basically add in the option to pass the
JsonSerializerContextBreaking 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