diff --git a/src/libs/OpenAI/Generated/JsonConverters.AssistantsApiResponseFormatOption.g.cs b/src/libs/OpenAI/Generated/JsonConverters.AssistantsApiResponseFormatOption.g.cs index 161ca54..2b17ada 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.AssistantsApiResponseFormatOption.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.AssistantsApiResponseFormatOption.g.cs @@ -110,7 +110,7 @@ public override void Write( if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantsApiResponseFormatOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantsApiResponseFormatOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantsApiResponseFormatOptionEnum).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); } diff --git a/src/libs/OpenAI/Generated/JsonConverters.AssistantsApiToolChoiceOption.g.cs b/src/libs/OpenAI/Generated/JsonConverters.AssistantsApiToolChoiceOption.g.cs index e82ead0..61b5949 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.AssistantsApiToolChoiceOption.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.AssistantsApiToolChoiceOption.g.cs @@ -72,7 +72,7 @@ public override void Write( if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantsApiToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.AssistantsApiToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.AssistantsApiToolChoiceOptionEnum).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); } diff --git a/src/libs/OpenAI/Generated/JsonConverters.ChatCompletionToolChoiceOption.g.cs b/src/libs/OpenAI/Generated/JsonConverters.ChatCompletionToolChoiceOption.g.cs index 0db5df6..43003c2 100644 --- a/src/libs/OpenAI/Generated/JsonConverters.ChatCompletionToolChoiceOption.g.cs +++ b/src/libs/OpenAI/Generated/JsonConverters.ChatCompletionToolChoiceOption.g.cs @@ -72,7 +72,7 @@ public override void Write( if (value.IsValue1) { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.ChatCompletionToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenAI.ChatCompletionToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenAI.ChatCompletionToolChoiceOptionEnum).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.Value1, typeInfo); }