Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/libs/Groq/Generated/Groq.JsonConverters.AnyOf2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ public class AnyOfJsonConverter<T1, T2> : global::System.Text.Json.Serialization
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null)
{
try
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<global::Groq.ChatCompletionRequestMessageContentPartText> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestMessageContentPartText).Name}");
textContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -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<global::Groq.ChatCompletionRequestMessageContentPartImage> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestMessageContentPartImage).Name}");
imageContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -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<global::Groq.ChatCompletionRequestMessageContentPartDocument> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionRequestMessageContentPartDocument).Name}");
documentContentPart = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<global::Groq.ChatCompletionToolChoiceOptionEnum> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionToolChoiceOptionEnum).Name}");
@enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -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<global::Groq.ChatCompletionNamedToolChoice> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ChatCompletionNamedToolChoice).Name}");
named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
3 changes: 3 additions & 0 deletions src/libs/Groq/Generated/Groq.JsonConverters.OneOf2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ public class OneOfJsonConverter<T1, T2> : global::System.Text.Json.Serialization
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null)
{
try
{

Expand Down
6 changes: 6 additions & 0 deletions src/libs/Groq/Generated/Groq.JsonConverters.OneOf3.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,10 @@ public class OneOfJsonConverter<T1, T2, T3> : global::System.Text.Json.Serializa
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null)
{
try
{

Expand All @@ -151,7 +154,10 @@ public class OneOfJsonConverter<T1, T2, T3> : global::System.Text.Json.Serializa
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null)
{
try
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<global::Groq.ResponseFormatText> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseFormatText).Name}");
text = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -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<global::Groq.ResponseFormatJsonObject> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseFormatJsonObject).Name}");
jsonObject = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -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<global::Groq.TextResponseFormatJsonSchema> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.TextResponseFormatJsonSchema).Name}");
jsonSchema = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
17 changes: 17 additions & 0 deletions src/libs/Groq/Generated/Groq.JsonConverters.ResponseInputItem.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<global::Groq.ResponseEasyInputMessage> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseEasyInputMessage).Name}");
easyInputMessage = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -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<global::Groq.ResponseInputMessage> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseInputMessage).Name}");
message = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -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<global::Groq.ResponseItemReference> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseItemReference).Name}");
itemReference = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -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<global::Groq.ResponseFunctionCall> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseFunctionCall).Name}");
functionCall = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -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<global::Groq.ResponseFunctionCallOutput> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseFunctionCallOutput).Name}");
functionCallOutput = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<global::Groq.ResponseToolChoiceOptionEnum> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseToolChoiceOptionEnum).Name}");
@enum = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -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<global::Groq.ResponseNamedToolChoice> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Groq.ResponseNamedToolChoice).Name}");
named = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down