You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.InvalidOperationException: Reflection-based serialization has been disabled for this application. Either use the source generator APIs or explicitly configure the 'JsonSerializerOptions.TypeInfoResolver' property.
at System.Text.Json.ThrowHelper.ThrowInvalidOperationException_JsonSerializerIsReflectionDisabled()
at System.Text.Json.JsonSerializerOptions.ConfigureForJsonSerializer()
at System.Text.Json.JsonSerializer.GetTypeInfo(JsonSerializerOptions options, Type inputType)
at System.Text.Json.JsonSerializer.SerializeToUtf8Bytes(Object value, Type inputType, JsonSerializerOptions options)
at System.BinaryData.FromObjectAsJson[T](T jsonSerializable, JsonSerializerOptions options)
at OpenAI.ModelSerializationExtensions..cctor() in /home/nab0y/Projects/openai-dotnet/src/Generated/Internal/ModelSerializationExtensions.cs:line 18
Code snippets
No response
OS
linux, win, macOs
.NET version
8.0
Library version
Starting from version OpenAI_2.0.0-beta.8,
The text was updated successfully, but these errors were encountered:
Service
OpenAI
Describe the bug
Starting from version OpenAI_2.0.0-beta.8, the library is no longer compatible with NativeAOT.
Steps to reproduce
Code snippets
No response
OS
linux, win, macOs
.NET version
8.0
Library version
Starting from version OpenAI_2.0.0-beta.8,
The text was updated successfully, but these errors were encountered: