diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicBashCodeExecutionContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicBashCodeExecutionContent.g.cs index 875684e5..885af915 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicBashCodeExecutionContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicBashCodeExecutionContent.g.cs @@ -23,6 +23,7 @@ public class AnthropicBashCodeExecutionContentJsonConverter : global::System.Tex foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicCaller.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicCaller.g.cs index 3af8d8ac..e91adcc8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicCaller.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicCaller.g.cs @@ -23,6 +23,7 @@ public class AnthropicCallerJsonConverter : global::System.Text.Json.Serializati foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicCodeExecutionContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicCodeExecutionContent.g.cs index b9483427..d5ac530d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicCodeExecutionContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicCodeExecutionContent.g.cs @@ -23,6 +23,7 @@ public class AnthropicCodeExecutionContentJsonConverter : global::System.Text.Js foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicDocumentBlockParamSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicDocumentBlockParamSource.g.cs index 0a42075e..a832fc64 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicDocumentBlockParamSource.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicDocumentBlockParamSource.g.cs @@ -23,6 +23,7 @@ public class AnthropicDocumentBlockParamSourceJsonConverter : global::System.Tex foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items.g.cs index d3f82dd2..82fa25a6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items.g.cs @@ -23,16 +23,28 @@ public class AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1ItemsJsonConver foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } var __score0 = 0; if (__jsonProps.Contains("cache_control")) __score0++; + if (__jsonProps.Contains("cache_control.ttl")) __score0++; + if (__jsonProps.Contains("cache_control.type")) __score0++; if (__jsonProps.Contains("citations")) __score0++; if (__jsonProps.Contains("text")) __score0++; if (__jsonProps.Contains("type")) __score0++; var __score1 = 0; if (__jsonProps.Contains("cache_control")) __score1++; + if (__jsonProps.Contains("cache_control.ttl")) __score1++; + if (__jsonProps.Contains("cache_control.type")) __score1++; if (__jsonProps.Contains("source")) __score1++; if (__jsonProps.Contains("type")) __score1++; var __bestScore = 0; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicDocumentBlockSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicDocumentBlockSource.g.cs index f54749f7..230562d6 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicDocumentBlockSource.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicDocumentBlockSource.g.cs @@ -23,6 +23,7 @@ public class AnthropicDocumentBlockSourceJsonConverter : global::System.Text.Jso foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicImageBlockParamSource.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicImageBlockParamSource.g.cs index ff919482..2149108b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicImageBlockParamSource.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicImageBlockParamSource.g.cs @@ -23,6 +23,7 @@ public class AnthropicImageBlockParamSourceJsonConverter : global::System.Text.J foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItems.g.cs index 7788cfea..8c73990b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicTextBlockParamCitationsItems.g.cs @@ -23,6 +23,7 @@ public class AnthropicTextBlockParamCitationsItemsJsonConverter : global::System foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicTextCitation.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicTextCitation.g.cs index 8fdc836b..53a71d51 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicTextCitation.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicTextCitation.g.cs @@ -23,6 +23,7 @@ public class AnthropicTextCitationJsonConverter : global::System.Text.Json.Seria foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionContent.g.cs index 1c8a5feb..1eb04bfc 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicTextEditorCodeExecutionContent.g.cs @@ -23,6 +23,7 @@ public class AnthropicTextEditorCodeExecutionContentJsonConverter : global::Syst foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicToolSearchContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicToolSearchContent.g.cs index e3c49bc1..9d69ab8e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicToolSearchContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicToolSearchContent.g.cs @@ -23,6 +23,7 @@ public class AnthropicToolSearchContentJsonConverter : global::System.Text.Json. foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicUsageIteration.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicUsageIteration.g.cs index 7fa14561..a304440e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicUsageIteration.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicUsageIteration.g.cs @@ -23,11 +23,21 @@ public class AnthropicUsageIterationJsonConverter : global::System.Text.Json.Ser foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } var __score0 = 0; if (__jsonProps.Contains("cache_creation")) __score0++; + if (__jsonProps.Contains("cache_creation.ephemeral_1h_input_tokens")) __score0++; + if (__jsonProps.Contains("cache_creation.ephemeral_5m_input_tokens")) __score0++; if (__jsonProps.Contains("cache_creation_input_tokens")) __score0++; if (__jsonProps.Contains("cache_read_input_tokens")) __score0++; if (__jsonProps.Contains("input_tokens")) __score0++; @@ -35,6 +45,8 @@ public class AnthropicUsageIterationJsonConverter : global::System.Text.Json.Ser if (__jsonProps.Contains("type")) __score0++; var __score1 = 0; if (__jsonProps.Contains("cache_creation")) __score1++; + if (__jsonProps.Contains("cache_creation.ephemeral_1h_input_tokens")) __score1++; + if (__jsonProps.Contains("cache_creation.ephemeral_5m_input_tokens")) __score1++; if (__jsonProps.Contains("cache_creation_input_tokens")) __score1++; if (__jsonProps.Contains("cache_read_input_tokens")) __score1++; if (__jsonProps.Contains("input_tokens")) __score1++; @@ -42,6 +54,8 @@ public class AnthropicUsageIterationJsonConverter : global::System.Text.Json.Ser if (__jsonProps.Contains("type")) __score1++; var __score2 = 0; if (__jsonProps.Contains("cache_creation")) __score2++; + if (__jsonProps.Contains("cache_creation.ephemeral_1h_input_tokens")) __score2++; + if (__jsonProps.Contains("cache_creation.ephemeral_5m_input_tokens")) __score2++; if (__jsonProps.Contains("cache_creation_input_tokens")) __score2++; if (__jsonProps.Contains("cache_read_input_tokens")) __score2++; if (__jsonProps.Contains("input_tokens")) __score2++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicWebFetchContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicWebFetchContent.g.cs index 62ff4f77..e98b7c26 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicWebFetchContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicWebFetchContent.g.cs @@ -23,6 +23,14 @@ public class AnthropicWebFetchContentJsonConverter : global::System.Text.Json.Se foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -31,6 +39,10 @@ public class AnthropicWebFetchContentJsonConverter : global::System.Text.Json.Se if (__jsonProps.Contains("type")) __score0++; var __score1 = 0; if (__jsonProps.Contains("content")) __score1++; + if (__jsonProps.Contains("content.citations")) __score1++; + if (__jsonProps.Contains("content.source")) __score1++; + if (__jsonProps.Contains("content.title")) __score1++; + if (__jsonProps.Contains("content.type")) __score1++; if (__jsonProps.Contains("retrieved_at")) __score1++; if (__jsonProps.Contains("type")) __score1++; if (__jsonProps.Contains("url")) __score1++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicWebSearchToolResultContent.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicWebSearchToolResultContent.g.cs index 7c09ed32..608abe32 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicWebSearchToolResultContent.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.AnthropicWebSearchToolResultContent.g.cs @@ -23,6 +23,7 @@ public class AnthropicWebSearchToolResultContentJsonConverter : global::System.T foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1Items.g.cs index af8fedd2..3e5302c7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1Items.g.cs @@ -23,6 +23,7 @@ public class BaseInputsOneOf1ItemsJsonConverter : global::System.Text.Json.Seria foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items.g.cs index f16205a6..0c4befa2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items.g.cs @@ -23,6 +23,14 @@ public class BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsJsonConverter : global foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -41,6 +49,8 @@ public class BaseInputsOneOf1ItemsOneOf0ContentOneOf0ItemsJsonConverter : global if (__jsonProps.Contains("type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("input_audio")) __score3++; + if (__jsonProps.Contains("input_audio.data")) __score3++; + if (__jsonProps.Contains("input_audio.format")) __score3++; if (__jsonProps.Contains("type")) __score3++; var __bestScore = 0; var __bestIndex = -1; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseResponsesResultOutputItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseResponsesResultOutputItems.g.cs index 16dce13b..59378bbc 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseResponsesResultOutputItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseResponsesResultOutputItems.g.cs @@ -23,6 +23,7 @@ public class BaseResponsesResultOutputItemsJsonConverter : global::System.Text.J foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseResponsesResultToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseResponsesResultToolsItems.g.cs index 943929b8..e31ad214 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseResponsesResultToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.BaseResponsesResultToolsItems.g.cs @@ -23,6 +23,14 @@ public class BaseResponsesResultToolsItemsJsonConverter : global::System.Text.Js foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -35,35 +43,65 @@ public class BaseResponsesResultToolsItemsJsonConverter : global::System.Text.Js var __score1 = 0; if (__jsonProps.Contains("engine")) __score1++; if (__jsonProps.Contains("filters")) __score1++; + if (__jsonProps.Contains("filters.allowed_domains")) __score1++; + if (__jsonProps.Contains("filters.excluded_domains")) __score1++; if (__jsonProps.Contains("max_results")) __score1++; if (__jsonProps.Contains("search_context_size")) __score1++; if (__jsonProps.Contains("type")) __score1++; if (__jsonProps.Contains("user_location")) __score1++; + if (__jsonProps.Contains("user_location.city")) __score1++; + if (__jsonProps.Contains("user_location.country")) __score1++; + if (__jsonProps.Contains("user_location.region")) __score1++; + if (__jsonProps.Contains("user_location.timezone")) __score1++; + if (__jsonProps.Contains("user_location.type")) __score1++; var __score2 = 0; if (__jsonProps.Contains("engine")) __score2++; if (__jsonProps.Contains("filters")) __score2++; + if (__jsonProps.Contains("filters.allowed_domains")) __score2++; + if (__jsonProps.Contains("filters.excluded_domains")) __score2++; if (__jsonProps.Contains("max_results")) __score2++; if (__jsonProps.Contains("search_context_size")) __score2++; if (__jsonProps.Contains("type")) __score2++; if (__jsonProps.Contains("user_location")) __score2++; + if (__jsonProps.Contains("user_location.city")) __score2++; + if (__jsonProps.Contains("user_location.country")) __score2++; + if (__jsonProps.Contains("user_location.region")) __score2++; + if (__jsonProps.Contains("user_location.timezone")) __score2++; + if (__jsonProps.Contains("user_location.type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("engine")) __score3++; if (__jsonProps.Contains("filters")) __score3++; + if (__jsonProps.Contains("filters.allowed_domains")) __score3++; + if (__jsonProps.Contains("filters.excluded_domains")) __score3++; if (__jsonProps.Contains("max_results")) __score3++; if (__jsonProps.Contains("search_context_size")) __score3++; if (__jsonProps.Contains("type")) __score3++; if (__jsonProps.Contains("user_location")) __score3++; + if (__jsonProps.Contains("user_location.city")) __score3++; + if (__jsonProps.Contains("user_location.country")) __score3++; + if (__jsonProps.Contains("user_location.region")) __score3++; + if (__jsonProps.Contains("user_location.timezone")) __score3++; + if (__jsonProps.Contains("user_location.type")) __score3++; var __score4 = 0; if (__jsonProps.Contains("engine")) __score4++; if (__jsonProps.Contains("filters")) __score4++; + if (__jsonProps.Contains("filters.allowed_domains")) __score4++; + if (__jsonProps.Contains("filters.excluded_domains")) __score4++; if (__jsonProps.Contains("max_results")) __score4++; if (__jsonProps.Contains("search_context_size")) __score4++; if (__jsonProps.Contains("type")) __score4++; if (__jsonProps.Contains("user_location")) __score4++; + if (__jsonProps.Contains("user_location.city")) __score4++; + if (__jsonProps.Contains("user_location.country")) __score4++; + if (__jsonProps.Contains("user_location.region")) __score4++; + if (__jsonProps.Contains("user_location.timezone")) __score4++; + if (__jsonProps.Contains("user_location.type")) __score4++; var __score5 = 0; if (__jsonProps.Contains("filters")) __score5++; if (__jsonProps.Contains("max_num_results")) __score5++; if (__jsonProps.Contains("ranking_options")) __score5++; + if (__jsonProps.Contains("ranking_options.ranker")) __score5++; + if (__jsonProps.Contains("ranking_options.score_threshold")) __score5++; if (__jsonProps.Contains("type")) __score5++; if (__jsonProps.Contains("vector_store_ids")) __score5++; var __score6 = 0; @@ -88,6 +126,8 @@ public class BaseResponsesResultToolsItemsJsonConverter : global::System.Text.Js if (__jsonProps.Contains("background")) __score9++; if (__jsonProps.Contains("input_fidelity")) __score9++; if (__jsonProps.Contains("input_image_mask")) __score9++; + if (__jsonProps.Contains("input_image_mask.file_id")) __score9++; + if (__jsonProps.Contains("input_image_mask.image_url")) __score9++; if (__jsonProps.Contains("model")) __score9++; if (__jsonProps.Contains("moderation")) __score9++; if (__jsonProps.Contains("output_compression")) __score9++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatContentItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatContentItems.g.cs index 2a487da4..65a8f12a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatContentItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatContentItems.g.cs @@ -23,27 +23,46 @@ public class ChatContentItemsJsonConverter : global::System.Text.Json.Serializat foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } var __score0 = 0; if (__jsonProps.Contains("cache_control")) __score0++; + if (__jsonProps.Contains("cache_control.ttl")) __score0++; + if (__jsonProps.Contains("cache_control.type")) __score0++; if (__jsonProps.Contains("text")) __score0++; if (__jsonProps.Contains("type")) __score0++; var __score1 = 0; if (__jsonProps.Contains("image_url")) __score1++; + if (__jsonProps.Contains("image_url.detail")) __score1++; + if (__jsonProps.Contains("image_url.url")) __score1++; if (__jsonProps.Contains("type")) __score1++; var __score2 = 0; if (__jsonProps.Contains("input_audio")) __score2++; + if (__jsonProps.Contains("input_audio.data")) __score2++; + if (__jsonProps.Contains("input_audio.format")) __score2++; if (__jsonProps.Contains("type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("type")) __score3++; if (__jsonProps.Contains("video_url")) __score3++; + if (__jsonProps.Contains("video_url.url")) __score3++; var __score4 = 0; if (__jsonProps.Contains("type")) __score4++; if (__jsonProps.Contains("video_url")) __score4++; + if (__jsonProps.Contains("video_url.url")) __score4++; var __score5 = 0; if (__jsonProps.Contains("file")) __score5++; + if (__jsonProps.Contains("file.file_data")) __score5++; + if (__jsonProps.Contains("file.file_id")) __score5++; + if (__jsonProps.Contains("file.filename")) __score5++; if (__jsonProps.Contains("type")) __score5++; var __bestScore = 0; var __bestIndex = -1; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatFunctionTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatFunctionTool.g.cs index 70f5ca1f..1217029c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatFunctionTool.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatFunctionTool.g.cs @@ -23,24 +23,48 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } var __score0 = 0; if (__jsonProps.Contains("cache_control")) __score0++; + if (__jsonProps.Contains("cache_control.ttl")) __score0++; + if (__jsonProps.Contains("cache_control.type")) __score0++; if (__jsonProps.Contains("function")) __score0++; + if (__jsonProps.Contains("function.description")) __score0++; + if (__jsonProps.Contains("function.name")) __score0++; + if (__jsonProps.Contains("function.parameters")) __score0++; + if (__jsonProps.Contains("function.strict")) __score0++; if (__jsonProps.Contains("type")) __score0++; var __score1 = 0; if (__jsonProps.Contains("parameters")) __score1++; + if (__jsonProps.Contains("parameters.timezone")) __score1++; if (__jsonProps.Contains("type")) __score1++; var __score2 = 0; if (__jsonProps.Contains("parameters")) __score2++; + if (__jsonProps.Contains("parameters.model")) __score2++; if (__jsonProps.Contains("type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("parameters")) __score3++; + if (__jsonProps.Contains("parameters.max_results")) __score3++; if (__jsonProps.Contains("type")) __score3++; var __score4 = 0; if (__jsonProps.Contains("parameters")) __score4++; + if (__jsonProps.Contains("parameters.allowed_domains")) __score4++; + if (__jsonProps.Contains("parameters.engine")) __score4++; + if (__jsonProps.Contains("parameters.excluded_domains")) __score4++; + if (__jsonProps.Contains("parameters.max_results")) __score4++; + if (__jsonProps.Contains("parameters.max_total_results")) __score4++; + if (__jsonProps.Contains("parameters.search_context_size")) __score4++; + if (__jsonProps.Contains("parameters.user_location")) __score4++; if (__jsonProps.Contains("type")) __score4++; var __score5 = 0; if (__jsonProps.Contains("allowed_domains")) __score5++; @@ -49,9 +73,21 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat if (__jsonProps.Contains("max_results")) __score5++; if (__jsonProps.Contains("max_total_results")) __score5++; if (__jsonProps.Contains("parameters")) __score5++; + if (__jsonProps.Contains("parameters.allowed_domains")) __score5++; + if (__jsonProps.Contains("parameters.engine")) __score5++; + if (__jsonProps.Contains("parameters.excluded_domains")) __score5++; + if (__jsonProps.Contains("parameters.max_results")) __score5++; + if (__jsonProps.Contains("parameters.max_total_results")) __score5++; + if (__jsonProps.Contains("parameters.search_context_size")) __score5++; + if (__jsonProps.Contains("parameters.user_location")) __score5++; if (__jsonProps.Contains("search_context_size")) __score5++; if (__jsonProps.Contains("type")) __score5++; if (__jsonProps.Contains("user_location")) __score5++; + if (__jsonProps.Contains("user_location.city")) __score5++; + if (__jsonProps.Contains("user_location.country")) __score5++; + if (__jsonProps.Contains("user_location.region")) __score5++; + if (__jsonProps.Contains("user_location.timezone")) __score5++; + if (__jsonProps.Contains("user_location.type")) __score5++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatMessages.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatMessages.g.cs index 051ba8b8..6727b086 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatMessages.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatMessages.g.cs @@ -23,6 +23,14 @@ public class ChatMessagesJsonConverter : global::System.Text.Json.Serialization. foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -40,6 +48,10 @@ public class ChatMessagesJsonConverter : global::System.Text.Json.Serialization. if (__jsonProps.Contains("role")) __score2++; var __score3 = 0; if (__jsonProps.Contains("audio")) __score3++; + if (__jsonProps.Contains("audio.data")) __score3++; + if (__jsonProps.Contains("audio.expires_at")) __score3++; + if (__jsonProps.Contains("audio.id")) __score3++; + if (__jsonProps.Contains("audio.transcript")) __score3++; if (__jsonProps.Contains("content")) __score3++; if (__jsonProps.Contains("images")) __score3++; if (__jsonProps.Contains("name")) __score3++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItems.g.cs index c8169708..21322f66 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestPluginsItems.g.cs @@ -23,6 +23,14 @@ public class ChatRequestPluginsItemsJsonConverter : global::System.Text.Json.Ser foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -44,6 +52,7 @@ public class ChatRequestPluginsItemsJsonConverter : global::System.Text.Json.Ser if (__jsonProps.Contains("enabled")) __score3++; if (__jsonProps.Contains("id")) __score3++; if (__jsonProps.Contains("pdf")) __score3++; + if (__jsonProps.Contains("pdf.engine")) __score3++; var __score4 = 0; if (__jsonProps.Contains("enabled")) __score4++; if (__jsonProps.Contains("id")) __score4++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestResponseFormat.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestResponseFormat.g.cs index 255f4559..f7de0d1b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestResponseFormat.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestResponseFormat.g.cs @@ -23,6 +23,14 @@ public class ChatRequestResponseFormatJsonConverter : global::System.Text.Json.S foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -32,6 +40,10 @@ public class ChatRequestResponseFormatJsonConverter : global::System.Text.Json.S if (__jsonProps.Contains("type")) __score1++; var __score2 = 0; if (__jsonProps.Contains("json_schema")) __score2++; + if (__jsonProps.Contains("json_schema.description")) __score2++; + if (__jsonProps.Contains("json_schema.name")) __score2++; + if (__jsonProps.Contains("json_schema.schema")) __score2++; + if (__jsonProps.Contains("json_schema.strict")) __score2++; if (__jsonProps.Contains("type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("grammar")) __score3++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatToolChoice.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatToolChoice.g.cs index 007414d5..3e14a03a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatToolChoice.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatToolChoice.g.cs @@ -23,6 +23,14 @@ public class ChatToolChoiceJsonConverter : global::System.Text.Json.Serializatio foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -31,6 +39,7 @@ public class ChatToolChoiceJsonConverter : global::System.Text.Json.Serializatio var __score2 = 0; var __score3 = 0; if (__jsonProps.Contains("function")) __score3++; + if (__jsonProps.Contains("function.name")) __score3++; if (__jsonProps.Contains("type")) __score3++; var __bestScore = 0; var __bestIndex = -1; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItems.g.cs index 2b89527a..3560909c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterCallItemOutputsItems.g.cs @@ -23,6 +23,7 @@ public class CodeInterpreterCallItemOutputsItemsJsonConverter : global::System.T foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterServerToolContainer.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterServerToolContainer.g.cs index 19f3a9f4..3df93f14 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterServerToolContainer.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CodeInterpreterServerToolContainer.g.cs @@ -23,6 +23,7 @@ public class CodeInterpreterServerToolContainerJsonConverter : global::System.Te foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CustomToolFormat.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CustomToolFormat.g.cs index d4965fea..0296c85d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CustomToolFormat.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.CustomToolFormat.g.cs @@ -23,6 +23,7 @@ public class CustomToolFormatJsonConverter : global::System.Text.Json.Serializat foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessageContentOneOf0Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessageContentOneOf0Items.g.cs index d1797803..86f75eb8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessageContentOneOf0Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EasyInputMessageContentOneOf0Items.g.cs @@ -23,6 +23,14 @@ public class EasyInputMessageContentOneOf0ItemsJsonConverter : global::System.Te foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -41,6 +49,8 @@ public class EasyInputMessageContentOneOf0ItemsJsonConverter : global::System.Te if (__jsonProps.Contains("type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("input_audio")) __score3++; + if (__jsonProps.Contains("input_audio.data")) __score3++; + if (__jsonProps.Contains("input_audio.format")) __score3++; if (__jsonProps.Contains("type")) __score3++; var __score4 = 0; if (__jsonProps.Contains("type")) __score4++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems.g.cs index 076edc0d..b5d41658 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems.g.cs @@ -23,6 +23,14 @@ public class EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Ite foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -31,6 +39,7 @@ public class EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Ite if (__jsonProps.Contains("type")) __score0++; var __score1 = 0; if (__jsonProps.Contains("image_url")) __score1++; + if (__jsonProps.Contains("image_url.url")) __score1++; if (__jsonProps.Contains("type")) __score1++; var __bestScore = 0; var __bestIndex = -1; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.FileSearchServerToolFilters.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.FileSearchServerToolFilters.g.cs index 72fbd5e9..752b6ac4 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.FileSearchServerToolFilters.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.FileSearchServerToolFilters.g.cs @@ -23,6 +23,7 @@ public class FileSearchServerToolFiltersJsonConverter : global::System.Text.Json foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Formats.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Formats.g.cs index af7a48cb..2805b714 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Formats.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.Formats.g.cs @@ -23,6 +23,7 @@ public class FormatsJsonConverter : global::System.Text.Json.Serialization.JsonC foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1Items.g.cs index 58a45ca6..733ca9af 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.FunctionCallOutputItemOutputOneOf1Items.g.cs @@ -23,6 +23,7 @@ public class FunctionCallOutputItemOutputOneOf1ItemsJsonConverter : global::Syst foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputMessageItemContentItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputMessageItemContentItems.g.cs index 0ce15611..7ff7565d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputMessageItemContentItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputMessageItemContentItems.g.cs @@ -23,6 +23,14 @@ public class InputMessageItemContentItemsJsonConverter : global::System.Text.Jso foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -41,6 +49,8 @@ public class InputMessageItemContentItemsJsonConverter : global::System.Text.Jso if (__jsonProps.Contains("type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("input_audio")) __score3++; + if (__jsonProps.Contains("input_audio.data")) __score3++; + if (__jsonProps.Contains("input_audio.format")) __score3++; if (__jsonProps.Contains("type")) __score3++; var __score4 = 0; if (__jsonProps.Contains("type")) __score4++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1Items.g.cs index fdef213d..1ee1b9f1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1Items.g.cs @@ -23,6 +23,7 @@ public class InputsOneOf1ItemsJsonConverter : global::System.Text.Json.Serializa foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentOneOf0Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentOneOf0Items.g.cs index 122462ac..6af7faf8 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentOneOf0Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.InputsOneOf1ItemsOneOf5ContentOneOf0Items.g.cs @@ -23,6 +23,7 @@ public class InputsOneOf1ItemsOneOf5ContentOneOf0ItemsJsonConverter : global::Sy foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolAllowedTools.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolAllowedTools.g.cs index 6d6671ad..cb6083d9 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolAllowedTools.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolAllowedTools.g.cs @@ -23,6 +23,7 @@ public class McpServerToolAllowedToolsJsonConverter : global::System.Text.Json.S foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolRequireApproval.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolRequireApproval.g.cs index de52aa78..a2b70e9b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolRequireApproval.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.McpServerToolRequireApproval.g.cs @@ -23,12 +23,22 @@ public class McpServerToolRequireApprovalJsonConverter : global::System.Text.Jso foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } var __score0 = 0; if (__jsonProps.Contains("always")) __score0++; + if (__jsonProps.Contains("always.tool_names")) __score0++; if (__jsonProps.Contains("never")) __score0++; + if (__jsonProps.Contains("never.tool_names")) __score0++; var __score1 = 0; var __score2 = 0; var __score3 = 0; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1Items.g.cs index 448237ea..44fa8e17 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1Items.g.cs @@ -23,20 +23,34 @@ public class MessagesMessageParamContentOneOf1ItemsJsonConverter : global::Syste foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } var __score0 = 0; if (__jsonProps.Contains("cache_control")) __score0++; + if (__jsonProps.Contains("cache_control.ttl")) __score0++; + if (__jsonProps.Contains("cache_control.type")) __score0++; if (__jsonProps.Contains("citations")) __score0++; if (__jsonProps.Contains("text")) __score0++; if (__jsonProps.Contains("type")) __score0++; var __score1 = 0; if (__jsonProps.Contains("cache_control")) __score1++; + if (__jsonProps.Contains("cache_control.ttl")) __score1++; + if (__jsonProps.Contains("cache_control.type")) __score1++; if (__jsonProps.Contains("source")) __score1++; if (__jsonProps.Contains("type")) __score1++; var __score2 = 0; if (__jsonProps.Contains("cache_control")) __score2++; + if (__jsonProps.Contains("cache_control.ttl")) __score2++; + if (__jsonProps.Contains("cache_control.type")) __score2++; if (__jsonProps.Contains("citations")) __score2++; if (__jsonProps.Contains("context")) __score2++; if (__jsonProps.Contains("source")) __score2++; @@ -44,12 +58,16 @@ public class MessagesMessageParamContentOneOf1ItemsJsonConverter : global::Syste if (__jsonProps.Contains("type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("cache_control")) __score3++; + if (__jsonProps.Contains("cache_control.ttl")) __score3++; + if (__jsonProps.Contains("cache_control.type")) __score3++; if (__jsonProps.Contains("id")) __score3++; if (__jsonProps.Contains("input")) __score3++; if (__jsonProps.Contains("name")) __score3++; if (__jsonProps.Contains("type")) __score3++; var __score4 = 0; if (__jsonProps.Contains("cache_control")) __score4++; + if (__jsonProps.Contains("cache_control.ttl")) __score4++; + if (__jsonProps.Contains("cache_control.type")) __score4++; if (__jsonProps.Contains("content")) __score4++; if (__jsonProps.Contains("is_error")) __score4++; if (__jsonProps.Contains("tool_use_id")) __score4++; @@ -63,24 +81,33 @@ public class MessagesMessageParamContentOneOf1ItemsJsonConverter : global::Syste if (__jsonProps.Contains("type")) __score6++; var __score7 = 0; if (__jsonProps.Contains("cache_control")) __score7++; + if (__jsonProps.Contains("cache_control.ttl")) __score7++; + if (__jsonProps.Contains("cache_control.type")) __score7++; if (__jsonProps.Contains("id")) __score7++; if (__jsonProps.Contains("input")) __score7++; if (__jsonProps.Contains("name")) __score7++; if (__jsonProps.Contains("type")) __score7++; var __score8 = 0; if (__jsonProps.Contains("cache_control")) __score8++; + if (__jsonProps.Contains("cache_control.ttl")) __score8++; + if (__jsonProps.Contains("cache_control.type")) __score8++; if (__jsonProps.Contains("content")) __score8++; if (__jsonProps.Contains("tool_use_id")) __score8++; if (__jsonProps.Contains("type")) __score8++; var __score9 = 0; if (__jsonProps.Contains("cache_control")) __score9++; + if (__jsonProps.Contains("cache_control.ttl")) __score9++; + if (__jsonProps.Contains("cache_control.type")) __score9++; if (__jsonProps.Contains("citations")) __score9++; + if (__jsonProps.Contains("citations.enabled")) __score9++; if (__jsonProps.Contains("content")) __score9++; if (__jsonProps.Contains("source")) __score9++; if (__jsonProps.Contains("title")) __score9++; if (__jsonProps.Contains("type")) __score9++; var __score10 = 0; if (__jsonProps.Contains("cache_control")) __score10++; + if (__jsonProps.Contains("cache_control.ttl")) __score10++; + if (__jsonProps.Contains("cache_control.type")) __score10++; if (__jsonProps.Contains("content")) __score10++; if (__jsonProps.Contains("type")) __score10++; var __bestScore = 0; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items.g.cs index 71004e50..06c1adf3 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items.g.cs @@ -23,16 +23,28 @@ public class MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsJsonC foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } var __score0 = 0; if (__jsonProps.Contains("cache_control")) __score0++; + if (__jsonProps.Contains("cache_control.ttl")) __score0++; + if (__jsonProps.Contains("cache_control.type")) __score0++; if (__jsonProps.Contains("citations")) __score0++; if (__jsonProps.Contains("text")) __score0++; if (__jsonProps.Contains("type")) __score0++; var __score1 = 0; if (__jsonProps.Contains("cache_control")) __score1++; + if (__jsonProps.Contains("cache_control.ttl")) __score1++; + if (__jsonProps.Contains("cache_control.type")) __score1++; if (__jsonProps.Contains("source")) __score1++; if (__jsonProps.Contains("type")) __score1++; var __score2 = 0; @@ -40,13 +52,18 @@ public class MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsJsonC if (__jsonProps.Contains("type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("cache_control")) __score3++; + if (__jsonProps.Contains("cache_control.ttl")) __score3++; + if (__jsonProps.Contains("cache_control.type")) __score3++; if (__jsonProps.Contains("citations")) __score3++; + if (__jsonProps.Contains("citations.enabled")) __score3++; if (__jsonProps.Contains("content")) __score3++; if (__jsonProps.Contains("source")) __score3++; if (__jsonProps.Contains("title")) __score3++; if (__jsonProps.Contains("type")) __score3++; var __score4 = 0; if (__jsonProps.Contains("cache_control")) __score4++; + if (__jsonProps.Contains("cache_control.ttl")) __score4++; + if (__jsonProps.Contains("cache_control.type")) __score4++; if (__jsonProps.Contains("citations")) __score4++; if (__jsonProps.Contains("context")) __score4++; if (__jsonProps.Contains("source")) __score4++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf8Content.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf8Content.g.cs index e521a52b..298e907b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf8Content.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesMessageParamContentOneOf1ItemsOneOf8Content.g.cs @@ -23,6 +23,7 @@ public class MessagesMessageParamContentOneOf1ItemsOneOf8ContentJsonConverter : foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItems.g.cs index 6d0cc591..6a7de053 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItems.g.cs @@ -23,14 +23,26 @@ public class MessagesRequestContextManagementEditsItemsJsonConverter : global::S foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } var __score0 = 0; if (__jsonProps.Contains("clear_at_least")) __score0++; + if (__jsonProps.Contains("clear_at_least.type")) __score0++; + if (__jsonProps.Contains("clear_at_least.value")) __score0++; if (__jsonProps.Contains("clear_tool_inputs")) __score0++; if (__jsonProps.Contains("exclude_tools")) __score0++; if (__jsonProps.Contains("keep")) __score0++; + if (__jsonProps.Contains("keep.type")) __score0++; + if (__jsonProps.Contains("keep.value")) __score0++; if (__jsonProps.Contains("trigger")) __score0++; if (__jsonProps.Contains("type")) __score0++; var __score1 = 0; @@ -40,6 +52,8 @@ public class MessagesRequestContextManagementEditsItemsJsonConverter : global::S if (__jsonProps.Contains("instructions")) __score2++; if (__jsonProps.Contains("pause_after_compaction")) __score2++; if (__jsonProps.Contains("trigger")) __score2++; + if (__jsonProps.Contains("trigger.type")) __score2++; + if (__jsonProps.Contains("trigger.value")) __score2++; if (__jsonProps.Contains("type")) __score2++; var __bestScore = 0; var __bestIndex = -1; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0Trigger.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0Trigger.g.cs index 5b5ec4d6..1b61a5f0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0Trigger.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf0Trigger.g.cs @@ -23,6 +23,7 @@ public class MessagesRequestContextManagementEditsItemsOneOf0TriggerJsonConverte foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1Keep.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1Keep.g.cs index 63794058..3dea494c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1Keep.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestContextManagementEditsItemsOneOf1Keep.g.cs @@ -23,6 +23,7 @@ public class MessagesRequestContextManagementEditsItemsOneOf1KeepJsonConverter : foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItems.g.cs index fb973dab..fe2ed923 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestPluginsItems.g.cs @@ -23,6 +23,14 @@ public class MessagesRequestPluginsItemsJsonConverter : global::System.Text.Json foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -44,6 +52,7 @@ public class MessagesRequestPluginsItemsJsonConverter : global::System.Text.Json if (__jsonProps.Contains("enabled")) __score3++; if (__jsonProps.Contains("id")) __score3++; if (__jsonProps.Contains("pdf")) __score3++; + if (__jsonProps.Contains("pdf.engine")) __score3++; var __score4 = 0; if (__jsonProps.Contains("enabled")) __score4++; if (__jsonProps.Contains("id")) __score4++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestThinking.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestThinking.g.cs index edc5574d..3ced45de 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestThinking.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestThinking.g.cs @@ -23,6 +23,7 @@ public class MessagesRequestThinkingJsonConverter : global::System.Text.Json.Ser foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolChoice.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolChoice.g.cs index ea42f5a8..d6b3ef76 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolChoice.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolChoice.g.cs @@ -23,6 +23,7 @@ public class MessagesRequestToolChoiceJsonConverter : global::System.Text.Json.S foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItems.g.cs index f46c9600..2fa4e03c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItems.g.cs @@ -23,51 +23,92 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } var __score0 = 0; if (__jsonProps.Contains("cache_control")) __score0++; + if (__jsonProps.Contains("cache_control.ttl")) __score0++; + if (__jsonProps.Contains("cache_control.type")) __score0++; if (__jsonProps.Contains("description")) __score0++; if (__jsonProps.Contains("input_schema")) __score0++; + if (__jsonProps.Contains("input_schema.properties")) __score0++; + if (__jsonProps.Contains("input_schema.required")) __score0++; + if (__jsonProps.Contains("input_schema.type")) __score0++; if (__jsonProps.Contains("name")) __score0++; if (__jsonProps.Contains("type")) __score0++; var __score1 = 0; if (__jsonProps.Contains("cache_control")) __score1++; + if (__jsonProps.Contains("cache_control.ttl")) __score1++; + if (__jsonProps.Contains("cache_control.type")) __score1++; if (__jsonProps.Contains("name")) __score1++; if (__jsonProps.Contains("type")) __score1++; var __score2 = 0; if (__jsonProps.Contains("cache_control")) __score2++; + if (__jsonProps.Contains("cache_control.ttl")) __score2++; + if (__jsonProps.Contains("cache_control.type")) __score2++; if (__jsonProps.Contains("name")) __score2++; if (__jsonProps.Contains("type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("allowed_domains")) __score3++; if (__jsonProps.Contains("blocked_domains")) __score3++; if (__jsonProps.Contains("cache_control")) __score3++; + if (__jsonProps.Contains("cache_control.ttl")) __score3++; + if (__jsonProps.Contains("cache_control.type")) __score3++; if (__jsonProps.Contains("max_uses")) __score3++; if (__jsonProps.Contains("name")) __score3++; if (__jsonProps.Contains("type")) __score3++; if (__jsonProps.Contains("user_location")) __score3++; + if (__jsonProps.Contains("user_location.city")) __score3++; + if (__jsonProps.Contains("user_location.country")) __score3++; + if (__jsonProps.Contains("user_location.region")) __score3++; + if (__jsonProps.Contains("user_location.timezone")) __score3++; + if (__jsonProps.Contains("user_location.type")) __score3++; var __score4 = 0; if (__jsonProps.Contains("allowed_callers")) __score4++; if (__jsonProps.Contains("allowed_domains")) __score4++; if (__jsonProps.Contains("blocked_domains")) __score4++; if (__jsonProps.Contains("cache_control")) __score4++; + if (__jsonProps.Contains("cache_control.ttl")) __score4++; + if (__jsonProps.Contains("cache_control.type")) __score4++; if (__jsonProps.Contains("max_uses")) __score4++; if (__jsonProps.Contains("name")) __score4++; if (__jsonProps.Contains("type")) __score4++; if (__jsonProps.Contains("user_location")) __score4++; + if (__jsonProps.Contains("user_location.city")) __score4++; + if (__jsonProps.Contains("user_location.country")) __score4++; + if (__jsonProps.Contains("user_location.region")) __score4++; + if (__jsonProps.Contains("user_location.timezone")) __score4++; + if (__jsonProps.Contains("user_location.type")) __score4++; var __score5 = 0; if (__jsonProps.Contains("parameters")) __score5++; + if (__jsonProps.Contains("parameters.timezone")) __score5++; if (__jsonProps.Contains("type")) __score5++; var __score6 = 0; if (__jsonProps.Contains("parameters")) __score6++; + if (__jsonProps.Contains("parameters.model")) __score6++; if (__jsonProps.Contains("type")) __score6++; var __score7 = 0; if (__jsonProps.Contains("parameters")) __score7++; + if (__jsonProps.Contains("parameters.max_results")) __score7++; if (__jsonProps.Contains("type")) __score7++; var __score8 = 0; if (__jsonProps.Contains("parameters")) __score8++; + if (__jsonProps.Contains("parameters.allowed_domains")) __score8++; + if (__jsonProps.Contains("parameters.engine")) __score8++; + if (__jsonProps.Contains("parameters.excluded_domains")) __score8++; + if (__jsonProps.Contains("parameters.max_results")) __score8++; + if (__jsonProps.Contains("parameters.max_total_results")) __score8++; + if (__jsonProps.Contains("parameters.search_context_size")) __score8++; + if (__jsonProps.Contains("parameters.user_location")) __score8++; if (__jsonProps.Contains("type")) __score8++; var __bestScore = 0; var __bestIndex = -1; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicContentBlock.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicContentBlock.g.cs index d9dde80b..9f508930 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicContentBlock.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ORAnthropicContentBlock.g.cs @@ -23,6 +23,7 @@ public class ORAnthropicContentBlockJsonConverter : global::System.Text.Json.Ser foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAIResponsesAnnotation.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAIResponsesAnnotation.g.cs index 8cfb862a..664ac4ae 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAIResponsesAnnotation.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAIResponsesAnnotation.g.cs @@ -23,6 +23,7 @@ public class OpenAIResponsesAnnotationJsonConverter : global::System.Text.Json.S foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAIResponsesToolChoice.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAIResponsesToolChoice.g.cs index bfd682af..1ec689ba 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAIResponsesToolChoice.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAIResponsesToolChoice.g.cs @@ -23,6 +23,7 @@ public class OpenAIResponsesToolChoiceJsonConverter : global::System.Text.Json.S foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1Items.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1Items.g.cs index bc4245dc..e54f0fbf 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1Items.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponseFunctionToolCallOutputOutputOneOf1Items.g.cs @@ -23,6 +23,7 @@ public class OpenAiResponseFunctionToolCallOutputOutputOneOf1ItemsJsonConverter foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItems.g.cs index fbc49d6c..0c75c33b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OpenAiResponseInputMessageItemContentItems.g.cs @@ -23,6 +23,14 @@ public class OpenAiResponseInputMessageItemContentItemsJsonConverter : global::S foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -41,6 +49,8 @@ public class OpenAiResponseInputMessageItemContentItemsJsonConverter : global::S if (__jsonProps.Contains("type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("input_audio")) __score3++; + if (__jsonProps.Contains("input_audio.data")) __score3++; + if (__jsonProps.Contains("input_audio.format")) __score3++; if (__jsonProps.Contains("type")) __score3++; var __bestScore = 0; var __bestIndex = -1; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemWebSearchCallAction.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemWebSearchCallAction.g.cs index cb1151f9..75e0161d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemWebSearchCallAction.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItemWebSearchCallAction.g.cs @@ -23,6 +23,7 @@ public class OutputItemWebSearchCallActionJsonConverter : global::System.Text.Js foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs index 47f7f02a..8d33a5d2 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputItems.g.cs @@ -23,6 +23,7 @@ public class OutputItemsJsonConverter : global::System.Text.Json.Serialization.J foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMessageContentItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMessageContentItems.g.cs index cb8e9a41..9104157b 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMessageContentItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.OutputMessageContentItems.g.cs @@ -23,6 +23,7 @@ public class OutputMessageContentItemsJsonConverter : global::System.Text.Json.S foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMaxLatency.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMaxLatency.g.cs index 57cf1fe1..08f9cf16 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMaxLatency.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMaxLatency.g.cs @@ -23,6 +23,7 @@ public class PreferredMaxLatencyJsonConverter : global::System.Text.Json.Seriali foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMinThroughput.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMinThroughput.g.cs index bb56ca1f..d5a73d41 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMinThroughput.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.PreferredMinThroughput.g.cs @@ -23,6 +23,7 @@ public class PreferredMinThroughputJsonConverter : global::System.Text.Json.Seri foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderPreferencesSort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderPreferencesSort.g.cs index e3089593..55d9b495 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderPreferencesSort.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ProviderPreferencesSort.g.cs @@ -23,6 +23,7 @@ public class ProviderPreferencesSortJsonConverter : global::System.Text.Json.Ser foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnion.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnion.g.cs index 8b5a725c..0ee6b812 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnion.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ReasoningDetailUnion.g.cs @@ -23,6 +23,7 @@ public class ReasoningDetailUnionJsonConverter : global::System.Text.Json.Serial foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItems.g.cs index 0d17d1ab..91ae99e7 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestPluginsItems.g.cs @@ -23,6 +23,14 @@ public class ResponsesRequestPluginsItemsJsonConverter : global::System.Text.Jso foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -44,6 +52,7 @@ public class ResponsesRequestPluginsItemsJsonConverter : global::System.Text.Jso if (__jsonProps.Contains("enabled")) __score3++; if (__jsonProps.Contains("id")) __score3++; if (__jsonProps.Contains("pdf")) __score3++; + if (__jsonProps.Contains("pdf.engine")) __score3++; var __score4 = 0; if (__jsonProps.Contains("enabled")) __score4++; if (__jsonProps.Contains("id")) __score4++; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs index aa6bdb32..3d827491 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs @@ -23,6 +23,14 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + if (__jsonProp.Value.ValueKind == global::System.Text.Json.JsonValueKind.Object) + { + foreach (var __nestedJsonProp in __jsonProp.Value.EnumerateObject()) + { + __jsonProps.Add(__jsonProp.Name + "." + __nestedJsonProp.Name); + } + } + } } @@ -35,35 +43,65 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. var __score1 = 0; if (__jsonProps.Contains("engine")) __score1++; if (__jsonProps.Contains("filters")) __score1++; + if (__jsonProps.Contains("filters.allowed_domains")) __score1++; + if (__jsonProps.Contains("filters.excluded_domains")) __score1++; if (__jsonProps.Contains("max_results")) __score1++; if (__jsonProps.Contains("search_context_size")) __score1++; if (__jsonProps.Contains("type")) __score1++; if (__jsonProps.Contains("user_location")) __score1++; + if (__jsonProps.Contains("user_location.city")) __score1++; + if (__jsonProps.Contains("user_location.country")) __score1++; + if (__jsonProps.Contains("user_location.region")) __score1++; + if (__jsonProps.Contains("user_location.timezone")) __score1++; + if (__jsonProps.Contains("user_location.type")) __score1++; var __score2 = 0; if (__jsonProps.Contains("engine")) __score2++; if (__jsonProps.Contains("filters")) __score2++; + if (__jsonProps.Contains("filters.allowed_domains")) __score2++; + if (__jsonProps.Contains("filters.excluded_domains")) __score2++; if (__jsonProps.Contains("max_results")) __score2++; if (__jsonProps.Contains("search_context_size")) __score2++; if (__jsonProps.Contains("type")) __score2++; if (__jsonProps.Contains("user_location")) __score2++; + if (__jsonProps.Contains("user_location.city")) __score2++; + if (__jsonProps.Contains("user_location.country")) __score2++; + if (__jsonProps.Contains("user_location.region")) __score2++; + if (__jsonProps.Contains("user_location.timezone")) __score2++; + if (__jsonProps.Contains("user_location.type")) __score2++; var __score3 = 0; if (__jsonProps.Contains("engine")) __score3++; if (__jsonProps.Contains("filters")) __score3++; + if (__jsonProps.Contains("filters.allowed_domains")) __score3++; + if (__jsonProps.Contains("filters.excluded_domains")) __score3++; if (__jsonProps.Contains("max_results")) __score3++; if (__jsonProps.Contains("search_context_size")) __score3++; if (__jsonProps.Contains("type")) __score3++; if (__jsonProps.Contains("user_location")) __score3++; + if (__jsonProps.Contains("user_location.city")) __score3++; + if (__jsonProps.Contains("user_location.country")) __score3++; + if (__jsonProps.Contains("user_location.region")) __score3++; + if (__jsonProps.Contains("user_location.timezone")) __score3++; + if (__jsonProps.Contains("user_location.type")) __score3++; var __score4 = 0; if (__jsonProps.Contains("engine")) __score4++; if (__jsonProps.Contains("filters")) __score4++; + if (__jsonProps.Contains("filters.allowed_domains")) __score4++; + if (__jsonProps.Contains("filters.excluded_domains")) __score4++; if (__jsonProps.Contains("max_results")) __score4++; if (__jsonProps.Contains("search_context_size")) __score4++; if (__jsonProps.Contains("type")) __score4++; if (__jsonProps.Contains("user_location")) __score4++; + if (__jsonProps.Contains("user_location.city")) __score4++; + if (__jsonProps.Contains("user_location.country")) __score4++; + if (__jsonProps.Contains("user_location.region")) __score4++; + if (__jsonProps.Contains("user_location.timezone")) __score4++; + if (__jsonProps.Contains("user_location.type")) __score4++; var __score5 = 0; if (__jsonProps.Contains("filters")) __score5++; if (__jsonProps.Contains("max_num_results")) __score5++; if (__jsonProps.Contains("ranking_options")) __score5++; + if (__jsonProps.Contains("ranking_options.ranker")) __score5++; + if (__jsonProps.Contains("ranking_options.score_threshold")) __score5++; if (__jsonProps.Contains("type")) __score5++; if (__jsonProps.Contains("vector_store_ids")) __score5++; var __score6 = 0; @@ -88,6 +126,8 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. if (__jsonProps.Contains("background")) __score9++; if (__jsonProps.Contains("input_fidelity")) __score9++; if (__jsonProps.Contains("input_image_mask")) __score9++; + if (__jsonProps.Contains("input_image_mask.file_id")) __score9++; + if (__jsonProps.Contains("input_image_mask.image_url")) __score9++; if (__jsonProps.Contains("model")) __score9++; if (__jsonProps.Contains("moderation")) __score9++; if (__jsonProps.Contains("output_compression")) __score9++; @@ -109,15 +149,20 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. if (__jsonProps.Contains("type")) __score13++; var __score14 = 0; if (__jsonProps.Contains("parameters")) __score14++; + if (__jsonProps.Contains("parameters.timezone")) __score14++; if (__jsonProps.Contains("type")) __score14++; var __score15 = 0; if (__jsonProps.Contains("parameters")) __score15++; + if (__jsonProps.Contains("parameters.model")) __score15++; if (__jsonProps.Contains("type")) __score15++; var __score16 = 0; if (__jsonProps.Contains("parameters")) __score16++; + if (__jsonProps.Contains("parameters.max_results")) __score16++; if (__jsonProps.Contains("type")) __score16++; var __score17 = 0; if (__jsonProps.Contains("parameters")) __score17++; + if (__jsonProps.Contains("parameters.max_results")) __score17++; + if (__jsonProps.Contains("parameters.max_total_results")) __score17++; if (__jsonProps.Contains("type")) __score17++; var __bestScore = 0; var __bestIndex = -1; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.StoredPromptTemplateVariables.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.StoredPromptTemplateVariables.g.cs index 54b2f532..88acc43a 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.StoredPromptTemplateVariables.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.StoredPromptTemplateVariables.g.cs @@ -23,6 +23,7 @@ public class StoredPromptTemplateVariablesJsonConverter : global::System.Text.Js foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) { __jsonProps.Add(__jsonProp.Name); + } }