diff --git a/src/libs/Groq/Generated/Groq.JsonConverters.AnyOf2.g.cs b/src/libs/Groq/Generated/Groq.JsonConverters.AnyOf2.g.cs index 01f8108..c512026 100644 --- a/src/libs/Groq/Generated/Groq.JsonConverters.AnyOf2.g.cs +++ b/src/libs/Groq/Generated/Groq.JsonConverters.AnyOf2.g.cs @@ -107,7 +107,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null) + { try { diff --git a/src/libs/Groq/Generated/Groq.JsonConverters.ChatCompletionRequestMessageContentPart.g.cs b/src/libs/Groq/Generated/Groq.JsonConverters.ChatCompletionRequestMessageContentPart.g.cs index f85b1e1..8234d33 100644 --- a/src/libs/Groq/Generated/Groq.JsonConverters.ChatCompletionRequestMessageContentPart.g.cs +++ b/src/libs/Groq/Generated/Groq.JsonConverters.ChatCompletionRequestMessageContentPart.g.cs @@ -109,6 +109,7 @@ public class ChatCompletionRequestMessageContentPartJsonConverter : global::Syst { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionRequestMessageContentPartText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestMessageContentPartText).Name}"); textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -119,9 +120,13 @@ public class ChatCompletionRequestMessageContentPartJsonConverter : global::Syst catch (global::System.InvalidOperationException) { } + } + if (textContentPart == null && imageContentPart == null && documentContentPart == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionRequestMessageContentPartImage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestMessageContentPartImage).Name}"); imageContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -132,9 +137,13 @@ public class ChatCompletionRequestMessageContentPartJsonConverter : global::Syst catch (global::System.InvalidOperationException) { } + } + if (textContentPart == null && imageContentPart == null && documentContentPart == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionRequestMessageContentPartDocument), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestMessageContentPartDocument).Name}"); documentContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Groq/Generated/Groq.JsonConverters.ChatCompletionToolChoiceOption.g.cs b/src/libs/Groq/Generated/Groq.JsonConverters.ChatCompletionToolChoiceOption.g.cs index c606084..3974899 100644 --- a/src/libs/Groq/Generated/Groq.JsonConverters.ChatCompletionToolChoiceOption.g.cs +++ b/src/libs/Groq/Generated/Groq.JsonConverters.ChatCompletionToolChoiceOption.g.cs @@ -84,6 +84,7 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionToolChoiceOptionEnum).Name}"); @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -94,9 +95,13 @@ public class ChatCompletionToolChoiceOptionJsonConverter : global::System.Text.J catch (global::System.InvalidOperationException) { } + } + if (@enum == null && named == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ChatCompletionNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionNamedToolChoice).Name}"); named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Groq/Generated/Groq.JsonConverters.OneOf2.g.cs b/src/libs/Groq/Generated/Groq.JsonConverters.OneOf2.g.cs index 52fa307..c397f9f 100644 --- a/src/libs/Groq/Generated/Groq.JsonConverters.OneOf2.g.cs +++ b/src/libs/Groq/Generated/Groq.JsonConverters.OneOf2.g.cs @@ -107,7 +107,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serialization catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null) + { try { diff --git a/src/libs/Groq/Generated/Groq.JsonConverters.OneOf3.g.cs b/src/libs/Groq/Generated/Groq.JsonConverters.OneOf3.g.cs index 385aa3d..dda93d6 100644 --- a/src/libs/Groq/Generated/Groq.JsonConverters.OneOf3.g.cs +++ b/src/libs/Groq/Generated/Groq.JsonConverters.OneOf3.g.cs @@ -137,7 +137,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { @@ -151,7 +154,10 @@ public class OneOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { diff --git a/src/libs/Groq/Generated/Groq.JsonConverters.ResponseFormatConfiguration.g.cs b/src/libs/Groq/Generated/Groq.JsonConverters.ResponseFormatConfiguration.g.cs index a9d62b7..b55fa3d 100644 --- a/src/libs/Groq/Generated/Groq.JsonConverters.ResponseFormatConfiguration.g.cs +++ b/src/libs/Groq/Generated/Groq.JsonConverters.ResponseFormatConfiguration.g.cs @@ -99,6 +99,7 @@ public class ResponseFormatConfigurationJsonConverter : global::System.Text.Json { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseFormatText), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseFormatText).Name}"); text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -109,9 +110,13 @@ public class ResponseFormatConfigurationJsonConverter : global::System.Text.Json catch (global::System.InvalidOperationException) { } + } + if (text == null && jsonObject == null && jsonSchema == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseFormatJsonObject), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseFormatJsonObject).Name}"); jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -122,9 +127,13 @@ public class ResponseFormatConfigurationJsonConverter : global::System.Text.Json catch (global::System.InvalidOperationException) { } + } + if (text == null && jsonObject == null && jsonSchema == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.TextResponseFormatJsonSchema), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.TextResponseFormatJsonSchema).Name}"); jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Groq/Generated/Groq.JsonConverters.ResponseInputItem.g.cs b/src/libs/Groq/Generated/Groq.JsonConverters.ResponseInputItem.g.cs index 897cb88..ea90046 100644 --- a/src/libs/Groq/Generated/Groq.JsonConverters.ResponseInputItem.g.cs +++ b/src/libs/Groq/Generated/Groq.JsonConverters.ResponseInputItem.g.cs @@ -147,6 +147,7 @@ public class ResponseInputItemJsonConverter : global::System.Text.Json.Serializa { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseEasyInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseEasyInputMessage).Name}"); easyInputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -157,9 +158,13 @@ public class ResponseInputItemJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (easyInputMessage == null && message == null && itemReference == null && functionCall == null && functionCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseInputMessage), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseInputMessage).Name}"); message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -170,9 +175,13 @@ public class ResponseInputItemJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (easyInputMessage == null && message == null && itemReference == null && functionCall == null && functionCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseItemReference), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseItemReference).Name}"); itemReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -183,9 +192,13 @@ public class ResponseInputItemJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (easyInputMessage == null && message == null && itemReference == null && functionCall == null && functionCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseFunctionCall), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseFunctionCall).Name}"); functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -196,9 +209,13 @@ public class ResponseInputItemJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (easyInputMessage == null && message == null && itemReference == null && functionCall == null && functionCallOutput == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseFunctionCallOutput), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseFunctionCallOutput).Name}"); functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Groq/Generated/Groq.JsonConverters.ResponseToolChoiceOption.g.cs b/src/libs/Groq/Generated/Groq.JsonConverters.ResponseToolChoiceOption.g.cs index b72c51e..08d25dc 100644 --- a/src/libs/Groq/Generated/Groq.JsonConverters.ResponseToolChoiceOption.g.cs +++ b/src/libs/Groq/Generated/Groq.JsonConverters.ResponseToolChoiceOption.g.cs @@ -84,6 +84,7 @@ public class ResponseToolChoiceOptionJsonConverter : global::System.Text.Json.Se { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseToolChoiceOptionEnum), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseToolChoiceOptionEnum).Name}"); @enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -94,9 +95,13 @@ public class ResponseToolChoiceOptionJsonConverter : global::System.Text.Json.Se catch (global::System.InvalidOperationException) { } + } + if (@enum == null && named == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Groq.ResponseNamedToolChoice), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseNamedToolChoice).Name}"); named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);