From 688a8c2c0a059ecbd30fac0bbbbec1922672cf62 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Sun, 10 May 2026 03:55:52 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- .../Mistral.JsonConverters.AnyOf2.g.cs | 3 ++ .../Mistral.JsonConverters.AnyOf3.g.cs | 6 +++ .../Mistral.JsonConverters.AnyOf4.g.cs | 9 ++++ .../Mistral.JsonConverters.AnyOf5.g.cs | 12 +++++ .../Mistral.JsonConverters.AnyOf6.g.cs | 15 ++++++ .../Mistral.JsonConverters.AnyOf7.g.cs | 18 +++++++ .../Mistral.JsonConverters.AnyOf9.g.cs | 24 ++++++++++ ...rters.ChatClassificationRequestInputs.g.cs | 5 ++ ...JsonConverters.ChatCompletionResponse.g.cs | 5 ++ ...Converters.ChatCompletionResponseBase.g.cs | 5 ++ ...ral.JsonConverters.CompletionArgsStop.g.cs | 6 +++ ...nConverters.ConversationAppendRequest.g.cs | 5 ++ ...rters.ConversationAppendStreamRequest.g.cs | 5 ++ ...ral.JsonConverters.ConversationInputs.g.cs | 3 ++ ...al.JsonConverters.ConversationRequest.g.cs | 5 ++ ...Converters.ConversationRestartRequest.g.cs | 5 ++ ...ters.ConversationRestartStreamRequest.g.cs | 5 ++ ...nConverters.ConversationStreamRequest.g.cs | 5 ++ ...tral.JsonConverters.EmbeddingResponse.g.cs | 5 ++ ....JsonConverters.FIMCompletionResponse.g.cs | 5 ++ ...Converters.FunctionCallEntryArguments.g.cs | 3 ++ .../Mistral.JsonConverters.OneOf17.g.cs | 48 +++++++++++++++++++ ...al.JsonConverters.OutputContentChunks.g.cs | 21 ++++++++ ...ExecutionTraceSummaryAttributesValues.g.cs | 12 +++++ 24 files changed, 235 insertions(+) diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf2.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf2.g.cs index 19c54951..c4c8a9c2 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf2.g.cs +++ b/src/libs/Mistral/Generated/Mistral.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/Mistral/Generated/Mistral.JsonConverters.AnyOf3.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf3.g.cs index 4868ad78..beb6a9b2 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf3.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf3.g.cs @@ -137,7 +137,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { @@ -151,7 +154,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null) + { try { diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf4.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf4.g.cs index 8e7dcf70..60384f04 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf4.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf4.g.cs @@ -167,7 +167,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null) + { try { @@ -181,7 +184,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null) + { try { @@ -195,7 +201,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null) + { try { diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf5.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf5.g.cs index f400bc93..6586fa5e 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf5.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf5.g.cs @@ -197,7 +197,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { try { @@ -211,7 +214,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { try { @@ -225,7 +231,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { try { @@ -239,7 +248,10 @@ public class AnyOfJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null) + { try { diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf6.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf6.g.cs index 22d6ea3d..56722484 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf6.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf6.g.cs @@ -227,7 +227,10 @@ public class AnyOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { try { @@ -241,7 +244,10 @@ public class AnyOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { try { @@ -255,7 +261,10 @@ public class AnyOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { try { @@ -269,7 +278,10 @@ public class AnyOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { try { @@ -283,7 +295,10 @@ public class AnyOfJsonConverter : global::System.Text.Js catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null) + { try { diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf7.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf7.g.cs index d9fc6b11..0247fe5e 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf7.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf7.g.cs @@ -257,7 +257,10 @@ public class AnyOfJsonConverter : global::System.Tex catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) + { try { @@ -271,7 +274,10 @@ public class AnyOfJsonConverter : global::System.Tex catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) + { try { @@ -285,7 +291,10 @@ public class AnyOfJsonConverter : global::System.Tex catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) + { try { @@ -299,7 +308,10 @@ public class AnyOfJsonConverter : global::System.Tex catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) + { try { @@ -313,7 +325,10 @@ public class AnyOfJsonConverter : global::System.Tex catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) + { try { @@ -327,7 +342,10 @@ public class AnyOfJsonConverter : global::System.Tex catch (global::System.InvalidOperationException) { } + } + if (value1 == null && value2 == null && value3 == null && value4 == null && value5 == null && value6 == null && value7 == null) + { try { diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf9.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf9.g.cs index 45e80d80..959f2d28 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf9.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.AnyOf9.g.cs @@ -317,7 +317,10 @@ public class AnyOfJsonConverter : 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 { @@ -331,7 +334,10 @@ public class AnyOfJsonConverter : 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 { @@ -345,7 +351,10 @@ public class AnyOfJsonConverter : 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 { @@ -359,7 +368,10 @@ public class AnyOfJsonConverter : 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 { @@ -373,7 +385,10 @@ public class AnyOfJsonConverter : 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 { @@ -387,7 +402,10 @@ public class AnyOfJsonConverter : 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 { @@ -401,7 +419,10 @@ public class AnyOfJsonConverter : 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 { @@ -415,7 +436,10 @@ public class AnyOfJsonConverter : 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 { diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.ChatClassificationRequestInputs.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.ChatClassificationRequestInputs.g.cs index e9c38c6a..16963cd6 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.ChatClassificationRequestInputs.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.ChatClassificationRequestInputs.g.cs @@ -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 ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.InstructRequest).Name}"); instructRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -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), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo> ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::System.Collections.Generic.IList).Name}"); chatClassificationRequestInputsVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.ChatCompletionResponse.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.ChatCompletionResponse.g.cs index 62193501..c82bf190 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.ChatCompletionResponse.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.ChatCompletionResponse.g.cs @@ -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 ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ChatCompletionResponseBase).Name}"); @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -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 ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ChatCompletionResponseChatCompletionResponse1).Name}"); response1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.ChatCompletionResponseBase.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.ChatCompletionResponseBase.g.cs index c908b261..0cf29a4e 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.ChatCompletionResponseBase.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.ChatCompletionResponseBase.g.cs @@ -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 ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ResponseBase).Name}"); responseBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -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 ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ChatCompletionResponseBaseChatCompletionResponseBase1).Name}"); base1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.CompletionArgsStop.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.CompletionArgsStop.g.cs index 1d0c1b8e..bc2acd72 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.CompletionArgsStop.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.CompletionArgsStop.g.cs @@ -138,7 +138,10 @@ public class CompletionArgsStopJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (completionArgsStopVariant1 == null && completionArgsStopVariant2 == null && completionArgsStopVariant3 == null) + { try { @@ -152,7 +155,10 @@ public class CompletionArgsStopJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (completionArgsStopVariant1 == null && completionArgsStopVariant2 == null && completionArgsStopVariant3 == null) + { try { diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationAppendRequest.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationAppendRequest.g.cs index e166dfbd..9b9e555a 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationAppendRequest.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationAppendRequest.g.cs @@ -99,6 +99,7 @@ public class ConversationAppendRequestJsonConverter : global::System.Text.Json.S { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ConversationAppendRequestBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ConversationAppendRequestBase).Name}"); @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -109,9 +110,13 @@ public class ConversationAppendRequestJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (@base == null && conversationAppendRequestVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ConversationAppendRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ConversationAppendRequestVariant2).Name}"); conversationAppendRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationAppendStreamRequest.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationAppendStreamRequest.g.cs index fb7eb604..6e907c0d 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationAppendStreamRequest.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationAppendStreamRequest.g.cs @@ -99,6 +99,7 @@ public class ConversationAppendStreamRequestJsonConverter : global::System.Text. { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ConversationAppendRequestBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ConversationAppendRequestBase).Name}"); conversationAppendRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -109,9 +110,13 @@ public class ConversationAppendStreamRequestJsonConverter : global::System.Text. catch (global::System.InvalidOperationException) { } + } + if (conversationAppendRequest == null && conversationAppendStreamRequestVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ConversationAppendStreamRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ConversationAppendStreamRequestVariant2).Name}"); conversationAppendStreamRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationInputs.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationInputs.g.cs index 84bac6e0..102b5e04 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationInputs.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationInputs.g.cs @@ -108,7 +108,10 @@ public class ConversationInputsJsonConverter : global::System.Text.Json.Serializ catch (global::System.InvalidOperationException) { } + } + if (conversationInputsVariant1 == null && inputEntries == null) + { try { diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationRequest.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationRequest.g.cs index 57f20108..79c120a2 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationRequest.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationRequest.g.cs @@ -89,6 +89,7 @@ public class ConversationRequestJsonConverter : global::System.Text.Json.Seriali { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ConversationRequestBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ConversationRequestBase).Name}"); @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -99,9 +100,13 @@ public class ConversationRequestJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (@base == null && conversationRequestVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ConversationRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ConversationRequestVariant2).Name}"); conversationRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationRestartRequest.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationRestartRequest.g.cs index 07a76e88..2762bc24 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationRestartRequest.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationRestartRequest.g.cs @@ -102,6 +102,7 @@ public class ConversationRestartRequestJsonConverter : global::System.Text.Json. { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ConversationRestartRequestBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ConversationRestartRequestBase).Name}"); @base = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -112,9 +113,13 @@ public class ConversationRestartRequestJsonConverter : global::System.Text.Json. catch (global::System.InvalidOperationException) { } + } + if (@base == null && conversationRestartRequestVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ConversationRestartRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ConversationRestartRequestVariant2).Name}"); conversationRestartRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationRestartStreamRequest.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationRestartStreamRequest.g.cs index 983e0df6..bb5a8364 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationRestartStreamRequest.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationRestartStreamRequest.g.cs @@ -102,6 +102,7 @@ public class ConversationRestartStreamRequestJsonConverter : global::System.Text { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ConversationRestartRequestBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ConversationRestartRequestBase).Name}"); conversationRestartRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -112,9 +113,13 @@ public class ConversationRestartStreamRequestJsonConverter : global::System.Text catch (global::System.InvalidOperationException) { } + } + if (conversationRestartRequest == null && conversationRestartStreamRequestVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ConversationRestartStreamRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ConversationRestartStreamRequestVariant2).Name}"); conversationRestartStreamRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationStreamRequest.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationStreamRequest.g.cs index fee3f31e..e5120cd0 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationStreamRequest.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.ConversationStreamRequest.g.cs @@ -89,6 +89,7 @@ public class ConversationStreamRequestJsonConverter : global::System.Text.Json.S { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ConversationRequestBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ConversationRequestBase).Name}"); conversationRequest = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -99,9 +100,13 @@ public class ConversationStreamRequestJsonConverter : global::System.Text.Json.S catch (global::System.InvalidOperationException) { } + } + if (conversationRequest == null && conversationStreamRequestVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ConversationStreamRequestVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ConversationStreamRequestVariant2).Name}"); conversationStreamRequestVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.EmbeddingResponse.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.EmbeddingResponse.g.cs index 9a3e2e6c..8968ea55 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.EmbeddingResponse.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.EmbeddingResponse.g.cs @@ -93,6 +93,7 @@ public class EmbeddingResponseJsonConverter : global::System.Text.Json.Serializa { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ResponseBase), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ResponseBase).Name}"); responseBase = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -103,9 +104,13 @@ public class EmbeddingResponseJsonConverter : global::System.Text.Json.Serializa catch (global::System.InvalidOperationException) { } + } + if (responseBase == null && embeddingResponseVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.EmbeddingResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.EmbeddingResponseVariant2).Name}"); embeddingResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.FIMCompletionResponse.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.FIMCompletionResponse.g.cs index b58051ee..93f92d36 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.FIMCompletionResponse.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.FIMCompletionResponse.g.cs @@ -75,6 +75,7 @@ public class FIMCompletionResponseJsonConverter : global::System.Text.Json.Seria { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ChatCompletionResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ChatCompletionResponse).Name}"); chat = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -85,9 +86,13 @@ public class FIMCompletionResponseJsonConverter : global::System.Text.Json.Seria catch (global::System.InvalidOperationException) { } + } + if (chat == null && fIMCompletionResponseVariant2 == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.FIMCompletionResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.FIMCompletionResponseVariant2).Name}"); fIMCompletionResponseVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.FunctionCallEntryArguments.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.FunctionCallEntryArguments.g.cs index 773484f7..66220d7a 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.FunctionCallEntryArguments.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.FunctionCallEntryArguments.g.cs @@ -108,7 +108,10 @@ public class FunctionCallEntryArgumentsJsonConverter : global::System.Text.Json. catch (global::System.InvalidOperationException) { } + } + if (functionCallEntryArgumentsVariant1 == null && functionCallEntryArgumentsVariant2 == null) + { try { diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.OneOf17.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.OneOf17.g.cs index bfe172e8..c0ba802a 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.OneOf17.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.OneOf17.g.cs @@ -557,7 +557,10 @@ public class OneOfJsonConverter ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.TextChunk).Name}"); textChunk = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -177,9 +178,13 @@ public class OutputContentChunksJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (textChunk == null && imageURLChunk == null && toolFileChunk == null && documentURLChunk == null && thinkChunk == null && toolReferenceChunk == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ImageURLChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ImageURLChunk).Name}"); imageURLChunk = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -190,9 +195,13 @@ public class OutputContentChunksJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (textChunk == null && imageURLChunk == null && toolFileChunk == null && documentURLChunk == null && thinkChunk == null && toolReferenceChunk == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ToolFileChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ToolFileChunk).Name}"); toolFileChunk = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -203,9 +212,13 @@ public class OutputContentChunksJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (textChunk == null && imageURLChunk == null && toolFileChunk == null && documentURLChunk == null && thinkChunk == null && toolReferenceChunk == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.DocumentURLChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.DocumentURLChunk).Name}"); documentURLChunk = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -216,9 +229,13 @@ public class OutputContentChunksJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (textChunk == null && imageURLChunk == null && toolFileChunk == null && documentURLChunk == null && thinkChunk == null && toolReferenceChunk == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ThinkChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ThinkChunk).Name}"); thinkChunk = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); @@ -229,9 +246,13 @@ public class OutputContentChunksJsonConverter : global::System.Text.Json.Seriali catch (global::System.InvalidOperationException) { } + } + if (textChunk == null && imageURLChunk == null && toolFileChunk == null && documentURLChunk == null && thinkChunk == null && toolReferenceChunk == null) + { try { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::Mistral.ToolReferenceChunk), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::Mistral.ToolReferenceChunk).Name}"); toolReferenceChunk = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); diff --git a/src/libs/Mistral/Generated/Mistral.JsonConverters.WorkflowExecutionTraceSummaryAttributesValues.g.cs b/src/libs/Mistral/Generated/Mistral.JsonConverters.WorkflowExecutionTraceSummaryAttributesValues.g.cs index 4190e250..e3d056a1 100644 --- a/src/libs/Mistral/Generated/Mistral.JsonConverters.WorkflowExecutionTraceSummaryAttributesValues.g.cs +++ b/src/libs/Mistral/Generated/Mistral.JsonConverters.WorkflowExecutionTraceSummaryAttributesValues.g.cs @@ -198,7 +198,10 @@ public class WorkflowExecutionTraceSummaryAttributesValuesJsonConverter : global catch (global::System.InvalidOperationException) { } + } + if (workflowExecutionTraceSummaryAttributesValuesVariant1 == null && workflowExecutionTraceSummaryAttributesValuesVariant2 == null && workflowExecutionTraceSummaryAttributesValuesVariant3 == null && workflowExecutionTraceSummaryAttributesValuesVariant4 == null && workflowExecutionTraceSummaryAttributesValuesVariant5 == null) + { try { @@ -212,7 +215,10 @@ public class WorkflowExecutionTraceSummaryAttributesValuesJsonConverter : global catch (global::System.InvalidOperationException) { } + } + if (workflowExecutionTraceSummaryAttributesValuesVariant1 == null && workflowExecutionTraceSummaryAttributesValuesVariant2 == null && workflowExecutionTraceSummaryAttributesValuesVariant3 == null && workflowExecutionTraceSummaryAttributesValuesVariant4 == null && workflowExecutionTraceSummaryAttributesValuesVariant5 == null) + { try { @@ -226,7 +232,10 @@ public class WorkflowExecutionTraceSummaryAttributesValuesJsonConverter : global catch (global::System.InvalidOperationException) { } + } + if (workflowExecutionTraceSummaryAttributesValuesVariant1 == null && workflowExecutionTraceSummaryAttributesValuesVariant2 == null && workflowExecutionTraceSummaryAttributesValuesVariant3 == null && workflowExecutionTraceSummaryAttributesValuesVariant4 == null && workflowExecutionTraceSummaryAttributesValuesVariant5 == null) + { try { @@ -240,7 +249,10 @@ public class WorkflowExecutionTraceSummaryAttributesValuesJsonConverter : global catch (global::System.InvalidOperationException) { } + } + if (workflowExecutionTraceSummaryAttributesValuesVariant1 == null && workflowExecutionTraceSummaryAttributesValuesVariant2 == null && workflowExecutionTraceSummaryAttributesValuesVariant3 == null && workflowExecutionTraceSummaryAttributesValuesVariant4 == null && workflowExecutionTraceSummaryAttributesValuesVariant5 == null) + { try {