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

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

Expand Down
9 changes: 9 additions & 0 deletions src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf4.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4> : global::System.Text.Json.Seria
catch (global::System.InvalidOperationException)
{
}
}

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

Expand All @@ -181,7 +184,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4> : global::System.Text.Json.Seria
catch (global::System.InvalidOperationException)
{
}
}

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

Expand All @@ -195,7 +201,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4> : global::System.Text.Json.Seria
catch (global::System.InvalidOperationException)
{
}
}

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

Expand Down
12 changes: 12 additions & 0 deletions src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf5.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5> : global::System.Text.Json.S
catch (global::System.InvalidOperationException)
{
}
}

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

Expand All @@ -211,7 +214,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5> : global::System.Text.Json.S
catch (global::System.InvalidOperationException)
{
}
}

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

Expand All @@ -225,7 +231,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5> : global::System.Text.Json.S
catch (global::System.InvalidOperationException)
{
}
}

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

Expand All @@ -239,7 +248,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5> : global::System.Text.Json.S
catch (global::System.InvalidOperationException)
{
}
}

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

Expand Down
15 changes: 15 additions & 0 deletions src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf6.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6> : global::System.Text.Js
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null)
{
try
{

Expand All @@ -241,7 +244,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6> : global::System.Text.Js
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null)
{
try
{

Expand All @@ -255,7 +261,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6> : global::System.Text.Js
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null)
{
try
{

Expand All @@ -269,7 +278,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6> : global::System.Text.Js
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null)
{
try
{

Expand All @@ -283,7 +295,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6> : global::System.Text.Js
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null)
{
try
{

Expand Down
18 changes: 18 additions & 0 deletions src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf7.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7> : global::System.Tex
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null)
{
try
{

Expand All @@ -271,7 +274,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7> : global::System.Tex
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null)
{
try
{

Expand All @@ -285,7 +291,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7> : global::System.Tex
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null)
{
try
{

Expand All @@ -299,7 +308,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7> : global::System.Tex
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null)
{
try
{

Expand All @@ -313,7 +325,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7> : global::System.Tex
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null)
{
try
{

Expand All @@ -327,7 +342,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7> : global::System.Tex
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null)
{
try
{

Expand Down
24 changes: 24 additions & 0 deletions src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf9.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7, T8, T9> : global::Sy
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null)
{
try
{

Expand All @@ -331,7 +334,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7, T8, T9> : global::Sy
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null)
{
try
{

Expand All @@ -345,7 +351,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7, T8, T9> : global::Sy
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null)
{
try
{

Expand All @@ -359,7 +368,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7, T8, T9> : global::Sy
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null)
{
try
{

Expand All @@ -373,7 +385,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7, T8, T9> : global::Sy
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null)
{
try
{

Expand All @@ -387,7 +402,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7, T8, T9> : global::Sy
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null)
{
try
{

Expand All @@ -401,7 +419,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7, T8, T9> : global::Sy
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null)
{
try
{

Expand All @@ -415,7 +436,10 @@ public class AnyOfJsonConverter<T1, T2, T3, T4, T5, T6, T7, T8, T9> : global::Sy
catch (global::System.InvalidOperationException)
{
}
}

if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null && value8 == null && value9 == null)
{
try
{

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public class ChatClassificationRequestInputsJsonConverter : global::System.Text.
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.InstructRequest), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mistral.InstructRequest> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.InstructRequest).Name}");
instructRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -85,9 +86,13 @@ public class ChatClassificationRequestInputsJsonConverter : global::System.Text.
catch (global::System.InvalidOperationException)
{
}
}

if (instructRequest == null && chatClassificationRequestInputsVariant2 == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::System.Collections.Generic.IList<global::Mistral.InstructRequest>), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::System.Collections.Generic.IList<global::Mistral.InstructRequest>> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList<global::Mistral.InstructRequest>).Name}");
chatClassificationRequestInputsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ public class ChatCompletionResponseJsonConverter : global::System.Text.Json.Seri
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ChatCompletionResponseBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mistral.ChatCompletionResponseBase> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ChatCompletionResponseBase).Name}");
@base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -85,9 +86,13 @@ public class ChatCompletionResponseJsonConverter : global::System.Text.Json.Seri
catch (global::System.InvalidOperationException)
{
}
}

if (@base == null && response1 == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ChatCompletionResponseChatCompletionResponse1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mistral.ChatCompletionResponseChatCompletionResponse1> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ChatCompletionResponseChatCompletionResponse1).Name}");
response1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ public class ChatCompletionResponseBaseJsonConverter : global::System.Text.Json.
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ResponseBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mistral.ResponseBase> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ResponseBase).Name}");
responseBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand All @@ -103,9 +104,13 @@ public class ChatCompletionResponseBaseJsonConverter : global::System.Text.Json.
catch (global::System.InvalidOperationException)
{
}
}

if (responseBase == null && base1 == null)
{
try
{

var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ChatCompletionResponseBaseChatCompletionResponseBase1), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::Mistral.ChatCompletionResponseBaseChatCompletionResponseBase1> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ChatCompletionResponseBaseChatCompletionResponseBase1).Name}");
base1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo);
Expand Down
Loading