From c73f85995b9d2c757dd89803fbb55afde259fc0b Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 14 Apr 2026 19:25:30 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...geBetaResponsesClient.CreateResponses.g.cs | 6 +- ...eChatClient.SendChatCompletionRequest.g.cs | 6 +- ...outer.JsonConverters.ChatFunctionTool.g.cs | 61 +- ...penRouter.JsonConverters.ImageConfig.g.cs} | 46 +- ...ageGenerationServerToolOpenRouterType.g.cs | 53 + ...ationServerToolOpenRouterTypeNullable.g.cs | 60 + ...nConverters.MessagesRequestToolsItems.g.cs | 45 +- ...onverters.ResponsesRequestImageConfig.g.cs | 159 -- ...Converters.ResponsesRequestToolsItems.g.cs | 45 +- .../OpenRouter.JsonSerializerContext.g.cs | 20 +- ...OpenRouter.JsonSerializerContextTypes.g.cs | 1954 +++++++++-------- .../OpenRouter.Models.ChatFunctionTool.g.cs | 54 +- .../OpenRouter.Models.ChatRequest.g.cs | 11 +- ...nRouter.Models.ChatRequestImageConfig.g.cs | 255 --- ...Router.Models.ChatRequestImageConfig2.g.cs | 18 - ...> OpenRouter.Models.ImageConfig.Json.g.cs} | 22 +- .../OpenRouter.Models.ImageConfig.g.cs | 255 +++ ....Models.ImageConfigVariant3Item.Json.g.cs} | 22 +- ...outer.Models.ImageConfigVariant3Item.g.cs} | 2 +- ...ImageGenerationServerToolConfig.Json.g.cs} | 22 +- ...odels.ImageGenerationServerToolConfig.g.cs | 45 + ...eGenerationServerToolOpenRouter.Json.g.cs} | 22 +- ...s.ImageGenerationServerToolOpenRouter.g.cs | 55 + ...ageGenerationServerToolOpenRouterType.g.cs | 45 + ...uter.Models.MessagesRequestToolsItems.g.cs | 54 +- .../OpenRouter.Models.ResponsesRequest.g.cs | 11 +- ...dels.ResponsesRequestImageConfig.Json.g.cs | 92 - ...er.Models.ResponsesRequestImageConfig.g.cs | 221 -- ...r.Models.ResponsesRequestImageConfig2.g.cs | 18 - ...ter.Models.ResponsesRequestToolsItems.g.cs | 54 +- ...geBetaResponsesClient.CreateResponses.g.cs | 6 +- ...eChatClient.SendChatCompletionRequest.g.cs | 6 +- src/libs/OpenRouter/openapi.yaml | 83 +- 33 files changed, 1941 insertions(+), 1887 deletions(-) rename src/libs/OpenRouter/Generated/{OpenRouter.JsonConverters.ChatRequestImageConfig.g.cs => OpenRouter.JsonConverters.ImageConfig.g.cs} (81%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterType.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullable.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestImageConfig.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig2.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ChatRequestImageConfig.Json.g.cs => OpenRouter.Models.ImageConfig.Json.g.cs} (86%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageConfig.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ChatRequestImageConfig2.Json.g.cs => OpenRouter.Models.ImageConfigVariant3Item.Json.g.cs} (86%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ChatRequestImageConfigVariant3Item.g.cs => OpenRouter.Models.ImageConfigVariant3Item.g.cs} (87%) rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ResponsesRequestImageConfig2.Json.g.cs => OpenRouter.Models.ImageGenerationServerToolConfig.Json.g.cs} (84%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolConfig.g.cs rename src/libs/OpenRouter/Generated/{OpenRouter.Models.ChatRequestImageConfigVariant3Item.Json.g.cs => OpenRouter.Models.ImageGenerationServerToolOpenRouter.Json.g.cs} (84%) create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolOpenRouter.g.cs create mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolOpenRouterType.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig.Json.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig.g.cs delete mode 100644 src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig2.g.cs diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageBetaResponsesClient.CreateResponses.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageBetaResponsesClient.CreateResponses.g.cs index 0c01cea1..e90daf10 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageBetaResponsesClient.CreateResponses.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageBetaResponsesClient.CreateResponses.g.cs @@ -23,9 +23,7 @@ public partial interface ISubpackageBetaResponsesClient /// /// /// - /// - /// Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/features/multimodal/image-generation for more details. - /// + /// /// /// /// Input for a response request - can be a string or array of items @@ -89,7 +87,7 @@ public partial interface ISubpackageBetaResponsesClient global::System.Threading.Tasks.Task CreateResponsesAsync( bool? background = default, double? frequencyPenalty = default, - object? imageConfig = default, + global::OpenRouter.ImageConfig? imageConfig = default, global::System.Collections.Generic.IList? include = default, global::OpenRouter.Inputs? input = default, string? instructions = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageChatClient.SendChatCompletionRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageChatClient.SendChatCompletionRequest.g.cs index f100b657..f763eb5e 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageChatClient.SendChatCompletionRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageChatClient.SendChatCompletionRequest.g.cs @@ -28,9 +28,7 @@ public partial interface ISubpackageChatClient /// /// Frequency penalty (-2.0 to 2.0) /// - /// - /// Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details. - /// + /// /// /// Token logit bias adjustments /// @@ -127,7 +125,7 @@ public partial interface ISubpackageChatClient global::OpenRouter.ChatRequestCacheControl? cacheControl = default, global::OpenRouter.ChatDebugOptions? debug = default, double? frequencyPenalty = default, - object? imageConfig = default, + global::OpenRouter.ImageConfig? imageConfig = default, global::System.Collections.Generic.Dictionary? logitBias = default, bool? logprobs = default, int? maxCompletionTokens = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatFunctionTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatFunctionTool.g.cs index e3c9d2c4..70f5ca1f 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatFunctionTool.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatFunctionTool.g.cs @@ -40,15 +40,18 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat if (__jsonProps.Contains("parameters")) __score3++; if (__jsonProps.Contains("type")) __score3++; var __score4 = 0; - if (__jsonProps.Contains("allowed_domains")) __score4++; - if (__jsonProps.Contains("engine")) __score4++; - if (__jsonProps.Contains("excluded_domains")) __score4++; - if (__jsonProps.Contains("max_results")) __score4++; - if (__jsonProps.Contains("max_total_results")) __score4++; if (__jsonProps.Contains("parameters")) __score4++; - if (__jsonProps.Contains("search_context_size")) __score4++; if (__jsonProps.Contains("type")) __score4++; - if (__jsonProps.Contains("user_location")) __score4++; + var __score5 = 0; + if (__jsonProps.Contains("allowed_domains")) __score5++; + if (__jsonProps.Contains("engine")) __score5++; + if (__jsonProps.Contains("excluded_domains")) __score5++; + if (__jsonProps.Contains("max_results")) __score5++; + if (__jsonProps.Contains("max_total_results")) __score5++; + if (__jsonProps.Contains("parameters")) __score5++; + if (__jsonProps.Contains("search_context_size")) __score5++; + if (__jsonProps.Contains("type")) __score5++; + if (__jsonProps.Contains("user_location")) __score5++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -56,9 +59,11 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } if (__score3 > __bestScore) { __bestScore = __score3; __bestIndex = 3; } if (__score4 > __bestScore) { __bestScore = __score4; __bestIndex = 4; } + if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } global::OpenRouter.ChatFunctionTool0? chatFunctionTool0 = default; global::OpenRouter.DatetimeServerTool? datetimeServerTool = default; + global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter = default; global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool = default; global::OpenRouter.OpenRouterWebSearchServerTool? openRouterWebSearchServerTool = default; global::OpenRouter.ChatWebSearchShorthand? chatWebSearchShorthand = default; @@ -95,6 +100,21 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } else if (__bestIndex == 2) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); + imageGenerationServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 3) { try { @@ -109,7 +129,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat { } } - else if (__bestIndex == 3) + else if (__bestIndex == 4) { try { @@ -124,7 +144,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat { } } - else if (__bestIndex == 4) + else if (__bestIndex == 5) { try { @@ -141,7 +161,7 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat } } - if (chatFunctionTool0 == null && datetimeServerTool == null && chatSearchModelsServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) + if (chatFunctionTool0 == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && openRouterWebSearchServerTool == null && chatWebSearchShorthand == null) { try { @@ -169,6 +189,19 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat { } + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); + imageGenerationServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? @@ -214,6 +247,8 @@ public class ChatFunctionToolJsonConverter : global::System.Text.Json.Serializat datetimeServerTool, + imageGenerationServerToolOpenRouter, + chatSearchModelsServerTool, openRouterWebSearchServerTool, @@ -245,6 +280,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.DatetimeServerTool).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.DatetimeServerTool!, typeInfo); } + else if (value.IsImageGenerationServerToolOpenRouter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationServerToolOpenRouter!, typeInfo); + } else if (value.IsChatSearchModelsServerTool) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestImageConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageConfig.g.cs similarity index 81% rename from src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestImageConfig.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageConfig.g.cs index dc1615b5..b2426253 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ChatRequestImageConfig.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageConfig.g.cs @@ -4,10 +4,10 @@ namespace OpenRouter.JsonConverters { /// - public class ChatRequestImageConfigJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public class ImageConfigJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::OpenRouter.ChatRequestImageConfig Read( + public override global::OpenRouter.ImageConfig Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -66,9 +66,9 @@ public class ChatRequestImageConfigJsonConverter : global::System.Text.Json.Seri if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } if (__score2 > __bestScore) { __bestScore = __score2; __bestIndex = 2; } - string? chatRequestImageConfigVariant1 = default; - double? chatRequestImageConfigVariant2 = default; - global::System.Collections.Generic.IList? chatRequestImageConfigVariant3 = default; + string? imageConfigVariant1 = default; + double? imageConfigVariant2 = default; + global::System.Collections.Generic.IList? imageConfigVariant3 = default; if (__bestIndex >= 0) { if (__bestIndex == 0) @@ -78,7 +78,7 @@ public class ChatRequestImageConfigJsonConverter : global::System.Text.Json.Seri var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - chatRequestImageConfigVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageConfigVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -95,7 +95,7 @@ public class ChatRequestImageConfigJsonConverter : global::System.Text.Json.Seri var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - chatRequestImageConfigVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageConfigVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -112,7 +112,7 @@ public class ChatRequestImageConfigJsonConverter : global::System.Text.Json.Seri 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}"); - chatRequestImageConfigVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageConfigVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -123,14 +123,14 @@ public class ChatRequestImageConfigJsonConverter : global::System.Text.Json.Seri } } - if (chatRequestImageConfigVariant1 == null && chatRequestImageConfigVariant2 == null && chatRequestImageConfigVariant3 == null) + if (imageConfigVariant1 == null && imageConfigVariant2 == null && imageConfigVariant3 == null) { try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - chatRequestImageConfigVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageConfigVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -144,7 +144,7 @@ public class ChatRequestImageConfigJsonConverter : global::System.Text.Json.Seri var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - chatRequestImageConfigVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageConfigVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -158,7 +158,7 @@ public class ChatRequestImageConfigJsonConverter : global::System.Text.Json.Seri 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}"); - chatRequestImageConfigVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + imageConfigVariant3 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); } catch (global::System.Text.Json.JsonException) { @@ -168,12 +168,12 @@ public class ChatRequestImageConfigJsonConverter : global::System.Text.Json.Seri } } - var __value = new global::OpenRouter.ChatRequestImageConfig( - chatRequestImageConfigVariant1, + var __value = new global::OpenRouter.ImageConfig( + imageConfigVariant1, - chatRequestImageConfigVariant2, + imageConfigVariant2, - chatRequestImageConfigVariant3 + imageConfigVariant3 ); return __value; @@ -182,29 +182,29 @@ public class ChatRequestImageConfigJsonConverter : global::System.Text.Json.Seri /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ChatRequestImageConfig value, + global::OpenRouter.ImageConfig value, global::System.Text.Json.JsonSerializerOptions options) { options = options ?? throw new global::System.ArgumentNullException(nameof(options)); var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - if (value.IsChatRequestImageConfigVariant1) + if (value.IsImageConfigVariant1) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatRequestImageConfigVariant1!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageConfigVariant1!, typeInfo); } - else if (value.IsChatRequestImageConfigVariant2) + else if (value.IsImageConfigVariant2) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatRequestImageConfigVariant2!.Value, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageConfigVariant2!.Value, typeInfo); } - else if (value.IsChatRequestImageConfigVariant3) + else if (value.IsImageConfigVariant3) { 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}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ChatRequestImageConfigVariant3!, typeInfo); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageConfigVariant3!, typeInfo); } } } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterType.g.cs new file mode 100644 index 00000000..e4710902 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterType.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageGenerationServerToolOpenRouterTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationServerToolOpenRouterType Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ImageGenerationServerToolOpenRouterTypeExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageGenerationServerToolOpenRouterType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageGenerationServerToolOpenRouterType); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationServerToolOpenRouterType value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::OpenRouter.ImageGenerationServerToolOpenRouterTypeExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullable.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullable.g.cs new file mode 100644 index 00000000..a5eb4556 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace OpenRouter.JsonConverters +{ + /// + public sealed class ImageGenerationServerToolOpenRouterTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::OpenRouter.ImageGenerationServerToolOpenRouterType? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::OpenRouter.ImageGenerationServerToolOpenRouterTypeExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::OpenRouter.ImageGenerationServerToolOpenRouterType)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::OpenRouter.ImageGenerationServerToolOpenRouterType?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::OpenRouter.ImageGenerationServerToolOpenRouterType? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::OpenRouter.ImageGenerationServerToolOpenRouterTypeExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItems.g.cs index d056ae9e..f46c9600 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.MessagesRequestToolsItems.g.cs @@ -66,6 +66,9 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S var __score7 = 0; if (__jsonProps.Contains("parameters")) __score7++; if (__jsonProps.Contains("type")) __score7++; + var __score8 = 0; + if (__jsonProps.Contains("parameters")) __score8++; + if (__jsonProps.Contains("type")) __score8++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -76,6 +79,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S if (__score5 > __bestScore) { __bestScore = __score5; __bestIndex = 5; } if (__score6 > __bestScore) { __bestScore = __score6; __bestIndex = 6; } if (__score7 > __bestScore) { __bestScore = __score7; __bestIndex = 7; } + if (__score8 > __bestScore) { __bestScore = __score8; __bestIndex = 8; } global::OpenRouter.MessagesRequestToolsItems0? messagesRequestToolsItems0 = default; global::OpenRouter.MessagesRequestToolsItems1? messagesRequestToolsItems1 = default; @@ -83,6 +87,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S global::OpenRouter.MessagesRequestToolsItems3? messagesRequestToolsItems3 = default; global::OpenRouter.MessagesRequestToolsItems4? messagesRequestToolsItems4 = default; global::OpenRouter.DatetimeServerTool? datetimeServerTool = default; + global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter = default; global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool = default; global::OpenRouter.OpenRouterWebSearchServerTool? openRouterWebSearchServerTool = default; if (__bestIndex >= 0) @@ -178,6 +183,21 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } else if (__bestIndex == 6) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); + imageGenerationServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 7) { try { @@ -192,7 +212,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S { } } - else if (__bestIndex == 7) + else if (__bestIndex == 8) { try { @@ -209,7 +229,7 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S } } - if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && datetimeServerTool == null && chatSearchModelsServerTool == null && openRouterWebSearchServerTool == null) + if (messagesRequestToolsItems0 == null && messagesRequestToolsItems1 == null && messagesRequestToolsItems2 == null && messagesRequestToolsItems3 == null && messagesRequestToolsItems4 == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && openRouterWebSearchServerTool == null) { try { @@ -289,6 +309,19 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S { } + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); + imageGenerationServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? @@ -329,6 +362,8 @@ public class MessagesRequestToolsItemsJsonConverter : global::System.Text.Json.S datetimeServerTool, + imageGenerationServerToolOpenRouter, + chatSearchModelsServerTool, openRouterWebSearchServerTool @@ -382,6 +417,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.DatetimeServerTool).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.DatetimeServerTool!, typeInfo); } + else if (value.IsImageGenerationServerToolOpenRouter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationServerToolOpenRouter!, typeInfo); + } else if (value.IsChatSearchModelsServerTool) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestImageConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestImageConfig.g.cs deleted file mode 100644 index 3b04d143..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestImageConfig.g.cs +++ /dev/null @@ -1,159 +0,0 @@ -#nullable enable -#pragma warning disable CS0618 // Type or member is obsolete - -namespace OpenRouter.JsonConverters -{ - /// - public class ResponsesRequestImageConfigJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::OpenRouter.ResponsesRequestImageConfig Read( - ref global::System.Text.Json.Utf8JsonReader reader, - global::System.Type typeToConvert, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - - using var __jsonDocument = global::System.Text.Json.JsonDocument.ParseValue(ref reader); - var __rawJson = __jsonDocument.RootElement.GetRawText(); - var __jsonProps = new global::System.Collections.Generic.HashSet(); - if (__jsonDocument.RootElement.ValueKind == global::System.Text.Json.JsonValueKind.Object) - { - foreach (var __jsonProp in __jsonDocument.RootElement.EnumerateObject()) - { - __jsonProps.Add(__jsonProp.Name); - } - } - - var __score0 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(string), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score0++; - } - } - } - var __score1 = 0; - { - var __ti = typeInfoResolver.GetTypeInfo(typeof(double), options); - if (__ti != null && __ti.Kind == global::System.Text.Json.Serialization.Metadata.JsonTypeInfoKind.Object) - { - foreach (var __prop in __ti.Properties) - { - if (__jsonProps.Contains(__prop.Name)) __score1++; - } - } - } - var __bestScore = 0; - var __bestIndex = -1; - if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } - if (__score1 > __bestScore) { __bestScore = __score1; __bestIndex = 1; } - - string? responsesRequestImageConfigVariant1 = default; - double? responsesRequestImageConfigVariant2 = default; - if (__bestIndex >= 0) - { - if (__bestIndex == 0) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - responsesRequestImageConfigVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - else if (__bestIndex == 1) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - responsesRequestImageConfigVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - } - - if (responsesRequestImageConfigVariant1 == null && responsesRequestImageConfigVariant2 == null) - { - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - responsesRequestImageConfigVariant1 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - - try - { - - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - responsesRequestImageConfigVariant2 = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); - } - catch (global::System.Text.Json.JsonException) - { - } - catch (global::System.InvalidOperationException) - { - } - } - - var __value = new global::OpenRouter.ResponsesRequestImageConfig( - responsesRequestImageConfigVariant1, - - responsesRequestImageConfigVariant2 - ); - - return __value; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::OpenRouter.ResponsesRequestImageConfig value, - global::System.Text.Json.JsonSerializerOptions options) - { - options = options ?? throw new global::System.ArgumentNullException(nameof(options)); - var typeInfoResolver = options.TypeInfoResolver ?? throw new global::System.InvalidOperationException("TypeInfoResolver is not set."); - - if (value.IsResponsesRequestImageConfigVariant1) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(string), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(string).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestImageConfigVariant1!, typeInfo); - } - else if (value.IsResponsesRequestImageConfigVariant2) - { - var typeInfo = typeInfoResolver.GetTypeInfo(typeof(double), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? - throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(double).Name}"); - global::System.Text.Json.JsonSerializer.Serialize(writer, value.ResponsesRequestImageConfigVariant2!.Value, typeInfo); - } - } - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs index 777cebd7..aa6bdb32 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonConverters.ResponsesRequestToolsItems.g.cs @@ -116,6 +116,9 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. var __score16 = 0; if (__jsonProps.Contains("parameters")) __score16++; if (__jsonProps.Contains("type")) __score16++; + var __score17 = 0; + if (__jsonProps.Contains("parameters")) __score17++; + if (__jsonProps.Contains("type")) __score17++; var __bestScore = 0; var __bestIndex = -1; if (__score0 > __bestScore) { __bestScore = __score0; __bestIndex = 0; } @@ -135,6 +138,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. if (__score14 > __bestScore) { __bestScore = __score14; __bestIndex = 14; } if (__score15 > __bestScore) { __bestScore = __score15; __bestIndex = 15; } if (__score16 > __bestScore) { __bestScore = __score16; __bestIndex = 16; } + if (__score17 > __bestScore) { __bestScore = __score17; __bestIndex = 17; } global::OpenRouter.ResponsesRequestToolsItems0? responsesRequestToolsItems0 = default; global::OpenRouter.PreviewWebSearchServerTool? previewWebSearchServerTool = default; @@ -151,6 +155,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. global::OpenRouter.ApplyPatchServerTool? applyPatchServerTool = default; global::OpenRouter.CustomTool? customTool = default; global::OpenRouter.DatetimeServerTool? datetimeServerTool = default; + global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter = default; global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool = default; global::OpenRouter.WebSearchServerToolOpenRouter? webSearchServerToolOpenRouter = default; if (__bestIndex >= 0) @@ -381,6 +386,21 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } else if (__bestIndex == 15) + { + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); + imageGenerationServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + } + else if (__bestIndex == 16) { try { @@ -395,7 +415,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } } - else if (__bestIndex == 16) + else if (__bestIndex == 17) { try { @@ -412,7 +432,7 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. } } - if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && chatSearchModelsServerTool == null && webSearchServerToolOpenRouter == null) + if (responsesRequestToolsItems0 == null && previewWebSearchServerTool == null && preview20250311WebSearchServerTool == null && legacyWebSearchServerTool == null && webSearchServerTool == null && fileSearchServerTool == null && computerUseServerTool == null && codeInterpreterServerTool == null && mcpServerTool == null && imageGenerationServerTool == null && codexLocalShellTool == null && shellServerTool == null && applyPatchServerTool == null && customTool == null && datetimeServerTool == null && imageGenerationServerToolOpenRouter == null && chatSearchModelsServerTool == null && webSearchServerToolOpenRouter == null) { try { @@ -609,6 +629,19 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. { } + try + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); + imageGenerationServerToolOpenRouter = global::System.Text.Json.JsonSerializer.Deserialize(__rawJson, typeInfo); + } + catch (global::System.Text.Json.JsonException) + { + } + catch (global::System.InvalidOperationException) + { + } + try { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? @@ -667,6 +700,8 @@ public class ResponsesRequestToolsItemsJsonConverter : global::System.Text.Json. datetimeServerTool, + imageGenerationServerToolOpenRouter, + chatSearchModelsServerTool, webSearchServerToolOpenRouter @@ -774,6 +809,12 @@ public override void Write( throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.DatetimeServerTool).Name}"); global::System.Text.Json.JsonSerializer.Serialize(writer, value.DatetimeServerTool!, typeInfo); } + else if (value.IsImageGenerationServerToolOpenRouter) + { + var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? + throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter).Name}"); + global::System.Text.Json.JsonSerializer.Serialize(writer, value.ImageGenerationServerToolOpenRouter!, typeInfo); + } else if (value.IsChatSearchModelsServerTool) { var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::OpenRouter.ChatSearchModelsServerTool), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo ?? diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index efcdecf8..f307bb15 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -521,6 +521,10 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.DatetimeServerToolTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeJsonConverter), + + typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeNullableJsonConverter), + typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatSearchModelsServerToolTypeNullableJsonConverter), @@ -1417,7 +1421,7 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.VideoModelSupportedSizesItemsNullableJsonConverter), - typeof(global::OpenRouter.JsonConverters.ResponsesRequestImageConfigJsonConverter), + typeof(global::OpenRouter.JsonConverters.ImageConfigJsonConverter), typeof(global::OpenRouter.JsonConverters.OutputItemReasoningStatusJsonConverter), @@ -1527,8 +1531,6 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OutputItemsJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatRequestImageConfigJsonConverter), - typeof(global::OpenRouter.JsonConverters.ChatSystemMessageContentJsonConverter), typeof(global::OpenRouter.JsonConverters.ChatContentItemsJsonConverter), @@ -1676,9 +1678,11 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.UnixTimestampJsonConverter), })] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.JsonSerializerContextTypes))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestImageConfig), TypeInfoPropertyName = "ResponsesRequestImageConfig2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageConfig), TypeInfoPropertyName = "ImageConfig2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(string))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponseIncludesEnum), TypeInfoPropertyName = "ResponseIncludesEnum2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningTextContentType), TypeInfoPropertyName = "ReasoningTextContentType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ReasoningTextContent))] @@ -1709,7 +1713,6 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageContentOneOf0Items), TypeInfoPropertyName = "EasyInputMessageContentOneOf0Items2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessageContent), TypeInfoPropertyName = "EasyInputMessageContent2")] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(object))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessagePhase0), TypeInfoPropertyName = "EasyInputMessagePhase02")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessagePhase1), TypeInfoPropertyName = "EasyInputMessagePhase12")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.EasyInputMessagePhase), TypeInfoPropertyName = "EasyInputMessagePhase2")] @@ -1889,7 +1892,6 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedMode), TypeInfoPropertyName = "ToolChoiceAllowedMode2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowedType), TypeInfoPropertyName = "ToolChoiceAllowedType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ToolChoiceAllowed))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OpenAIResponsesToolChoice), TypeInfoPropertyName = "OpenAIResponsesToolChoice2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.FunctionToolType), TypeInfoPropertyName = "FunctionToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ResponsesRequestToolsItems0))] @@ -1969,6 +1971,9 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatetimeServerToolConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatetimeServerToolType), TypeInfoPropertyName = "DatetimeServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.DatetimeServerTool))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolConfig))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouterType), TypeInfoPropertyName = "ImageGenerationServerToolOpenRouterType2")] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.SearchModelsServerToolConfig))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatSearchModelsServerToolType), TypeInfoPropertyName = "ChatSearchModelsServerToolType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatSearchModelsServerTool))] @@ -2124,7 +2129,6 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.AnthropicCacheControlDirectiveType), TypeInfoPropertyName = "AnthropicCacheControlDirectiveType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestCacheControl))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatDebugOptions))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatRequestImageConfig), TypeInfoPropertyName = "ChatRequestImageConfig2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentCacheControl))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentTextType), TypeInfoPropertyName = "ChatContentTextType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.ChatContentText))] @@ -2711,6 +2715,7 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.OneOf), TypeInfoPropertyName = "OneOfKeysHashPatchRequestBodyContentApplicationJsonSchemaLimitResetObject2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::OpenRouter.CreateRerankRequest))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(byte[]))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] @@ -2729,7 +2734,6 @@ namespace OpenRouter [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] - [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.List))] diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs index 8a654d5b..1307c467 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContextTypes.g.cs @@ -28,7 +28,7 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.ResponsesRequestImageConfig? Type0 { get; set; } + public global::OpenRouter.ImageConfig? Type0 { get; set; } /// /// /// @@ -40,847 +40,847 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.ResponseIncludesEnum? Type3 { get; set; } + public global::System.Collections.Generic.IList? Type3 { get; set; } /// /// /// - public global::OpenRouter.ReasoningTextContentType? Type4 { get; set; } + public object? Type4 { get; set; } /// /// /// - public global::OpenRouter.ReasoningTextContent? Type5 { get; set; } + public global::OpenRouter.ResponseIncludesEnum? Type5 { get; set; } /// /// /// - public global::OpenRouter.OutputItemReasoningStatus0? Type6 { get; set; } + public global::OpenRouter.ReasoningTextContentType? Type6 { get; set; } /// /// /// - public global::OpenRouter.OutputItemReasoningStatus1? Type7 { get; set; } + public global::OpenRouter.ReasoningTextContent? Type7 { get; set; } /// /// /// - public global::OpenRouter.OutputItemReasoningStatus2? Type8 { get; set; } + public global::OpenRouter.OutputItemReasoningStatus0? Type8 { get; set; } /// /// /// - public global::OpenRouter.OutputItemReasoningStatus? Type9 { get; set; } + public global::OpenRouter.OutputItemReasoningStatus1? Type9 { get; set; } /// /// /// - public global::OpenRouter.ReasoningSummaryTextType? Type10 { get; set; } + public global::OpenRouter.OutputItemReasoningStatus2? Type10 { get; set; } /// /// /// - public global::OpenRouter.ReasoningSummaryText? Type11 { get; set; } + public global::OpenRouter.OutputItemReasoningStatus? Type11 { get; set; } /// /// /// - public global::OpenRouter.OutputItemReasoningType? Type12 { get; set; } + public global::OpenRouter.ReasoningSummaryTextType? Type12 { get; set; } /// /// /// - public global::OpenRouter.ReasoningFormat? Type13 { get; set; } + public global::OpenRouter.ReasoningSummaryText? Type13 { get; set; } /// /// /// - public global::OpenRouter.ReasoningItem? Type14 { get; set; } + public global::OpenRouter.OutputItemReasoningType? Type14 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type15 { get; set; } + public global::OpenRouter.ReasoningFormat? Type15 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type16 { get; set; } + public global::OpenRouter.ReasoningItem? Type16 { get; set; } /// /// /// - public global::OpenRouter.InputTextType? Type17 { get; set; } + public global::System.Collections.Generic.IList? Type17 { get; set; } /// /// /// - public global::OpenRouter.InputText? Type18 { get; set; } + public global::System.Collections.Generic.IList? Type18 { get; set; } /// /// /// - public global::OpenRouter.InputImageDetail? Type19 { get; set; } + public global::OpenRouter.InputTextType? Type19 { get; set; } /// /// /// - public global::OpenRouter.InputImageType? Type20 { get; set; } + public global::OpenRouter.InputText? Type20 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageContentOneOf0Items1? Type21 { get; set; } + public global::OpenRouter.InputImageDetail? Type21 { get; set; } /// /// /// - public global::OpenRouter.InputFileType? Type22 { get; set; } + public global::OpenRouter.InputImageType? Type22 { get; set; } /// /// /// - public global::OpenRouter.InputFile? Type23 { get; set; } + public global::OpenRouter.EasyInputMessageContentOneOf0Items1? Type23 { get; set; } /// /// /// - public global::OpenRouter.InputAudioInputAudioFormat? Type24 { get; set; } + public global::OpenRouter.InputFileType? Type24 { get; set; } /// /// /// - public global::OpenRouter.InputAudioInputAudio? Type25 { get; set; } + public global::OpenRouter.InputFile? Type25 { get; set; } /// /// /// - public global::OpenRouter.InputAudioType? Type26 { get; set; } + public global::OpenRouter.InputAudioInputAudioFormat? Type26 { get; set; } /// /// /// - public global::OpenRouter.InputAudio? Type27 { get; set; } + public global::OpenRouter.InputAudioInputAudio? Type27 { get; set; } /// /// /// - public global::OpenRouter.InputVideoType? Type28 { get; set; } + public global::OpenRouter.InputAudioType? Type28 { get; set; } /// /// /// - public global::OpenRouter.InputVideo? Type29 { get; set; } + public global::OpenRouter.InputAudio? Type29 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageContentOneOf0Items? Type30 { get; set; } + public global::OpenRouter.InputVideoType? Type30 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type31 { get; set; } + public global::OpenRouter.InputVideo? Type31 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageContent? Type32 { get; set; } + public global::OpenRouter.EasyInputMessageContentOneOf0Items? Type32 { get; set; } /// /// /// - public object? Type33 { get; set; } + public global::System.Collections.Generic.IList? Type33 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessagePhase0? Type34 { get; set; } + public global::OpenRouter.EasyInputMessageContent? Type34 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessagePhase1? Type35 { get; set; } + public global::OpenRouter.EasyInputMessagePhase0? Type35 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessagePhase? Type36 { get; set; } + public global::OpenRouter.EasyInputMessagePhase1? Type36 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole0? Type37 { get; set; } + public global::OpenRouter.EasyInputMessagePhase? Type37 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole1? Type38 { get; set; } + public global::OpenRouter.EasyInputMessageRole0? Type38 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole2? Type39 { get; set; } + public global::OpenRouter.EasyInputMessageRole1? Type39 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole3? Type40 { get; set; } + public global::OpenRouter.EasyInputMessageRole2? Type40 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageRole? Type41 { get; set; } + public global::OpenRouter.EasyInputMessageRole3? Type41 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessageType? Type42 { get; set; } + public global::OpenRouter.EasyInputMessageRole? Type42 { get; set; } /// /// /// - public global::OpenRouter.EasyInputMessage? Type43 { get; set; } + public global::OpenRouter.EasyInputMessageType? Type43 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemContentItems1? Type44 { get; set; } + public global::OpenRouter.EasyInputMessage? Type44 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemContentItems? Type45 { get; set; } + public global::OpenRouter.InputMessageItemContentItems1? Type45 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRole0? Type46 { get; set; } + public global::OpenRouter.InputMessageItemContentItems? Type46 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRole1? Type47 { get; set; } + public global::OpenRouter.InputMessageItemRole0? Type47 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRole2? Type48 { get; set; } + public global::OpenRouter.InputMessageItemRole1? Type48 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemRole? Type49 { get; set; } + public global::OpenRouter.InputMessageItemRole2? Type49 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItemType? Type50 { get; set; } + public global::OpenRouter.InputMessageItemRole? Type50 { get; set; } /// /// /// - public global::OpenRouter.InputMessageItem? Type51 { get; set; } + public global::OpenRouter.InputMessageItemType? Type51 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type52 { get; set; } + public global::OpenRouter.InputMessageItem? Type52 { get; set; } /// /// /// - public global::OpenRouter.ToolCallStatus? Type53 { get; set; } + public global::System.Collections.Generic.IList? Type53 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallType? Type54 { get; set; } + public global::OpenRouter.ToolCallStatus? Type54 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallItem? Type55 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallType? Type55 { get; set; } /// /// /// - public global::OpenRouter.InputImage? Type56 { get; set; } + public global::OpenRouter.FunctionCallItem? Type56 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1Items? Type57 { get; set; } + public global::OpenRouter.InputImage? Type57 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type58 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutputOneOf1Items? Type58 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutput? Type59 { get; set; } + public global::System.Collections.Generic.IList? Type59 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputStatus? Type60 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputOutput? Type60 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseFunctionToolCallOutputType? Type61 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputStatus? Type61 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1Items1? Type62 { get; set; } + public global::OpenRouter.OpenAiResponseFunctionToolCallOutputType? Type62 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutputOneOf1Items? Type63 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1Items1? Type63 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type64 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutputOneOf1Items? Type64 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItemOutput? Type65 { get; set; } + public global::System.Collections.Generic.IList? Type65 { get; set; } /// /// /// - public global::OpenRouter.FunctionCallOutputItem? Type66 { get; set; } + public global::OpenRouter.FunctionCallOutputItemOutput? Type66 { get; set; } /// /// /// - public global::OpenRouter.FileCitationType? Type67 { get; set; } + public global::OpenRouter.FunctionCallOutputItem? Type67 { get; set; } /// /// /// - public global::OpenRouter.FileCitation? Type68 { get; set; } + public global::OpenRouter.FileCitationType? Type68 { get; set; } /// /// /// - public int? Type69 { get; set; } + public global::OpenRouter.FileCitation? Type69 { get; set; } /// /// /// - public global::OpenRouter.UrlCitationType? Type70 { get; set; } + public int? Type70 { get; set; } /// /// /// - public global::OpenRouter.URLCitation? Type71 { get; set; } + public global::OpenRouter.UrlCitationType? Type71 { get; set; } /// /// /// - public global::OpenRouter.FilePathType? Type72 { get; set; } + public global::OpenRouter.URLCitation? Type72 { get; set; } /// /// /// - public global::OpenRouter.FilePath? Type73 { get; set; } + public global::OpenRouter.FilePathType? Type73 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesAnnotation? Type74 { get; set; } + public global::OpenRouter.FilePath? Type74 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextLogprobsItemsTopLogprobsItems? Type75 { get; set; } + public global::OpenRouter.OpenAIResponsesAnnotation? Type75 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type76 { get; set; } + public global::OpenRouter.ResponseOutputTextLogprobsItemsTopLogprobsItems? Type76 { get; set; } /// /// /// - public long? Type77 { get; set; } + public global::System.Collections.Generic.IList? Type77 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextLogprobsItems? Type78 { get; set; } + public long? Type78 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type79 { get; set; } + public global::OpenRouter.ResponseOutputTextLogprobsItems? Type79 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputTextType? Type80 { get; set; } + public global::System.Collections.Generic.IList? Type80 { get; set; } /// /// /// - public global::OpenRouter.ResponseOutputText? Type81 { get; set; } + public global::OpenRouter.ResponseOutputTextType? Type81 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type82 { get; set; } + public global::OpenRouter.ResponseOutputText? Type82 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type83 { get; set; } + public global::System.Collections.Generic.IList? Type83 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesRefusalContentType? Type84 { get; set; } + public global::System.Collections.Generic.IList? Type84 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesRefusalContent? Type85 { get; set; } + public global::OpenRouter.OpenAiResponsesRefusalContentType? Type85 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageContentItems? Type86 { get; set; } + public global::OpenRouter.OpenAIResponsesRefusalContent? Type86 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhase0? Type87 { get; set; } + public global::OpenRouter.OutputMessageContentItems? Type87 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhase1? Type88 { get; set; } + public global::OpenRouter.OutputMessagePhase0? Type88 { get; set; } /// /// /// - public global::OpenRouter.OutputMessagePhase? Type89 { get; set; } + public global::OpenRouter.OutputMessagePhase1? Type89 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageRole? Type90 { get; set; } + public global::OpenRouter.OutputMessagePhase? Type90 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus0? Type91 { get; set; } + public global::OpenRouter.OutputMessageRole? Type91 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus1? Type92 { get; set; } + public global::OpenRouter.OutputMessageStatus0? Type92 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus2? Type93 { get; set; } + public global::OpenRouter.OutputMessageStatus1? Type93 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageStatus? Type94 { get; set; } + public global::OpenRouter.OutputMessageStatus2? Type94 { get; set; } /// /// /// - public global::OpenRouter.OutputMessageType? Type95 { get; set; } + public global::OpenRouter.OutputMessageStatus? Type95 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1ItemsOneOf5ContentOneOf0Items? Type96 { get; set; } + public global::OpenRouter.OutputMessageType? Type96 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type97 { get; set; } + public global::OpenRouter.InputsOneOf1ItemsOneOf5ContentOneOf0Items? Type97 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1ItemsOneOf5Content? Type98 { get; set; } + public global::System.Collections.Generic.IList? Type98 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1Items5? Type99 { get; set; } + public global::OpenRouter.InputsOneOf1ItemsOneOf5Content? Type99 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1Items6? Type100 { get; set; } + public global::OpenRouter.InputsOneOf1Items5? Type100 { get; set; } /// /// /// - public global::OpenRouter.OutputItemFunctionCallStatus0? Type101 { get; set; } + public global::OpenRouter.InputsOneOf1Items6? Type101 { get; set; } /// /// /// - public global::OpenRouter.OutputItemFunctionCallStatus1? Type102 { get; set; } + public global::OpenRouter.OutputItemFunctionCallStatus0? Type102 { get; set; } /// /// /// - public global::OpenRouter.OutputItemFunctionCallStatus2? Type103 { get; set; } + public global::OpenRouter.OutputItemFunctionCallStatus1? Type103 { get; set; } /// /// /// - public global::OpenRouter.OutputItemFunctionCallStatus? Type104 { get; set; } + public global::OpenRouter.OutputItemFunctionCallStatus2? Type104 { get; set; } /// /// /// - public global::OpenRouter.OutputItemFunctionCallType? Type105 { get; set; } + public global::OpenRouter.OutputItemFunctionCallStatus? Type105 { get; set; } /// /// /// - public global::OpenRouter.OutputFunctionCallItem? Type106 { get; set; } + public global::OpenRouter.OutputItemFunctionCallType? Type106 { get; set; } /// /// /// - public global::OpenRouter.WebSearchSourceType? Type107 { get; set; } + public global::OpenRouter.OutputFunctionCallItem? Type107 { get; set; } /// /// /// - public global::OpenRouter.WebSearchSource? Type108 { get; set; } + public global::OpenRouter.WebSearchSourceType? Type108 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallActionOneOf0Type? Type109 { get; set; } + public global::OpenRouter.WebSearchSource? Type109 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallAction0? Type110 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallActionOneOf0Type? Type110 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type111 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallAction0? Type111 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type112 { get; set; } + public global::System.Collections.Generic.IList? Type112 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallActionOneOf1Type? Type113 { get; set; } + public global::System.Collections.Generic.IList? Type113 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallAction1? Type114 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallActionOneOf1Type? Type114 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallActionOneOf2Type? Type115 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallAction1? Type115 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallAction2? Type116 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallActionOneOf2Type? Type116 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallAction? Type117 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallAction2? Type117 { get; set; } /// /// /// - public global::OpenRouter.WebSearchStatus? Type118 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallAction? Type118 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCallType? Type119 { get; set; } + public global::OpenRouter.WebSearchStatus? Type119 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchCallItem? Type120 { get; set; } + public global::OpenRouter.OutputItemWebSearchCallType? Type120 { get; set; } /// /// /// - public global::OpenRouter.OutputItemFileSearchCallType? Type121 { get; set; } + public global::OpenRouter.OutputWebSearchCallItem? Type121 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchCallItem? Type122 { get; set; } + public global::OpenRouter.OutputItemFileSearchCallType? Type122 { get; set; } /// /// /// - public global::OpenRouter.ImageGenerationStatus? Type123 { get; set; } + public global::OpenRouter.OutputFileSearchCallItem? Type123 { get; set; } /// /// /// - public global::OpenRouter.OutputItemImageGenerationCallType? Type124 { get; set; } + public global::OpenRouter.ImageGenerationStatus? Type124 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationCallItem? Type125 { get; set; } + public global::OpenRouter.OutputItemImageGenerationCallType? Type125 { get; set; } /// /// /// - public global::OpenRouter.OutputDatetimeItemType? Type126 { get; set; } + public global::OpenRouter.OutputImageGenerationCallItem? Type126 { get; set; } /// /// /// - public global::OpenRouter.OutputDatetimeItem? Type127 { get; set; } + public global::OpenRouter.OutputDatetimeItemType? Type127 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItemType? Type128 { get; set; } + public global::OpenRouter.OutputDatetimeItem? Type128 { get; set; } /// /// /// - public global::OpenRouter.OutputWebSearchServerToolItem? Type129 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItemType? Type129 { get; set; } /// /// /// - public global::OpenRouter.InputsOneOf1Items? Type130 { get; set; } + public global::OpenRouter.OutputWebSearchServerToolItem? Type130 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type131 { get; set; } + public global::OpenRouter.InputsOneOf1Items? Type131 { get; set; } /// /// /// - public global::OpenRouter.Inputs? Type132 { get; set; } + public global::System.Collections.Generic.IList? Type132 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type133 { get; set; } + public global::OpenRouter.Inputs? Type133 { get; set; } /// /// /// - public global::OpenRouter.OutputModalityEnum? Type134 { get; set; } + public global::System.Collections.Generic.Dictionary? Type134 { get; set; } /// /// /// - public global::OpenRouter.AutoRouterPluginId? Type135 { get; set; } + public global::OpenRouter.OutputModalityEnum? Type135 { get; set; } /// /// /// - public global::OpenRouter.AutoRouterPlugin? Type136 { get; set; } + public global::OpenRouter.AutoRouterPluginId? Type136 { get; set; } /// /// /// - public bool? Type137 { get; set; } + public global::OpenRouter.AutoRouterPlugin? Type137 { get; set; } /// /// /// - public global::OpenRouter.ModerationPluginId? Type138 { get; set; } + public bool? Type138 { get; set; } /// /// /// - public global::OpenRouter.ModerationPlugin? Type139 { get; set; } + public global::OpenRouter.ModerationPluginId? Type139 { get; set; } /// /// /// - public global::OpenRouter.WebSearchEngine? Type140 { get; set; } + public global::OpenRouter.ModerationPlugin? Type140 { get; set; } /// /// /// - public global::OpenRouter.WebSearchPluginId? Type141 { get; set; } + public global::OpenRouter.WebSearchEngine? Type141 { get; set; } /// /// /// - public global::OpenRouter.WebSearchPlugin? Type142 { get; set; } + public global::OpenRouter.WebSearchPluginId? Type142 { get; set; } /// /// /// - public global::OpenRouter.FileParserPluginId? Type143 { get; set; } + public global::OpenRouter.WebSearchPlugin? Type143 { get; set; } /// /// /// - public global::OpenRouter.PdfParserEngine0? Type144 { get; set; } + public global::OpenRouter.FileParserPluginId? Type144 { get; set; } /// /// /// - public global::OpenRouter.PdfParserEngine1? Type145 { get; set; } + public global::OpenRouter.PdfParserEngine0? Type145 { get; set; } /// /// /// - public global::OpenRouter.PDFParserEngine? Type146 { get; set; } + public global::OpenRouter.PdfParserEngine1? Type146 { get; set; } /// /// /// - public global::OpenRouter.PDFParserOptions? Type147 { get; set; } + public global::OpenRouter.PDFParserEngine? Type147 { get; set; } /// /// /// - public global::OpenRouter.FileParserPlugin? Type148 { get; set; } + public global::OpenRouter.PDFParserOptions? Type148 { get; set; } /// /// /// - public global::OpenRouter.ResponseHealingPluginId? Type149 { get; set; } + public global::OpenRouter.FileParserPlugin? Type149 { get; set; } /// /// /// - public global::OpenRouter.ResponseHealingPlugin? Type150 { get; set; } + public global::OpenRouter.ResponseHealingPluginId? Type150 { get; set; } /// /// /// - public global::OpenRouter.ContextCompressionEngine? Type151 { get; set; } + public global::OpenRouter.ResponseHealingPlugin? Type151 { get; set; } /// /// /// - public global::OpenRouter.ContextCompressionPluginId? Type152 { get; set; } + public global::OpenRouter.ContextCompressionEngine? Type152 { get; set; } /// /// /// - public global::OpenRouter.ContextCompressionPlugin? Type153 { get; set; } + public global::OpenRouter.ContextCompressionPluginId? Type153 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestPluginsItems? Type154 { get; set; } + public global::OpenRouter.ContextCompressionPlugin? Type154 { get; set; } /// /// /// - public global::OpenRouter.StoredPromptTemplateVariables? Type155 { get; set; } + public global::OpenRouter.ResponsesRequestPluginsItems? Type155 { get; set; } /// /// /// - public global::OpenRouter.StoredPromptTemplate? Type156 { get; set; } + public global::OpenRouter.StoredPromptTemplateVariables? Type156 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesDataCollection? Type157 { get; set; } + public global::OpenRouter.StoredPromptTemplate? Type157 { get; set; } /// /// /// - public global::OpenRouter.ProviderName? Type158 { get; set; } + public global::OpenRouter.ProviderPreferencesDataCollection? Type158 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesIgnoreItems? Type159 { get; set; } + public global::OpenRouter.ProviderName? Type159 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesMaxPriceAudio? Type160 { get; set; } + public global::OpenRouter.ProviderPreferencesIgnoreItems? Type160 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesMaxPriceCompletion? Type161 { get; set; } + public global::OpenRouter.ProviderPreferencesMaxPriceAudio? Type161 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesMaxPriceImage? Type162 { get; set; } + public global::OpenRouter.ProviderPreferencesMaxPriceCompletion? Type162 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesMaxPriceRequest? Type163 { get; set; } + public global::OpenRouter.ProviderPreferencesMaxPriceImage? Type163 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesMaxPrice? Type164 { get; set; } + public global::OpenRouter.ProviderPreferencesMaxPriceRequest? Type164 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesOnlyItems? Type165 { get; set; } + public global::OpenRouter.ProviderPreferencesMaxPrice? Type165 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesOrderItems? Type166 { get; set; } + public global::OpenRouter.ProviderPreferencesOnlyItems? Type166 { get; set; } /// /// /// - public global::OpenRouter.PercentileLatencyCutoffs? Type167 { get; set; } + public global::OpenRouter.ProviderPreferencesOrderItems? Type167 { get; set; } /// /// /// - public global::OpenRouter.PreferredMaxLatency? Type168 { get; set; } + public global::OpenRouter.PercentileLatencyCutoffs? Type168 { get; set; } /// /// /// - public global::OpenRouter.PercentileThroughputCutoffs? Type169 { get; set; } + public global::OpenRouter.PreferredMaxLatency? Type169 { get; set; } /// /// /// - public global::OpenRouter.PreferredMinThroughput? Type170 { get; set; } + public global::OpenRouter.PercentileThroughputCutoffs? Type170 { get; set; } /// /// /// - public global::OpenRouter.Quantization? Type171 { get; set; } + public global::OpenRouter.PreferredMinThroughput? Type171 { get; set; } /// /// /// - public global::OpenRouter.ProviderSort? Type172 { get; set; } + public global::OpenRouter.Quantization? Type172 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfigBy? Type173 { get; set; } + public global::OpenRouter.ProviderSort? Type173 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfigPartition? Type174 { get; set; } + public global::OpenRouter.ProviderSortConfigBy? Type174 { get; set; } /// /// /// - public global::OpenRouter.ProviderSortConfig? Type175 { get; set; } + public global::OpenRouter.ProviderSortConfigPartition? Type175 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type176 { get; set; } + public global::OpenRouter.ProviderSortConfig? Type176 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type177 { get; set; } + public global::OpenRouter.OneOf? Type177 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferencesSort? Type178 { get; set; } + public global::OpenRouter.OneOf? Type178 { get; set; } /// /// /// - public global::OpenRouter.ProviderPreferences? Type179 { get; set; } + public global::OpenRouter.ProviderPreferencesSort? Type179 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type180 { get; set; } + public global::OpenRouter.ProviderPreferences? Type180 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type181 { get; set; } + public global::OpenRouter.OneOf? Type181 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type182 { get; set; } + public global::System.Collections.Generic.IList? Type182 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type183 { get; set; } + public global::System.Collections.Generic.IList? Type183 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type184 { get; set; } + public global::System.Collections.Generic.IList? Type184 { get; set; } /// /// /// - public global::OpenRouter.ReasoningEffort? Type185 { get; set; } + public global::System.Collections.Generic.IList? Type185 { get; set; } /// /// /// - public global::OpenRouter.ReasoningSummaryVerbosity? Type186 { get; set; } + public global::OpenRouter.ReasoningEffort? Type186 { get; set; } /// /// /// - public global::OpenRouter.ReasoningConfig? Type187 { get; set; } + public global::OpenRouter.ReasoningSummaryVerbosity? Type187 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestServiceTier? Type188 { get; set; } + public global::OpenRouter.ReasoningConfig? Type188 { get; set; } /// /// /// - public global::OpenRouter.FormatTextConfigType? Type189 { get; set; } + public global::OpenRouter.ResponsesRequestServiceTier? Type189 { get; set; } /// /// /// - public global::OpenRouter.FormatTextConfig? Type190 { get; set; } + public global::OpenRouter.FormatTextConfigType? Type190 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonObjectConfigType? Type191 { get; set; } + public global::OpenRouter.FormatTextConfig? Type191 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonObjectConfig? Type192 { get; set; } + public global::OpenRouter.FormatJsonObjectConfigType? Type192 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonSchemaConfigType? Type193 { get; set; } + public global::OpenRouter.FormatJsonObjectConfig? Type193 { get; set; } /// /// /// - public global::OpenRouter.FormatJsonSchemaConfig? Type194 { get; set; } + public global::OpenRouter.FormatJsonSchemaConfigType? Type194 { get; set; } /// /// /// - public global::OpenRouter.Formats? Type195 { get; set; } + public global::OpenRouter.FormatJsonSchemaConfig? Type195 { get; set; } /// /// /// - public global::OpenRouter.TextConfigVerbosity? Type196 { get; set; } + public global::OpenRouter.Formats? Type196 { get; set; } /// /// /// - public global::OpenRouter.TextExtendedConfig? Type197 { get; set; } + public global::OpenRouter.TextConfigVerbosity? Type197 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type198 { get; set; } + public global::OpenRouter.TextExtendedConfig? Type198 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice0? Type199 { get; set; } + public global::OpenRouter.OneOf? Type199 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice1? Type200 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice0? Type200 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice2? Type201 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice1? Type201 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf3Type? Type202 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice2? Type202 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice3? Type203 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf3Type? Type203 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type0? Type204 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice3? Type204 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type1? Type205 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type0? Type205 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type? Type206 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type1? Type206 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesToolChoice4? Type207 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoiceOneOf4Type? Type207 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedMode0? Type208 { get; set; } + public global::OpenRouter.OpenAiResponsesToolChoice4? Type208 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedMode1? Type209 { get; set; } + public global::OpenRouter.ToolChoiceAllowedMode0? Type209 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedMode? Type210 { get; set; } + public global::OpenRouter.ToolChoiceAllowedMode1? Type210 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowedType? Type211 { get; set; } + public global::OpenRouter.ToolChoiceAllowedMode? Type211 { get; set; } /// /// /// - public global::OpenRouter.ToolChoiceAllowed? Type212 { get; set; } + public global::OpenRouter.ToolChoiceAllowedType? Type212 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type213 { get; set; } + public global::OpenRouter.ToolChoiceAllowed? Type213 { get; set; } /// /// /// @@ -1200,3048 +1200,3056 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::OpenRouter.SearchModelsServerToolConfig? Type293 { get; set; } + public global::OpenRouter.ImageGenerationServerToolConfig? Type293 { get; set; } /// /// /// - public global::OpenRouter.ChatSearchModelsServerToolType? Type294 { get; set; } + public global::OpenRouter.ImageGenerationServerToolOpenRouterType? Type294 { get; set; } /// /// /// - public global::OpenRouter.ChatSearchModelsServerTool? Type295 { get; set; } + public global::OpenRouter.ImageGenerationServerToolOpenRouter? Type295 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolOpenRouterParameters? Type296 { get; set; } + public global::OpenRouter.SearchModelsServerToolConfig? Type296 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolOpenRouterType? Type297 { get; set; } + public global::OpenRouter.ChatSearchModelsServerToolType? Type297 { get; set; } /// /// /// - public global::OpenRouter.WebSearchServerToolOpenRouter? Type298 { get; set; } + public global::OpenRouter.ChatSearchModelsServerTool? Type298 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequestToolsItems? Type299 { get; set; } + public global::OpenRouter.WebSearchServerToolOpenRouterParameters? Type299 { get; set; } /// /// /// - public global::OpenRouter.TraceConfig? Type300 { get; set; } + public global::OpenRouter.WebSearchServerToolOpenRouterType? Type300 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesTruncation? Type301 { get; set; } + public global::OpenRouter.WebSearchServerToolOpenRouter? Type301 { get; set; } /// /// /// - public global::OpenRouter.ResponsesRequest? Type302 { get; set; } + public global::OpenRouter.ResponsesRequestToolsItems? Type302 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type303 { get; set; } + public global::OpenRouter.TraceConfig? Type303 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type304 { get; set; } + public global::OpenRouter.OpenAIResponsesTruncation? Type304 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type305 { get; set; } + public global::OpenRouter.ResponsesRequest? Type305 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type306 { get; set; } + public global::System.Collections.Generic.IList? Type306 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type307 { get; set; } + public global::System.Collections.Generic.IList? Type307 { get; set; } /// /// /// - public global::OpenRouter.ResponsesErrorFieldCode? Type308 { get; set; } + public global::System.Collections.Generic.IList? Type308 { get; set; } /// /// /// - public global::OpenRouter.ResponsesErrorField? Type309 { get; set; } + public global::OpenRouter.OneOf? Type309 { get; set; } /// /// /// - public global::OpenRouter.IncompleteDetailsReason? Type310 { get; set; } + public global::System.Collections.Generic.IList? Type310 { get; set; } /// /// /// - public global::OpenRouter.IncompleteDetails? Type311 { get; set; } + public global::OpenRouter.ResponsesErrorFieldCode? Type311 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items? Type312 { get; set; } + public global::OpenRouter.ResponsesErrorField? Type312 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type313 { get; set; } + public global::OpenRouter.IncompleteDetailsReason? Type313 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Content? Type314 { get; set; } + public global::OpenRouter.IncompleteDetails? Type314 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase0? Type315 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0ContentOneOf0Items? Type315 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1? Type316 { get; set; } + public global::System.Collections.Generic.IList? Type316 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase? Type317 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Content? Type317 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role0? Type318 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase0? Type318 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role1? Type319 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase1? Type319 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role2? Type320 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Phase? Type320 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role3? Type321 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role0? Type321 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role? Type322 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role1? Type322 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Type? Type323 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role2? Type323 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1Items0? Type324 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role3? Type324 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemContentItems? Type325 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Role? Type325 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole0? Type326 { get; set; } + public global::OpenRouter.BaseInputsOneOf1ItemsOneOf0Type? Type326 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole1? Type327 { get; set; } + public global::OpenRouter.BaseInputsOneOf1Items0? Type327 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole2? Type328 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemContentItems? Type328 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemRole? Type329 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole0? Type329 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponseInputMessageItemType? Type330 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole1? Type330 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseInputMessageItem? Type331 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole2? Type331 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type332 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemRole? Type332 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseFunctionToolCallOutput? Type333 { get; set; } + public global::OpenRouter.OpenAiResponseInputMessageItemType? Type333 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponseFunctionToolCall? Type334 { get; set; } + public global::OpenRouter.OpenAIResponseInputMessageItem? Type334 { get; set; } /// /// /// - public global::OpenRouter.OutputItemImageGenerationCall? Type335 { get; set; } + public global::System.Collections.Generic.IList? Type335 { get; set; } /// /// /// - public global::OpenRouter.OutputMessage? Type336 { get; set; } + public global::OpenRouter.OpenAIResponseFunctionToolCallOutput? Type336 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type337 { get; set; } + public global::OpenRouter.OpenAIResponseFunctionToolCall? Type337 { get; set; } /// /// /// - public global::OpenRouter.BaseInputsOneOf1Items? Type338 { get; set; } + public global::OpenRouter.OutputItemImageGenerationCall? Type338 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type339 { get; set; } + public global::OpenRouter.OutputMessage? Type339 { get; set; } /// /// /// - public global::OpenRouter.BaseInputs? Type340 { get; set; } + public global::System.Collections.Generic.IList? Type340 { get; set; } /// /// /// - public global::OpenRouter.BaseResponsesResultObject? Type341 { get; set; } + public global::OpenRouter.BaseInputsOneOf1Items? Type341 { get; set; } /// /// /// - public global::OpenRouter.OutputItemReasoning? Type342 { get; set; } + public global::System.Collections.Generic.IList? Type342 { get; set; } /// /// /// - public global::OpenRouter.OutputItemFunctionCall? Type343 { get; set; } + public global::OpenRouter.BaseInputs? Type343 { get; set; } /// /// /// - public global::OpenRouter.OutputItemWebSearchCall? Type344 { get; set; } + public global::OpenRouter.BaseResponsesResultObject? Type344 { get; set; } /// /// /// - public global::OpenRouter.OutputItemFileSearchCall? Type345 { get; set; } + public global::OpenRouter.OutputItemReasoning? Type345 { get; set; } /// /// /// - public global::OpenRouter.BaseResponsesResultOutputItems? Type346 { get; set; } + public global::OpenRouter.OutputItemFunctionCall? Type346 { get; set; } /// /// /// - public global::OpenRouter.BaseReasoningConfig? Type347 { get; set; } + public global::OpenRouter.OutputItemWebSearchCall? Type347 { get; set; } /// /// /// - public global::OpenRouter.ServiceTier2? Type348 { get; set; } + public global::OpenRouter.OutputItemFileSearchCall? Type348 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesResponseStatus? Type349 { get; set; } + public global::OpenRouter.BaseResponsesResultOutputItems? Type349 { get; set; } /// /// /// - public global::OpenRouter.TextConfig? Type350 { get; set; } + public global::OpenRouter.BaseReasoningConfig? Type350 { get; set; } /// /// /// - public global::OpenRouter.BaseResponsesResultToolsItems0? Type351 { get; set; } + public global::OpenRouter.ServiceTier2? Type351 { get; set; } /// /// /// - public global::OpenRouter.BaseResponsesResultToolsItems? Type352 { get; set; } + public global::OpenRouter.OpenAIResponsesResponseStatus? Type352 { get; set; } /// /// /// - public global::OpenRouter.Truncation? Type353 { get; set; } + public global::OpenRouter.TextConfig? Type353 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesUsageInputTokensDetails? Type354 { get; set; } + public global::OpenRouter.BaseResponsesResultToolsItems0? Type354 { get; set; } /// /// /// - public global::OpenRouter.OpenAiResponsesUsageOutputTokensDetails? Type355 { get; set; } + public global::OpenRouter.BaseResponsesResultToolsItems? Type355 { get; set; } /// /// /// - public global::OpenRouter.OpenAIResponsesUsage? Type356 { get; set; } + public global::OpenRouter.Truncation? Type356 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type? Type357 { get; set; } + public global::OpenRouter.OpenAiResponsesUsageInputTokensDetails? Type357 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterCallItemOutputsItems0? Type358 { get; set; } + public global::OpenRouter.OpenAiResponsesUsageOutputTokensDetails? Type358 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type? Type359 { get; set; } + public global::OpenRouter.OpenAIResponsesUsage? Type359 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterCallItemOutputsItems1? Type360 { get; set; } + public global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf0Type? Type360 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterCallItemOutputsItems? Type361 { get; set; } + public global::OpenRouter.CodeInterpreterCallItemOutputsItems0? Type361 { get; set; } /// /// /// - public global::OpenRouter.CodeInterpreterCallItemType? Type362 { get; set; } + public global::OpenRouter.CodeInterpreterCallItemOutputsItemsOneOf1Type? Type362 { get; set; } /// /// /// - public global::OpenRouter.OutputComputerCallItemPendingSafetyChecksItems? Type363 { get; set; } + public global::OpenRouter.CodeInterpreterCallItemOutputsItems1? Type363 { get; set; } /// /// /// - public global::OpenRouter.OutputComputerCallItemStatus? Type364 { get; set; } + public global::OpenRouter.CodeInterpreterCallItemOutputsItems? Type364 { get; set; } /// /// /// - public global::OpenRouter.OutputComputerCallItemType? Type365 { get; set; } + public global::OpenRouter.CodeInterpreterCallItemType? Type365 { get; set; } /// /// /// - public global::OpenRouter.OutputApplyPatchServerToolItemType? Type366 { get; set; } + public global::OpenRouter.OutputComputerCallItemPendingSafetyChecksItems? Type366 { get; set; } /// /// /// - public global::OpenRouter.OutputBashServerToolItemType? Type367 { get; set; } + public global::OpenRouter.OutputComputerCallItemStatus? Type367 { get; set; } /// /// /// - public global::OpenRouter.OutputBrowserUseServerToolItemType? Type368 { get; set; } + public global::OpenRouter.OutputComputerCallItemType? Type368 { get; set; } /// /// /// - public global::OpenRouter.OutputCodeInterpreterServerToolItemType? Type369 { get; set; } + public global::OpenRouter.OutputApplyPatchServerToolItemType? Type369 { get; set; } /// /// /// - public global::OpenRouter.OutputFileSearchServerToolItemType? Type370 { get; set; } + public global::OpenRouter.OutputBashServerToolItemType? Type370 { get; set; } /// /// /// - public global::OpenRouter.OutputImageGenerationServerToolItemType? Type371 { get; set; } + public global::OpenRouter.OutputBrowserUseServerToolItemType? Type371 { get; set; } /// /// /// - public global::OpenRouter.OutputMcpServerToolItemType? Type372 { get; set; } + public global::OpenRouter.OutputCodeInterpreterServerToolItemType? Type372 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItemAction? Type373 { get; set; } + public global::OpenRouter.OutputFileSearchServerToolItemType? Type373 { get; set; } /// /// /// - public global::OpenRouter.OutputMemoryServerToolItemType? Type374 { get; set; } + public global::OpenRouter.OutputImageGenerationServerToolItemType? Type374 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItemCommand? Type375 { get; set; } + public global::OpenRouter.OutputMcpServerToolItemType? Type375 { get; set; } /// /// /// - public global::OpenRouter.OutputTextEditorServerToolItemType? Type376 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItemAction? Type376 { get; set; } /// /// /// - public global::OpenRouter.OutputToolSearchServerToolItemType? Type377 { get; set; } + public global::OpenRouter.OutputMemoryServerToolItemType? Type377 { get; set; } /// /// /// - public global::OpenRouter.OutputWebFetchServerToolItemType? Type378 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItemCommand? Type378 { get; set; } /// /// /// - public global::OpenRouter.OutputItems? Type379 { get; set; } + public global::OpenRouter.OutputTextEditorServerToolItemType? Type379 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant1? Type380 { get; set; } + public global::OpenRouter.OutputToolSearchServerToolItemType? Type380 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type381 { get; set; } + public global::OpenRouter.OutputWebFetchServerToolItemType? Type381 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant2? Type382 { get; set; } + public global::OpenRouter.OutputItems? Type382 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type383 { get; set; } + public global::OpenRouter.OutputItemsVariant1? Type383 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant3? Type384 { get; set; } + public global::System.Collections.Generic.IList? Type384 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant4? Type385 { get; set; } + public global::OpenRouter.OutputItemsVariant2? Type385 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant5? Type386 { get; set; } + public global::System.Collections.Generic.IList? Type386 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant6? Type387 { get; set; } + public global::OpenRouter.OutputItemsVariant3? Type387 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant7? Type388 { get; set; } + public global::OpenRouter.OutputItemsVariant4? Type388 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant8? Type389 { get; set; } + public global::OpenRouter.OutputItemsVariant5? Type389 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant9? Type390 { get; set; } + public global::OpenRouter.OutputItemsVariant6? Type390 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant10? Type391 { get; set; } + public global::OpenRouter.OutputItemsVariant7? Type391 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant11? Type392 { get; set; } + public global::OpenRouter.OutputItemsVariant8? Type392 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant12? Type393 { get; set; } + public global::OpenRouter.OutputItemsVariant9? Type393 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant13? Type394 { get; set; } + public global::OpenRouter.OutputItemsVariant10? Type394 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant14? Type395 { get; set; } + public global::OpenRouter.OutputItemsVariant11? Type395 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant15? Type396 { get; set; } + public global::OpenRouter.OutputItemsVariant12? Type396 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant16? Type397 { get; set; } + public global::OpenRouter.OutputItemsVariant13? Type397 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant17? Type398 { get; set; } + public global::OpenRouter.OutputItemsVariant14? Type398 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant18? Type399 { get; set; } + public global::OpenRouter.OutputItemsVariant15? Type399 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant19? Type400 { get; set; } + public global::OpenRouter.OutputItemsVariant16? Type400 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant20? Type401 { get; set; } + public global::OpenRouter.OutputItemsVariant17? Type401 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsVariant21? Type402 { get; set; } + public global::OpenRouter.OutputItemsVariant18? Type402 { get; set; } /// /// /// - public global::OpenRouter.OutputItemsDiscriminator? Type403 { get; set; } + public global::OpenRouter.OutputItemsVariant19? Type403 { get; set; } /// /// /// - public global::OpenRouter.UsageCostDetails? Type404 { get; set; } + public global::OpenRouter.OutputItemsVariant20? Type404 { get; set; } /// /// /// - public global::OpenRouter.Usage? Type405 { get; set; } + public global::OpenRouter.OutputItemsVariant21? Type405 { get; set; } /// /// /// - public global::OpenRouter.OpenResponsesResult? Type406 { get; set; } + public global::OpenRouter.OutputItemsDiscriminator? Type406 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type407 { get; set; } + public global::OpenRouter.UsageCostDetails? Type407 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type408 { get; set; } + public global::OpenRouter.Usage? Type408 { get; set; } /// /// /// - public global::OpenRouter.BadRequestResponseErrorData? Type409 { get; set; } + public global::OpenRouter.OpenResponsesResult? Type409 { get; set; } /// /// /// - public global::OpenRouter.BadRequestResponse? Type410 { get; set; } + public global::System.Collections.Generic.IList? Type410 { get; set; } /// /// /// - public global::OpenRouter.UnauthorizedResponseErrorData? Type411 { get; set; } + public global::System.Collections.Generic.IList? Type411 { get; set; } /// /// /// - public global::OpenRouter.UnauthorizedResponse? Type412 { get; set; } + public global::OpenRouter.BadRequestResponseErrorData? Type412 { get; set; } /// /// /// - public global::OpenRouter.PaymentRequiredResponseErrorData? Type413 { get; set; } + public global::OpenRouter.BadRequestResponse? Type413 { get; set; } /// /// /// - public global::OpenRouter.PaymentRequiredResponse? Type414 { get; set; } + public global::OpenRouter.UnauthorizedResponseErrorData? Type414 { get; set; } /// /// /// - public global::OpenRouter.NotFoundResponseErrorData? Type415 { get; set; } + public global::OpenRouter.UnauthorizedResponse? Type415 { get; set; } /// /// /// - public global::OpenRouter.NotFoundResponse? Type416 { get; set; } + public global::OpenRouter.PaymentRequiredResponseErrorData? Type416 { get; set; } /// /// /// - public global::OpenRouter.RequestTimeoutResponseErrorData? Type417 { get; set; } + public global::OpenRouter.PaymentRequiredResponse? Type417 { get; set; } /// /// /// - public global::OpenRouter.RequestTimeoutResponse? Type418 { get; set; } + public global::OpenRouter.NotFoundResponseErrorData? Type418 { get; set; } /// /// /// - public global::OpenRouter.PayloadTooLargeResponseErrorData? Type419 { get; set; } + public global::OpenRouter.NotFoundResponse? Type419 { get; set; } /// /// /// - public global::OpenRouter.PayloadTooLargeResponse? Type420 { get; set; } + public global::OpenRouter.RequestTimeoutResponseErrorData? Type420 { get; set; } /// /// /// - public global::OpenRouter.UnprocessableEntityResponseErrorData? Type421 { get; set; } + public global::OpenRouter.RequestTimeoutResponse? Type421 { get; set; } /// /// /// - public global::OpenRouter.UnprocessableEntityResponse? Type422 { get; set; } + public global::OpenRouter.PayloadTooLargeResponseErrorData? Type422 { get; set; } /// /// /// - public global::OpenRouter.TooManyRequestsResponseErrorData? Type423 { get; set; } + public global::OpenRouter.PayloadTooLargeResponse? Type423 { get; set; } /// /// /// - public global::OpenRouter.TooManyRequestsResponse? Type424 { get; set; } + public global::OpenRouter.UnprocessableEntityResponseErrorData? Type424 { get; set; } /// /// /// - public global::OpenRouter.InternalServerResponseErrorData? Type425 { get; set; } + public global::OpenRouter.UnprocessableEntityResponse? Type425 { get; set; } /// /// /// - public global::OpenRouter.InternalServerResponse? Type426 { get; set; } + public global::OpenRouter.TooManyRequestsResponseErrorData? Type426 { get; set; } /// /// /// - public global::OpenRouter.BadGatewayResponseErrorData? Type427 { get; set; } + public global::OpenRouter.TooManyRequestsResponse? Type427 { get; set; } /// /// /// - public global::OpenRouter.BadGatewayResponse? Type428 { get; set; } + public global::OpenRouter.InternalServerResponseErrorData? Type428 { get; set; } /// /// /// - public global::OpenRouter.ServiceUnavailableResponseErrorData? Type429 { get; set; } + public global::OpenRouter.InternalServerResponse? Type429 { get; set; } /// /// /// - public global::OpenRouter.ServiceUnavailableResponse? Type430 { get; set; } + public global::OpenRouter.BadGatewayResponseErrorData? Type430 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type431 { get; set; } + public global::OpenRouter.BadGatewayResponse? Type431 { get; set; } /// /// /// - public global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyResponse200? Type432 { get; set; } + public global::OpenRouter.ServiceUnavailableResponseErrorData? Type432 { get; set; } /// /// /// - public global::OpenRouter.ForbiddenResponseErrorData? Type433 { get; set; } + public global::OpenRouter.ServiceUnavailableResponse? Type433 { get; set; } /// /// /// - public global::OpenRouter.ForbiddenResponse? Type434 { get; set; } + public global::OpenRouter.AuthKeysPostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type434 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type435 { get; set; } + public global::OpenRouter.OAuthExchangeAuthCodeForAPIKeyResponse200? Type435 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitType? Type436 { get; set; } + public global::OpenRouter.ForbiddenResponseErrorData? Type436 { get; set; } /// /// /// - public global::OpenRouter.AuthKeysCodePostResponsesContentApplicationJsonSchemaData? Type437 { get; set; } + public global::OpenRouter.ForbiddenResponse? Type437 { get; set; } /// /// /// - public global::OpenRouter.OAuthCreateAuthKeysCodeResponse200? Type438 { get; set; } + public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaCodeChallengeMethod? Type438 { get; set; } /// /// /// - public global::OpenRouter.ConflictResponseErrorData? Type439 { get; set; } + public global::OpenRouter.AuthKeysCodePostRequestBodyContentApplicationJsonSchemaUsageLimitType? Type439 { get; set; } /// /// /// - public global::OpenRouter.ConflictResponse? Type440 { get; set; } + public global::OpenRouter.AuthKeysCodePostResponsesContentApplicationJsonSchemaData? Type440 { get; set; } /// /// /// - public global::OpenRouter.ActivityItem? Type441 { get; set; } + public global::OpenRouter.OAuthCreateAuthKeysCodeResponse200? Type441 { get; set; } /// /// /// - public global::OpenRouter.ActivityResponse? Type442 { get; set; } + public global::OpenRouter.ConflictResponseErrorData? Type442 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type443 { get; set; } + public global::OpenRouter.ConflictResponse? Type443 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheControlTtl? Type444 { get; set; } + public global::OpenRouter.ActivityItem? Type444 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheControlDirectiveType? Type445 { get; set; } + public global::OpenRouter.ActivityResponse? Type445 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestCacheControl? Type446 { get; set; } + public global::System.Collections.Generic.IList? Type446 { get; set; } /// /// /// - public global::OpenRouter.ChatDebugOptions? Type447 { get; set; } + public global::OpenRouter.AnthropicCacheControlTtl? Type447 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestImageConfig? Type448 { get; set; } + public global::OpenRouter.AnthropicCacheControlDirectiveType? Type448 { get; set; } /// /// /// - public global::OpenRouter.ChatContentCacheControl? Type449 { get; set; } + public global::OpenRouter.ChatRequestCacheControl? Type449 { get; set; } /// /// /// - public global::OpenRouter.ChatContentTextType? Type450 { get; set; } + public global::OpenRouter.ChatDebugOptions? Type450 { get; set; } /// /// /// - public global::OpenRouter.ChatContentText? Type451 { get; set; } + public global::OpenRouter.ChatContentCacheControl? Type451 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type452 { get; set; } + public global::OpenRouter.ChatContentTextType? Type452 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageContent? Type453 { get; set; } + public global::OpenRouter.ChatContentText? Type453 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessageRole? Type454 { get; set; } + public global::System.Collections.Generic.IList? Type454 { get; set; } /// /// /// - public global::OpenRouter.ChatSystemMessage? Type455 { get; set; } + public global::OpenRouter.ChatSystemMessageContent? Type455 { get; set; } /// /// /// - public global::OpenRouter.ChatContentImageImageUrlDetail? Type456 { get; set; } + public global::OpenRouter.ChatSystemMessageRole? Type456 { get; set; } /// /// /// - public global::OpenRouter.ChatContentImageImageUrl? Type457 { get; set; } + public global::OpenRouter.ChatSystemMessage? Type457 { get; set; } /// /// /// - public global::OpenRouter.ChatContentImageType? Type458 { get; set; } + public global::OpenRouter.ChatContentImageImageUrlDetail? Type458 { get; set; } /// /// /// - public global::OpenRouter.ChatContentImage? Type459 { get; set; } + public global::OpenRouter.ChatContentImageImageUrl? Type459 { get; set; } /// /// /// - public global::OpenRouter.ChatContentAudioInputAudio? Type460 { get; set; } + public global::OpenRouter.ChatContentImageType? Type460 { get; set; } /// /// /// - public global::OpenRouter.ChatContentAudioType? Type461 { get; set; } + public global::OpenRouter.ChatContentImage? Type461 { get; set; } /// /// /// - public global::OpenRouter.ChatContentAudio? Type462 { get; set; } + public global::OpenRouter.ChatContentAudioInputAudio? Type462 { get; set; } /// /// /// - public global::OpenRouter.LegacyChatContentVideoType? Type463 { get; set; } + public global::OpenRouter.ChatContentAudioType? Type463 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoInput? Type464 { get; set; } + public global::OpenRouter.ChatContentAudio? Type464 { get; set; } /// /// /// - public global::OpenRouter.LegacyChatContentVideo? Type465 { get; set; } + public global::OpenRouter.LegacyChatContentVideoType? Type465 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideoType? Type466 { get; set; } + public global::OpenRouter.ChatContentVideoInput? Type466 { get; set; } /// /// /// - public global::OpenRouter.ChatContentVideo? Type467 { get; set; } + public global::OpenRouter.LegacyChatContentVideo? Type467 { get; set; } /// /// /// - public global::OpenRouter.ChatContentFileFile? Type468 { get; set; } + public global::OpenRouter.ChatContentVideoType? Type468 { get; set; } /// /// /// - public global::OpenRouter.ChatContentFileType? Type469 { get; set; } + public global::OpenRouter.ChatContentVideo? Type469 { get; set; } /// /// /// - public global::OpenRouter.ChatContentFile? Type470 { get; set; } + public global::OpenRouter.ChatContentFileFile? Type470 { get; set; } /// /// /// - public global::OpenRouter.ChatContentItems? Type471 { get; set; } + public global::OpenRouter.ChatContentFileType? Type471 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type472 { get; set; } + public global::OpenRouter.ChatContentFile? Type472 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageContent? Type473 { get; set; } + public global::OpenRouter.ChatContentItems? Type473 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessageRole? Type474 { get; set; } + public global::System.Collections.Generic.IList? Type474 { get; set; } /// /// /// - public global::OpenRouter.ChatUserMessage? Type475 { get; set; } + public global::OpenRouter.ChatUserMessageContent? Type475 { get; set; } /// /// /// - public global::OpenRouter.ChatDeveloperMessageContent? Type476 { get; set; } + public global::OpenRouter.ChatUserMessageRole? Type476 { get; set; } /// /// /// - public global::OpenRouter.ChatDeveloperMessageRole? Type477 { get; set; } + public global::OpenRouter.ChatUserMessage? Type477 { get; set; } /// /// /// - public global::OpenRouter.ChatDeveloperMessage? Type478 { get; set; } + public global::OpenRouter.ChatDeveloperMessageContent? Type478 { get; set; } /// /// /// - public global::OpenRouter.ChatAudioOutput? Type479 { get; set; } + public global::OpenRouter.ChatDeveloperMessageRole? Type479 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantMessageContent? Type480 { get; set; } + public global::OpenRouter.ChatDeveloperMessage? Type480 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type481 { get; set; } + public global::OpenRouter.ChatAudioOutput? Type481 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantImagesItems? Type482 { get; set; } + public global::OpenRouter.ChatAssistantMessageContent? Type482 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type483 { get; set; } + public global::OpenRouter.ChatAssistantImagesItemsImageUrl? Type483 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailSummaryType? Type484 { get; set; } + public global::OpenRouter.ChatAssistantImagesItems? Type484 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailSummary? Type485 { get; set; } + public global::System.Collections.Generic.IList? Type485 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailEncryptedType? Type486 { get; set; } + public global::OpenRouter.ReasoningDetailSummaryType? Type486 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailEncrypted? Type487 { get; set; } + public global::OpenRouter.ReasoningDetailSummary? Type487 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailTextType? Type488 { get; set; } + public global::OpenRouter.ReasoningDetailEncryptedType? Type488 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailText? Type489 { get; set; } + public global::OpenRouter.ReasoningDetailEncrypted? Type489 { get; set; } /// /// /// - public global::OpenRouter.ReasoningDetailUnion? Type490 { get; set; } + public global::OpenRouter.ReasoningDetailTextType? Type490 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type491 { get; set; } + public global::OpenRouter.ReasoningDetailText? Type491 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantMessageRole? Type492 { get; set; } + public global::OpenRouter.ReasoningDetailUnion? Type492 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallFunction? Type493 { get; set; } + public global::System.Collections.Generic.IList? Type493 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCallType? Type494 { get; set; } + public global::OpenRouter.ChatAssistantMessageRole? Type494 { get; set; } /// /// /// - public global::OpenRouter.ChatToolCall? Type495 { get; set; } + public global::OpenRouter.ChatToolCallFunction? Type495 { get; set; } /// /// /// - public global::OpenRouter.ChatAssistantMessage? Type496 { get; set; } + public global::OpenRouter.ChatToolCallType? Type496 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type497 { get; set; } + public global::OpenRouter.ChatToolCall? Type497 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageContent? Type498 { get; set; } + public global::OpenRouter.ChatAssistantMessage? Type498 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessageRole? Type499 { get; set; } + public global::System.Collections.Generic.IList? Type499 { get; set; } /// /// /// - public global::OpenRouter.ChatToolMessage? Type500 { get; set; } + public global::OpenRouter.ChatToolMessageContent? Type500 { get; set; } /// /// /// - public global::OpenRouter.ChatMessages? Type501 { get; set; } + public global::OpenRouter.ChatToolMessageRole? Type501 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestModalitiesItems? Type502 { get; set; } + public global::OpenRouter.ChatToolMessage? Type502 { get; set; } /// /// /// - public global::OpenRouter.ChatModelNamesItems? Type503 { get; set; } + public global::OpenRouter.ChatMessages? Type503 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type504 { get; set; } + public global::OpenRouter.ChatRequestModalitiesItems? Type504 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestPluginsItems? Type505 { get; set; } + public global::OpenRouter.ChatModelNamesItems? Type505 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoningEffort? Type506 { get; set; } + public global::System.Collections.Generic.IList? Type506 { get; set; } /// /// /// - public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type507 { get; set; } + public global::OpenRouter.ChatRequestPluginsItems? Type507 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestReasoning? Type508 { get; set; } + public global::OpenRouter.ChatRequestReasoningEffort? Type508 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type509 { get; set; } + public global::OpenRouter.ChatReasoningSummaryVerbosityEnum? Type509 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatTextConfigType? Type510 { get; set; } + public global::OpenRouter.ChatRequestReasoning? Type510 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatTextConfig? Type511 { get; set; } + public global::OpenRouter.OneOf? Type511 { get; set; } /// /// /// - public global::OpenRouter.ChatJsonSchemaConfig? Type512 { get; set; } + public global::OpenRouter.ChatFormatTextConfigType? Type512 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatJsonSchemaConfigType? Type513 { get; set; } + public global::OpenRouter.ChatFormatTextConfig? Type513 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatJsonSchemaConfig? Type514 { get; set; } + public global::OpenRouter.ChatJsonSchemaConfig? Type514 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatGrammarConfigType? Type515 { get; set; } + public global::OpenRouter.ChatFormatJsonSchemaConfigType? Type515 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatGrammarConfig? Type516 { get; set; } + public global::OpenRouter.ChatFormatJsonSchemaConfig? Type516 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatPythonConfigType? Type517 { get; set; } + public global::OpenRouter.ChatFormatGrammarConfigType? Type517 { get; set; } /// /// /// - public global::OpenRouter.ChatFormatPythonConfig? Type518 { get; set; } + public global::OpenRouter.ChatFormatGrammarConfig? Type518 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestResponseFormat? Type519 { get; set; } + public global::OpenRouter.ChatFormatPythonConfigType? Type519 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestServiceTier? Type520 { get; set; } + public global::OpenRouter.ChatFormatPythonConfig? Type520 { get; set; } /// /// /// - public global::OpenRouter.ChatRequestStop? Type521 { get; set; } + public global::OpenRouter.ChatRequestResponseFormat? Type521 { get; set; } /// /// /// - public global::OpenRouter.ChatStreamOptions? Type522 { get; set; } + public global::OpenRouter.ChatRequestServiceTier? Type522 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice0? Type523 { get; set; } + public global::OpenRouter.ChatRequestStop? Type523 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice1? Type524 { get; set; } + public global::OpenRouter.ChatStreamOptions? Type524 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice2? Type525 { get; set; } + public global::OpenRouter.ChatToolChoice0? Type525 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceFunction? Type526 { get; set; } + public global::OpenRouter.ChatToolChoice1? Type526 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoiceType? Type527 { get; set; } + public global::OpenRouter.ChatToolChoice2? Type527 { get; set; } /// /// /// - public global::OpenRouter.ChatNamedToolChoice? Type528 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceFunction? Type528 { get; set; } /// /// /// - public global::OpenRouter.ChatToolChoice? Type529 { get; set; } + public global::OpenRouter.ChatNamedToolChoiceType? Type529 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Function? Type530 { get; set; } + public global::OpenRouter.ChatNamedToolChoice? Type530 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionToolOneOf0Type? Type531 { get; set; } + public global::OpenRouter.ChatToolChoice? Type531 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool0? Type532 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Function? Type532 { get; set; } /// /// /// - public global::OpenRouter.SearchQualityLevel? Type533 { get; set; } + public global::OpenRouter.ChatFunctionToolOneOf0Type? Type533 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocationServerToolType? Type534 { get; set; } + public global::OpenRouter.ChatFunctionTool0? Type534 { get; set; } /// /// /// - public global::OpenRouter.WebSearchUserLocationServerTool? Type535 { get; set; } + public global::OpenRouter.SearchQualityLevel? Type535 { get; set; } /// /// /// - public global::OpenRouter.WebSearchConfig? Type536 { get; set; } + public global::OpenRouter.WebSearchUserLocationServerToolType? Type536 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerToolType? Type537 { get; set; } + public global::OpenRouter.WebSearchUserLocationServerTool? Type537 { get; set; } /// /// /// - public global::OpenRouter.OpenRouterWebSearchServerTool? Type538 { get; set; } + public global::OpenRouter.WebSearchConfig? Type538 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthandType? Type539 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerToolType? Type539 { get; set; } /// /// /// - public global::OpenRouter.ChatWebSearchShorthand? Type540 { get; set; } + public global::OpenRouter.OpenRouterWebSearchServerTool? Type540 { get; set; } /// /// /// - public global::OpenRouter.ChatFunctionTool? Type541 { get; set; } + public global::OpenRouter.ChatWebSearchShorthandType? Type541 { get; set; } /// /// /// - public global::OpenRouter.ChatRequest? Type542 { get; set; } + public global::OpenRouter.ChatWebSearchShorthand? Type542 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type543 { get; set; } + public global::OpenRouter.ChatFunctionTool? Type543 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type544 { get; set; } + public global::OpenRouter.ChatRequest? Type544 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type545 { get; set; } + public global::System.Collections.Generic.Dictionary? Type545 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type546 { get; set; } + public global::System.Collections.Generic.IList? Type546 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type547 { get; set; } + public global::System.Collections.Generic.IList? Type547 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type548 { get; set; } + public global::System.Collections.Generic.IList? Type548 { get; set; } /// /// /// - public global::OpenRouter.ChatFinishReasonEnum? Type549 { get; set; } + public global::OpenRouter.OneOf? Type549 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type550 { get; set; } + public global::System.Collections.Generic.IList? Type550 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprob? Type551 { get; set; } + public global::OpenRouter.ChatFinishReasonEnum? Type551 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type552 { get; set; } + public global::OpenRouter.ChatTokenLogprobTopLogprobsItems? Type552 { get; set; } /// /// /// - public global::OpenRouter.ChatTokenLogprobs? Type553 { get; set; } + public global::OpenRouter.ChatTokenLogprob? Type553 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type554 { get; set; } + public global::System.Collections.Generic.IList? Type554 { get; set; } /// /// /// - public global::OpenRouter.ChatChoice? Type555 { get; set; } + public global::OpenRouter.ChatTokenLogprobs? Type555 { get; set; } /// /// /// - public global::OpenRouter.ChatResultObject? Type556 { get; set; } + public global::System.Collections.Generic.IList? Type556 { get; set; } /// /// /// - public global::OpenRouter.ChatUsageCompletionTokensDetails? Type557 { get; set; } + public global::OpenRouter.ChatChoice? Type557 { get; set; } /// /// /// - public global::OpenRouter.ChatUsagePromptTokensDetails? Type558 { get; set; } + public global::OpenRouter.ChatResultObject? Type558 { get; set; } /// /// /// - public global::OpenRouter.ChatUsage? Type559 { get; set; } + public global::OpenRouter.ChatUsageCompletionTokensDetails? Type559 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type560 { get; set; } + public global::OpenRouter.ChatUsagePromptTokensDetails? Type560 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type561 { get; set; } + public global::OpenRouter.ChatUsage? Type561 { get; set; } /// /// /// - public global::OpenRouter.ChatResult? Type562 { get; set; } + public global::OpenRouter.OneOf? Type562 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type563 { get; set; } + public global::OpenRouter.OneOf? Type563 { get; set; } /// /// /// - public global::System.DateTimeOffset? Type564 { get; set; } + public global::OpenRouter.ChatResult? Type564 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type565 { get; set; } + public global::System.Collections.Generic.IList? Type565 { get; set; } /// /// /// - public global::OpenRouter.CreditsGetCreditsResponse200? Type566 { get; set; } + public global::System.DateTimeOffset? Type566 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type567 { get; set; } + public global::OpenRouter.CreditsGetResponsesContentApplicationJsonSchemaData? Type567 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type568 { get; set; } + public global::OpenRouter.CreditsGetCreditsResponse200? Type568 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type569 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaEncodingFormat? Type569 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type570 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf0Type? Type570 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type571 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems0? Type571 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type572 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1ImageUrl? Type572 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type573 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItemsOneOf1Type? Type573 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type574 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems1? Type574 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type575 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4ItemsContentItems? Type575 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type576 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInputOneOf4Items? Type576 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type577 { get; set; } + public global::System.Collections.Generic.IList? Type577 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type578 { get; set; } + public global::System.Collections.Generic.IList? Type578 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type579 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaInput? Type579 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type580 { get; set; } + public global::System.Collections.Generic.IList? Type580 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type581 { get; set; } + public global::System.Collections.Generic.IList>? Type581 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type582 { get; set; } + public global::OpenRouter.EmbeddingsPostRequestBodyContentApplicationJsonSchemaProvider? Type582 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type583 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsEmbedding? Type583 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type584 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItemsObject? Type584 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type585 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaDataItems? Type585 { get; set; } /// /// /// - public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type586 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaObject? Type586 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type587 { get; set; } + public global::OpenRouter.EmbeddingsPostResponsesContentApplicationJsonSchemaUsage? Type587 { get; set; } /// /// /// - public global::OpenRouter.InputModality? Type588 { get; set; } + public global::OpenRouter.EmbeddingsCreateEmbeddingsResponse200? Type588 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitectureInstructType? Type589 { get; set; } + public global::System.Collections.Generic.IList? Type589 { get; set; } /// /// /// - public global::OpenRouter.OutputModality? Type590 { get; set; } + public global::OpenRouter.InputModality? Type590 { get; set; } /// /// /// - public global::OpenRouter.ModelGroup? Type591 { get; set; } + public global::OpenRouter.ModelArchitectureInstructType? Type591 { get; set; } /// /// /// - public global::OpenRouter.ModelArchitecture? Type592 { get; set; } + public global::OpenRouter.OutputModality? Type592 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type593 { get; set; } + public global::OpenRouter.ModelGroup? Type593 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type594 { get; set; } + public global::OpenRouter.ModelArchitecture? Type594 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type595 { get; set; } + public global::System.Collections.Generic.IList? Type595 { get; set; } /// /// /// - public global::OpenRouter.DefaultParameters? Type596 { get; set; } + public global::OpenRouter.OneOf? Type596 { get; set; } /// /// /// - public global::OpenRouter.ModelLinks? Type597 { get; set; } + public global::System.Collections.Generic.IList? Type597 { get; set; } /// /// /// - public global::OpenRouter.PerRequestLimits? Type598 { get; set; } + public global::OpenRouter.DefaultParameters? Type598 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingAudio? Type599 { get; set; } + public global::OpenRouter.ModelLinks? Type599 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingAudioOutput? Type600 { get; set; } + public global::OpenRouter.PerRequestLimits? Type600 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingCompletion? Type601 { get; set; } + public global::OpenRouter.PublicPricingAudio? Type601 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingImage? Type602 { get; set; } + public global::OpenRouter.PublicPricingAudioOutput? Type602 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingImageOutput? Type603 { get; set; } + public global::OpenRouter.PublicPricingCompletion? Type603 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingImageToken? Type604 { get; set; } + public global::OpenRouter.PublicPricingImage? Type604 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingInputAudioCache? Type605 { get; set; } + public global::OpenRouter.PublicPricingImageOutput? Type605 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingInputCacheRead? Type606 { get; set; } + public global::OpenRouter.PublicPricingImageToken? Type606 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingInputCacheWrite? Type607 { get; set; } + public global::OpenRouter.PublicPricingInputAudioCache? Type607 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingInternalReasoning? Type608 { get; set; } + public global::OpenRouter.PublicPricingInputCacheRead? Type608 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingPrompt? Type609 { get; set; } + public global::OpenRouter.PublicPricingInputCacheWrite? Type609 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingRequest? Type610 { get; set; } + public global::OpenRouter.PublicPricingInternalReasoning? Type610 { get; set; } /// /// /// - public global::OpenRouter.PublicPricingWebSearch? Type611 { get; set; } + public global::OpenRouter.PublicPricingPrompt? Type611 { get; set; } /// /// /// - public global::OpenRouter.PublicPricing? Type612 { get; set; } + public global::OpenRouter.PublicPricingRequest? Type612 { get; set; } /// /// /// - public global::OpenRouter.Parameter? Type613 { get; set; } + public global::OpenRouter.PublicPricingWebSearch? Type613 { get; set; } /// /// /// - public global::OpenRouter.TopProviderInfo? Type614 { get; set; } + public global::OpenRouter.PublicPricing? Type614 { get; set; } /// /// /// - public global::OpenRouter.Model? Type615 { get; set; } + public global::OpenRouter.Parameter? Type615 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type616 { get; set; } + public global::OpenRouter.TopProviderInfo? Type616 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type617 { get; set; } + public global::OpenRouter.Model? Type617 { get; set; } /// /// /// - public global::OpenRouter.ModelsListResponse? Type618 { get; set; } + public global::System.Collections.Generic.IList? Type618 { get; set; } /// /// /// - public global::OpenRouter.PercentileStats? Type619 { get; set; } + public global::System.Collections.Generic.IList? Type619 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingAudio? Type620 { get; set; } + public global::OpenRouter.ModelsListResponse? Type620 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingAudioOutput? Type621 { get; set; } + public global::OpenRouter.PercentileStats? Type621 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingCompletion? Type622 { get; set; } + public global::OpenRouter.PublicEndpointPricingAudio? Type622 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingImage? Type623 { get; set; } + public global::OpenRouter.PublicEndpointPricingAudioOutput? Type623 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingImageOutput? Type624 { get; set; } + public global::OpenRouter.PublicEndpointPricingCompletion? Type624 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingImageToken? Type625 { get; set; } + public global::OpenRouter.PublicEndpointPricingImage? Type625 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingInputAudioCache? Type626 { get; set; } + public global::OpenRouter.PublicEndpointPricingImageOutput? Type626 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingInputCacheRead? Type627 { get; set; } + public global::OpenRouter.PublicEndpointPricingImageToken? Type627 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingInputCacheWrite? Type628 { get; set; } + public global::OpenRouter.PublicEndpointPricingInputAudioCache? Type628 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingInternalReasoning? Type629 { get; set; } + public global::OpenRouter.PublicEndpointPricingInputCacheRead? Type629 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingPrompt? Type630 { get; set; } + public global::OpenRouter.PublicEndpointPricingInputCacheWrite? Type630 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingRequest? Type631 { get; set; } + public global::OpenRouter.PublicEndpointPricingInternalReasoning? Type631 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricingWebSearch? Type632 { get; set; } + public global::OpenRouter.PublicEndpointPricingPrompt? Type632 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointPricing? Type633 { get; set; } + public global::OpenRouter.PublicEndpointPricingRequest? Type633 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointQuantization? Type634 { get; set; } + public global::OpenRouter.PublicEndpointPricingWebSearch? Type634 { get; set; } /// /// /// - public global::OpenRouter.EndpointStatus? Type635 { get; set; } + public global::OpenRouter.PublicEndpointPricing? Type635 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpointThroughputLast30M? Type636 { get; set; } + public global::OpenRouter.PublicEndpointQuantization? Type636 { get; set; } /// /// /// - public global::OpenRouter.PublicEndpoint? Type637 { get; set; } + public global::OpenRouter.EndpointStatus? Type637 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type638 { get; set; } + public global::OpenRouter.PublicEndpointThroughputLast30M? Type638 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type639 { get; set; } + public global::OpenRouter.PublicEndpoint? Type639 { get; set; } /// /// /// - public global::OpenRouter.InstructType2? Type640 { get; set; } + public global::OpenRouter.EndpointsListEndpointsZdrResponse200? Type640 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponseArchitectureTokenizer? Type641 { get; set; } + public global::System.Collections.Generic.IList? Type641 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponseArchitecture? Type642 { get; set; } + public global::OpenRouter.InstructType2? Type642 { get; set; } /// /// /// - public global::OpenRouter.ListEndpointsResponse? Type643 { get; set; } + public global::OpenRouter.ListEndpointsResponseArchitectureTokenizer? Type643 { get; set; } /// /// /// - public global::OpenRouter.EndpointsListEndpointsResponse200? Type644 { get; set; } + public global::OpenRouter.ListEndpointsResponseArchitecture? Type644 { get; set; } /// /// /// - public global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType? Type645 { get; set; } + public global::OpenRouter.ListEndpointsResponse? Type645 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponseProviderName? Type646 { get; set; } + public global::OpenRouter.EndpointsListEndpointsResponse200? Type646 { get; set; } /// /// /// - public global::OpenRouter.ProviderResponse? Type647 { get; set; } + public global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaDataApiType? Type647 { get; set; } /// /// /// - public global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData? Type648 { get; set; } + public global::OpenRouter.ProviderResponseProviderName? Type648 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type649 { get; set; } + public global::OpenRouter.ProviderResponse? Type649 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type650 { get; set; } + public global::OpenRouter.GenerationGetResponsesContentApplicationJsonSchemaData? Type650 { get; set; } /// /// /// - public global::OpenRouter.GenerationsGetGenerationResponse200? Type651 { get; set; } + public global::OpenRouter.OneOf? Type651 { get; set; } /// /// /// - public global::OpenRouter.GuardrailInterval? Type652 { get; set; } + public global::System.Collections.Generic.IList? Type652 { get; set; } /// /// /// - public global::OpenRouter.Guardrail? Type653 { get; set; } + public global::OpenRouter.GenerationsGetGenerationResponse200? Type653 { get; set; } /// /// /// - public global::System.Guid? Type654 { get; set; } + public global::OpenRouter.GuardrailInterval? Type654 { get; set; } /// /// /// - public global::OpenRouter.ListGuardrailsResponse? Type655 { get; set; } + public global::OpenRouter.Guardrail? Type655 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type656 { get; set; } + public global::System.Guid? Type656 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailRequest? Type657 { get; set; } + public global::OpenRouter.ListGuardrailsResponse? Type657 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponseData? Type658 { get; set; } + public global::System.Collections.Generic.IList? Type658 { get; set; } /// /// /// - public global::OpenRouter.CreateGuardrailResponse? Type659 { get; set; } + public global::OpenRouter.CreateGuardrailRequest? Type659 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponseData? Type660 { get; set; } + public global::OpenRouter.CreateGuardrailResponseData? Type660 { get; set; } /// /// /// - public global::OpenRouter.GetGuardrailResponse? Type661 { get; set; } + public global::OpenRouter.CreateGuardrailResponse? Type661 { get; set; } /// /// /// - public global::OpenRouter.DeleteGuardrailResponse? Type662 { get; set; } + public global::OpenRouter.GetGuardrailResponseData? Type662 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailRequest? Type663 { get; set; } + public global::OpenRouter.GetGuardrailResponse? Type663 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponseData? Type664 { get; set; } + public global::OpenRouter.DeleteGuardrailResponse? Type664 { get; set; } /// /// /// - public global::OpenRouter.UpdateGuardrailResponse? Type665 { get; set; } + public global::OpenRouter.UpdateGuardrailRequest? Type665 { get; set; } /// /// /// - public global::OpenRouter.KeyAssignment? Type666 { get; set; } + public global::OpenRouter.UpdateGuardrailResponseData? Type666 { get; set; } /// /// /// - public global::OpenRouter.ListKeyAssignmentsResponse? Type667 { get; set; } + public global::OpenRouter.UpdateGuardrailResponse? Type667 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type668 { get; set; } + public global::OpenRouter.KeyAssignment? Type668 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysRequest? Type669 { get; set; } + public global::OpenRouter.ListKeyAssignmentsResponse? Type669 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignKeysResponse? Type670 { get; set; } + public global::System.Collections.Generic.IList? Type670 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysRequest? Type671 { get; set; } + public global::OpenRouter.BulkAssignKeysRequest? Type671 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignKeysResponse? Type672 { get; set; } + public global::OpenRouter.BulkAssignKeysResponse? Type672 { get; set; } /// /// /// - public global::OpenRouter.MemberAssignment? Type673 { get; set; } + public global::OpenRouter.BulkUnassignKeysRequest? Type673 { get; set; } /// /// /// - public global::OpenRouter.ListMemberAssignmentsResponse? Type674 { get; set; } + public global::OpenRouter.BulkUnassignKeysResponse? Type674 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type675 { get; set; } + public global::OpenRouter.MemberAssignment? Type675 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersRequest? Type676 { get; set; } + public global::OpenRouter.ListMemberAssignmentsResponse? Type676 { get; set; } /// /// /// - public global::OpenRouter.BulkAssignMembersResponse? Type677 { get; set; } + public global::System.Collections.Generic.IList? Type677 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersRequest? Type678 { get; set; } + public global::OpenRouter.BulkAssignMembersRequest? Type678 { get; set; } /// /// /// - public global::OpenRouter.BulkUnassignMembersResponse? Type679 { get; set; } + public global::OpenRouter.BulkAssignMembersResponse? Type679 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type680 { get; set; } + public global::OpenRouter.BulkUnassignMembersRequest? Type680 { get; set; } /// /// /// - public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type681 { get; set; } + public global::OpenRouter.BulkUnassignMembersResponse? Type681 { get; set; } /// /// /// - public global::System.DateTime? Type682 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaDataRateLimit? Type682 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type683 { get; set; } + public global::OpenRouter.KeyGetResponsesContentApplicationJsonSchemaData? Type683 { get; set; } /// /// /// - public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type684 { get; set; } + public global::System.DateTime? Type684 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysListResponse200? Type685 { get; set; } + public global::OpenRouter.ApiKeysGetCurrentKeyResponse200? Type685 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type686 { get; set; } + public global::OpenRouter.KeysGetResponsesContentApplicationJsonSchemaDataItems? Type686 { get; set; } /// /// /// - public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type687 { get; set; } + public global::OpenRouter.ApiKeysListResponse200? Type687 { get; set; } /// /// /// - public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type688 { get; set; } + public global::System.Collections.Generic.IList? Type688 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysCreateKeysResponse201? Type689 { get; set; } + public global::OpenRouter.KeysPostRequestBodyContentApplicationJsonSchemaLimitReset? Type689 { get; set; } /// /// /// - public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type690 { get; set; } + public global::OpenRouter.KeysPostResponsesContentApplicationJsonSchemaData? Type690 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysGetKeyResponse200? Type691 { get; set; } + public global::OpenRouter.ApiKeysCreateKeysResponse201? Type691 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type692 { get; set; } + public global::OpenRouter.KeysHashGetResponsesContentApplicationJsonSchemaData? Type692 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type693 { get; set; } + public global::OpenRouter.ApiKeysGetKeyResponse200? Type693 { get; set; } /// /// /// - public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type694 { get; set; } + public global::OpenRouter.ApiKeysDeleteKeysResponse200? Type694 { get; set; } /// /// /// - public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type695 { get; set; } + public global::OpenRouter.KeysHashPatchRequestBodyContentApplicationJsonSchemaLimitReset? Type695 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheControlDirective? Type696 { get; set; } + public global::OpenRouter.KeysHashPatchResponsesContentApplicationJsonSchemaData? Type696 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type697 { get; set; } + public global::OpenRouter.ApiKeysUpdateKeysResponse200? Type697 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type698 { get; set; } + public global::OpenRouter.AnthropicCacheControlDirective? Type698 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type699 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeastType? Type699 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeepType? Type700 { get; set; } + public global::OpenRouter.AnthropicInputTokensClearAtLeast? Type700 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesKeep? Type701 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0ClearToolInputs? Type701 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensTriggerType? Type702 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeepType? Type702 { get; set; } /// /// /// - public global::OpenRouter.AnthropicInputTokensTrigger? Type703 { get; set; } + public global::OpenRouter.AnthropicToolUsesKeep? Type703 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesTriggerType? Type704 { get; set; } + public global::OpenRouter.AnthropicInputTokensTriggerType? Type704 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUsesTrigger? Type705 { get; set; } + public global::OpenRouter.AnthropicInputTokensTrigger? Type705 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type706 { get; set; } + public global::OpenRouter.AnthropicToolUsesTriggerType? Type706 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type707 { get; set; } + public global::OpenRouter.AnthropicToolUsesTrigger? Type707 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type708 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Trigger? Type708 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurnsType? Type709 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf0Type? Type709 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingTurns? Type710 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems0? Type710 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type711 { get; set; } + public global::OpenRouter.AnthropicThinkingTurnsType? Type711 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type712 { get; set; } + public global::OpenRouter.AnthropicThinkingTurns? Type712 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type713 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1KeepOneOf1Type? Type713 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type714 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep1? Type714 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type715 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep2? Type715 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type716 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Keep? Type716 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type717 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf1Type? Type717 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type718 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems1? Type718 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type719 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Trigger? Type719 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type720 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItemsOneOf2Type? Type720 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestContextManagement? Type721 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems2? Type721 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type722 { get; set; } + public global::OpenRouter.MessagesRequestContextManagementEditsItems? Type722 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocationParamType? Type723 { get; set; } + public global::OpenRouter.MessagesRequestContextManagement? Type723 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocationParam? Type724 { get; set; } + public global::System.Collections.Generic.IList? Type724 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocationParamType? Type725 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocationParamType? Type725 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocationParam? Type726 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocationParam? Type726 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocationParamType? Type727 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocationParamType? Type727 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocationParam? Type728 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocationParam? Type728 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationWebSearchResultLocationType? Type729 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocationParamType? Type729 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationWebSearchResultLocation? Type730 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocationParam? Type730 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationSearchResultLocationType? Type731 { get; set; } + public global::OpenRouter.AnthropicCitationWebSearchResultLocationType? Type731 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationSearchResultLocation? Type732 { get; set; } + public global::OpenRouter.AnthropicCitationWebSearchResultLocation? Type732 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type733 { get; set; } + public global::OpenRouter.AnthropicCitationSearchResultLocationType? Type733 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParamType? Type734 { get; set; } + public global::OpenRouter.AnthropicCitationSearchResultLocation? Type734 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockParam? Type735 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamCitationsItems? Type735 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type736 { get; set; } + public global::OpenRouter.AnthropicTextBlockParamType? Type736 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageMimeType? Type737 { get; set; } + public global::OpenRouter.AnthropicTextBlockParam? Type737 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64ImageSourceType? Type738 { get; set; } + public global::System.Collections.Generic.IList? Type738 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64ImageSource? Type739 { get; set; } + public global::OpenRouter.AnthropicImageMimeType? Type739 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlImageSourceType? Type740 { get; set; } + public global::OpenRouter.AnthropicBase64ImageSourceType? Type740 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlImageSource? Type741 { get; set; } + public global::OpenRouter.AnthropicBase64ImageSource? Type741 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamSource? Type742 { get; set; } + public global::OpenRouter.AnthropicUrlImageSourceType? Type742 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParamType? Type743 { get; set; } + public global::OpenRouter.AnthropicUrlImageSource? Type743 { get; set; } /// /// /// - public global::OpenRouter.AnthropicImageBlockParam? Type744 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamSource? Type744 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type745 { get; set; } + public global::OpenRouter.AnthropicImageBlockParamType? Type745 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type746 { get; set; } + public global::OpenRouter.AnthropicImageBlockParam? Type746 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSourceType? Type747 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamCitations? Type747 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBase64PdfSource? Type748 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceMediaType? Type748 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type749 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSourceType? Type749 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSourceType? Type750 { get; set; } + public global::OpenRouter.AnthropicBase64PdfSource? Type750 { get; set; } /// /// /// - public global::OpenRouter.AnthropicPlainTextSource? Type751 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceMediaType? Type751 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type752 { get; set; } + public global::OpenRouter.AnthropicPlainTextSourceType? Type752 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type753 { get; set; } + public global::OpenRouter.AnthropicPlainTextSource? Type753 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type754 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2ContentOneOf1Items? Type754 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type755 { get; set; } + public global::System.Collections.Generic.IList? Type755 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type756 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Content? Type756 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSourceType? Type757 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSourceOneOf2Type? Type757 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUrlPdfSource? Type758 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource2? Type758 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamSource? Type759 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSourceType? Type759 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParamType? Type760 { get; set; } + public global::OpenRouter.AnthropicUrlPdfSource? Type760 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockParam? Type761 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamSource? Type761 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type762 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParamType? Type762 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type763 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockParam? Type763 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type764 { get; set; } + public global::OpenRouter.OneOf? Type764 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type765 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf3Type? Type765 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type766 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items3? Type766 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type767 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1ItemsOneOf2Type? Type767 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParamType? Type768 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items2? Type768 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSearchResultBlockParam? Type769 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamCitations? Type769 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type770 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParamType? Type770 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type771 { get; set; } + public global::OpenRouter.AnthropicSearchResultBlockParam? Type771 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type772 { get; set; } + public global::System.Collections.Generic.IList? Type772 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type773 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4ContentOneOf1Items? Type773 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type774 { get; set; } + public global::System.Collections.Generic.IList? Type774 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type775 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Content? Type775 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type776 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf4Type? Type776 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type777 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items4? Type777 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type778 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf5Type? Type778 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type779 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items5? Type779 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolName? Type780 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf6Type? Type780 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type781 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items6? Type781 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type782 { get; set; } + public global::OpenRouter.AnthropicServerToolName? Type782 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type783 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf7Type? Type783 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type784 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items7? Type784 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type785 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParamType? Type785 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type786 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultBlockParam? Type786 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type787 { get; set; } + public global::System.Collections.Generic.IList? Type787 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type788 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1ErrorCode? Type788 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type789 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8ContentOneOf1Type? Type789 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type790 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content1? Type790 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type791 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Content? Type791 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type792 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf8Type? Type792 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type793 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items8? Type793 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type794 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1ItemsOneOf10Type? Type794 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type795 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items10? Type795 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamContent? Type796 { get; set; } + public global::OpenRouter.MessagesMessageParamContentOneOf1Items? Type796 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParamRole? Type797 { get; set; } + public global::System.Collections.Generic.IList? Type797 { get; set; } /// /// /// - public global::OpenRouter.MessagesMessageParam? Type798 { get; set; } + public global::OpenRouter.MessagesMessageParamContent? Type798 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestMetadata? Type799 { get; set; } + public global::OpenRouter.MessagesMessageParamRole? Type799 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigEffort? Type800 { get; set; } + public global::OpenRouter.MessagesMessageParam? Type800 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormatType? Type801 { get; set; } + public global::OpenRouter.MessagesRequestMetadata? Type801 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfigFormat? Type802 { get; set; } + public global::OpenRouter.MessagesOutputConfigEffort? Type802 { get; set; } /// /// /// - public global::OpenRouter.MessagesOutputConfig? Type803 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormatType? Type803 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type804 { get; set; } + public global::OpenRouter.MessagesOutputConfigFormat? Type804 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type805 { get; set; } + public global::OpenRouter.MessagesOutputConfig? Type805 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestPluginsItems? Type806 { get; set; } + public global::OpenRouter.OneOf? Type806 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestServiceTier? Type807 { get; set; } + public global::OpenRouter.OneOf? Type807 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestSpeed? Type808 { get; set; } + public global::OpenRouter.MessagesRequestPluginsItems? Type808 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestSystem? Type809 { get; set; } + public global::OpenRouter.MessagesRequestServiceTier? Type809 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type810 { get; set; } + public global::OpenRouter.MessagesRequestSpeed? Type810 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking0? Type811 { get; set; } + public global::OpenRouter.MessagesRequestSystem? Type811 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type812 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf0Type? Type812 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking1? Type813 { get; set; } + public global::OpenRouter.MessagesRequestThinking0? Type813 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type814 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf1Type? Type814 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking2? Type815 { get; set; } + public global::OpenRouter.MessagesRequestThinking1? Type815 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestThinking? Type816 { get; set; } + public global::OpenRouter.MessagesRequestThinkingOneOf2Type? Type816 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type817 { get; set; } + public global::OpenRouter.MessagesRequestThinking2? Type817 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice0? Type818 { get; set; } + public global::OpenRouter.MessagesRequestThinking? Type818 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type819 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf0Type? Type819 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice1? Type820 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice0? Type820 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type821 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf1Type? Type821 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice2? Type822 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice1? Type822 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type823 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf2Type? Type823 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice3? Type824 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice2? Type824 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolChoice? Type825 { get; set; } + public global::OpenRouter.MessagesRequestToolChoiceOneOf3Type? Type825 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type826 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice3? Type826 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type827 { get; set; } + public global::OpenRouter.MessagesRequestToolChoice? Type827 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems0? Type828 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0InputSchema? Type828 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type829 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf0Type? Type829 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type830 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems0? Type830 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems1? Type831 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Name? Type831 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type832 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf1Type? Type832 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type833 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems1? Type833 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems2? Type834 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Name? Type834 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type835 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf2Type? Type835 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type836 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems2? Type836 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type837 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Name? Type837 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type838 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf3Type? Type838 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems3? Type839 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocationType? Type839 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4AllowedCallersItems? Type840 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolUserLocation? Type840 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type841 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems3? Type841 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type842 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4AllowedCallersItems? Type842 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems4? Type843 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Name? Type843 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type844 { get; set; } + public global::OpenRouter.MessagesRequestToolsItemsOneOf4Type? Type844 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequestToolsItems? Type845 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems4? Type845 { get; set; } /// /// /// - public global::OpenRouter.MessagesRequest? Type846 { get; set; } + public global::System.Collections.Generic.IList? Type846 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type847 { get; set; } + public global::OpenRouter.MessagesRequestToolsItems? Type847 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type848 { get; set; } + public global::OpenRouter.MessagesRequest? Type848 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type849 { get; set; } + public global::OpenRouter.OneOf? Type849 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type850 { get; set; } + public global::System.Collections.Generic.IList? Type850 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainer? Type851 { get; set; } + public global::System.Collections.Generic.IList? Type851 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocationType? Type852 { get; set; } + public global::System.Collections.Generic.IList? Type852 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationCharLocation? Type853 { get; set; } + public global::OpenRouter.AnthropicContainer? Type853 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocationType? Type854 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocationType? Type854 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationPageLocation? Type855 { get; set; } + public global::OpenRouter.AnthropicCitationCharLocation? Type855 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocationType? Type856 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocationType? Type856 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationContentBlockLocation? Type857 { get; set; } + public global::OpenRouter.AnthropicCitationPageLocation? Type857 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextCitation? Type858 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocationType? Type858 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlockType? Type859 { get; set; } + public global::OpenRouter.AnthropicCitationContentBlockLocation? Type859 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextBlock? Type860 { get; set; } + public global::OpenRouter.AnthropicTextCitation? Type860 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type861 { get; set; } + public global::OpenRouter.AnthropicTextBlockType? Type861 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDirectCallerType? Type862 { get; set; } + public global::OpenRouter.AnthropicTextBlock? Type862 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDirectCaller? Type863 { get; set; } + public global::System.Collections.Generic.IList? Type863 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20250825CallerType? Type864 { get; set; } + public global::OpenRouter.AnthropicDirectCallerType? Type864 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20250825Caller? Type865 { get; set; } + public global::OpenRouter.AnthropicDirectCaller? Type865 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20260120CallerType? Type866 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20250825CallerType? Type866 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecution20260120Caller? Type867 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20250825Caller? Type867 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCaller? Type868 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20260120CallerType? Type868 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUseBlockType? Type869 { get; set; } + public global::OpenRouter.AnthropicCodeExecution20260120Caller? Type869 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolUseBlock? Type870 { get; set; } + public global::OpenRouter.AnthropicCaller? Type870 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingBlockType? Type871 { get; set; } + public global::OpenRouter.AnthropicToolUseBlockType? Type871 { get; set; } /// /// /// - public global::OpenRouter.AnthropicThinkingBlock? Type872 { get; set; } + public global::OpenRouter.AnthropicToolUseBlock? Type872 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRedactedThinkingBlockType? Type873 { get; set; } + public global::OpenRouter.AnthropicThinkingBlockType? Type873 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRedactedThinkingBlock? Type874 { get; set; } + public global::OpenRouter.AnthropicThinkingBlock? Type874 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUseBlockType? Type875 { get; set; } + public global::OpenRouter.AnthropicRedactedThinkingBlockType? Type875 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUseBlock? Type876 { get; set; } + public global::OpenRouter.AnthropicRedactedThinkingBlock? Type876 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResultType? Type877 { get; set; } + public global::OpenRouter.AnthropicServerToolUseBlockType? Type877 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchResult? Type878 { get; set; } + public global::OpenRouter.AnthropicServerToolUseBlock? Type878 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type879 { get; set; } + public global::OpenRouter.AnthropicWebSearchResultType? Type879 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type880 { get; set; } + public global::OpenRouter.AnthropicWebSearchResult? Type880 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type881 { get; set; } + public global::System.Collections.Generic.IList? Type881 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultError? Type882 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorErrorCode? Type882 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultContent? Type883 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultErrorType? Type883 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResultType? Type884 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultError? Type884 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebSearchToolResult? Type885 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultContent? Type885 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type886 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResultType? Type886 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type887 { get; set; } + public global::OpenRouter.AnthropicWebSearchToolResult? Type887 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultError? Type888 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorErrorCode? Type888 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCitationsConfig? Type889 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultErrorType? Type889 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockSource? Type890 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultError? Type890 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlockType? Type891 { get; set; } + public global::OpenRouter.AnthropicCitationsConfig? Type891 { get; set; } /// /// /// - public global::OpenRouter.AnthropicDocumentBlock? Type892 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockSource? Type892 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchBlockType? Type893 { get; set; } + public global::OpenRouter.AnthropicDocumentBlockType? Type893 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchBlock? Type894 { get; set; } + public global::OpenRouter.AnthropicDocumentBlock? Type894 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchContent? Type895 { get; set; } + public global::OpenRouter.AnthropicWebFetchBlockType? Type895 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResultType? Type896 { get; set; } + public global::OpenRouter.AnthropicWebFetchBlock? Type896 { get; set; } /// /// /// - public global::OpenRouter.AnthropicWebFetchToolResult? Type897 { get; set; } + public global::OpenRouter.AnthropicWebFetchContent? Type897 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolErrorCode? Type898 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResultType? Type898 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type899 { get; set; } + public global::OpenRouter.AnthropicWebFetchToolResult? Type899 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultError? Type900 { get; set; } + public global::OpenRouter.AnthropicServerToolErrorCode? Type900 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutputType? Type901 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultErrorType? Type901 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionOutput? Type902 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultError? Type902 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResultType? Type903 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutputType? Type903 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionResult? Type904 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionOutput? Type904 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type905 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResultType? Type905 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type906 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionResult? Type906 { get; set; } /// /// /// - public global::OpenRouter.AnthropicEncryptedCodeExecutionResult? Type907 { get; set; } + public global::System.Collections.Generic.IList? Type907 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionContent? Type908 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResultType? Type908 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResultType? Type909 { get; set; } + public global::OpenRouter.AnthropicEncryptedCodeExecutionResult? Type909 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCodeExecutionToolResult? Type910 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionContent? Type910 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type911 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResultType? Type911 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type912 { get; set; } + public global::OpenRouter.AnthropicCodeExecutionToolResult? Type912 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultError? Type913 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorErrorCode? Type913 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type914 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultErrorType? Type914 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type915 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultError? Type915 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type916 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutputType? Type916 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionResult? Type917 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionOutput? Type917 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type918 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResultType? Type918 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionContent? Type919 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionResult? Type919 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResultType? Type920 { get; set; } + public global::System.Collections.Generic.IList? Type920 { get; set; } /// /// /// - public global::OpenRouter.AnthropicBashCodeExecutionToolResult? Type921 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionContent? Type921 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type922 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResultType? Type922 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type923 { get; set; } + public global::OpenRouter.AnthropicBashCodeExecutionToolResult? Type923 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultError? Type924 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorErrorCode? Type924 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type925 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultErrorType? Type925 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type926 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultError? Type926 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResult? Type927 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultFileType? Type927 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type928 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResultType? Type928 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResult? Type929 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionViewResult? Type929 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type930 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResultType? Type930 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResult? Type931 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionCreateResult? Type931 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type932 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResultType? Type932 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultType? Type933 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionStrReplaceResult? Type933 { get; set; } /// /// /// - public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResult? Type934 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionContent? Type934 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultErrorType? Type935 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResultType? Type935 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultError? Type936 { get; set; } + public global::OpenRouter.AnthropicTextEditorCodeExecutionToolResult? Type936 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReferenceType? Type937 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultErrorType? Type937 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolReference? Type938 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultError? Type938 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResultType? Type939 { get; set; } + public global::OpenRouter.AnthropicToolReferenceType? Type939 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchResult? Type940 { get; set; } + public global::OpenRouter.AnthropicToolReference? Type940 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type941 { get; set; } + public global::OpenRouter.AnthropicToolSearchResultType? Type941 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchContent? Type942 { get; set; } + public global::OpenRouter.AnthropicToolSearchResult? Type942 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchToolResultType? Type943 { get; set; } + public global::System.Collections.Generic.IList? Type943 { get; set; } /// /// /// - public global::OpenRouter.AnthropicToolSearchToolResult? Type944 { get; set; } + public global::OpenRouter.AnthropicToolSearchContent? Type944 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainerUploadType? Type945 { get; set; } + public global::OpenRouter.AnthropicToolSearchToolResultType? Type945 { get; set; } /// /// /// - public global::OpenRouter.AnthropicContainerUpload? Type946 { get; set; } + public global::OpenRouter.AnthropicToolSearchToolResult? Type946 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionBlockType? Type947 { get; set; } + public global::OpenRouter.AnthropicContainerUploadType? Type947 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionBlock? Type948 { get; set; } + public global::OpenRouter.AnthropicContainerUpload? Type948 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicContentBlock? Type949 { get; set; } + public global::OpenRouter.AnthropicCompactionBlockType? Type949 { get; set; } /// /// /// - public global::OpenRouter.BaseMessagesResultRole? Type950 { get; set; } + public global::OpenRouter.AnthropicCompactionBlock? Type950 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type951 { get; set; } + public global::OpenRouter.ORAnthropicContentBlock? Type951 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetailsType? Type952 { get; set; } + public global::OpenRouter.BaseMessagesResultRole? Type952 { get; set; } /// /// /// - public global::OpenRouter.AnthropicRefusalStopDetails? Type953 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsCategory? Type953 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type954 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetailsType? Type954 { get; set; } /// /// /// - public global::OpenRouter.ORAnthropicStopReason? Type955 { get; set; } + public global::OpenRouter.AnthropicRefusalStopDetails? Type955 { get; set; } /// /// /// - public global::OpenRouter.BaseMessagesResultType? Type956 { get; set; } + public global::OpenRouter.OneOf? Type956 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCacheCreation? Type957 { get; set; } + public global::OpenRouter.ORAnthropicStopReason? Type957 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServerToolUsage? Type958 { get; set; } + public global::OpenRouter.BaseMessagesResultType? Type958 { get; set; } /// /// /// - public global::OpenRouter.AnthropicServiceTier? Type959 { get; set; } + public global::OpenRouter.AnthropicCacheCreation? Type959 { get; set; } /// /// /// - public global::OpenRouter.AnthropicIterationCacheCreation? Type960 { get; set; } + public global::OpenRouter.AnthropicServerToolUsage? Type960 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIterationType? Type961 { get; set; } + public global::OpenRouter.AnthropicServiceTier? Type961 { get; set; } /// /// /// - public global::OpenRouter.AnthropicCompactionUsageIteration? Type962 { get; set; } + public global::OpenRouter.AnthropicIterationCacheCreation? Type962 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIterationType? Type963 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIterationType? Type963 { get; set; } /// /// /// - public global::OpenRouter.AnthropicMessageUsageIteration? Type964 { get; set; } + public global::OpenRouter.AnthropicCompactionUsageIteration? Type964 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUnknownUsageIteration? Type965 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIterationType? Type965 { get; set; } /// /// /// - public global::OpenRouter.AnthropicUsageIteration? Type966 { get; set; } + public global::OpenRouter.AnthropicMessageUsageIteration? Type966 { get; set; } /// /// /// - public global::OpenRouter.AnthropicSpeed? Type967 { get; set; } + public global::OpenRouter.AnthropicUnknownUsageIteration? Type967 { get; set; } /// /// /// - public global::OpenRouter.BaseMessagesResultUsage? Type968 { get; set; } + public global::OpenRouter.AnthropicUsageIteration? Type968 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type969 { get; set; } + public global::OpenRouter.AnthropicSpeed? Type969 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsageCostDetails? Type970 { get; set; } + public global::OpenRouter.BaseMessagesResultUsage? Type970 { get; set; } /// /// /// - public global::OpenRouter.MessagesResultUsage? Type971 { get; set; } + public global::System.Collections.Generic.IList? Type971 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type972 { get; set; } + public global::OpenRouter.MessagesResultUsageCostDetails? Type972 { get; set; } /// /// /// - public global::OpenRouter.MessagesResult? Type973 { get; set; } + public global::OpenRouter.MessagesResultUsage? Type973 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type974 { get; set; } + public global::OpenRouter.OneOf? Type974 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorDetail? Type975 { get; set; } + public global::OpenRouter.MessagesResult? Type975 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponseType? Type976 { get; set; } + public global::System.Collections.Generic.IList? Type976 { get; set; } /// /// /// - public global::OpenRouter.MessagesErrorResponse? Type977 { get; set; } + public global::OpenRouter.MessagesErrorDetail? Type977 { get; set; } /// /// /// - public global::OpenRouter.ModelsGetParametersCategory? Type978 { get; set; } + public global::OpenRouter.MessagesErrorResponseType? Type978 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponseData? Type979 { get; set; } + public global::OpenRouter.MessagesErrorResponse? Type979 { get; set; } /// /// /// - public global::OpenRouter.ModelsCountResponse? Type980 { get; set; } + public global::OpenRouter.ModelsGetParametersCategory? Type980 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type981 { get; set; } + public global::OpenRouter.ModelsCountResponseData? Type981 { get; set; } /// /// /// - public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type982 { get; set; } + public global::OpenRouter.ModelsCountResponse? Type982 { get; set; } /// /// /// - public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type983 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItemsRole? Type983 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type984 { get; set; } + public global::OpenRouter.OrganizationMembersGetResponsesContentApplicationJsonSchemaDataItems? Type984 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type985 { get; set; } + public global::OpenRouter.OrganizationListOrganizationMembersResponse200? Type985 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type986 { get; set; } + public global::System.Collections.Generic.IList? Type986 { get; set; } /// /// /// - public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type987 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsDatacentersItems? Type987 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type988 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItemsHeadquarters? Type988 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type989 { get; set; } + public global::OpenRouter.ProvidersGetResponsesContentApplicationJsonSchemaDataItems? Type989 { get; set; } /// /// /// - public global::OpenRouter.ProvidersListProvidersResponse200? Type990 { get; set; } + public global::System.Collections.Generic.IList? Type990 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type991 { get; set; } + public global::OpenRouter.OneOf? Type991 { get; set; } /// /// /// - public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type992 { get; set; } + public global::OpenRouter.ProvidersListProvidersResponse200? Type992 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type993 { get; set; } + public global::System.Collections.Generic.IList? Type993 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type994 { get; set; } + public global::OpenRouter.RerankPostRequestBodyContentApplicationJsonSchemaProvider? Type994 { get; set; } /// /// /// - public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type995 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItemsDocument? Type995 { get; set; } /// /// /// - public global::OpenRouter.RerankCreateRerankResponse200? Type996 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaResultsItems? Type996 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type997 { get; set; } + public global::OpenRouter.RerankPostResponsesContentApplicationJsonSchemaUsage? Type997 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestAspectRatio? Type998 { get; set; } + public global::OpenRouter.RerankCreateRerankResponse200? Type998 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageImageUrl? Type999 { get; set; } + public global::System.Collections.Generic.IList? Type999 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImageType? Type1000 { get; set; } + public global::OpenRouter.VideoGenerationRequestAspectRatio? Type1000 { get; set; } /// /// /// - public global::OpenRouter.FrameImageFrameType? Type1001 { get; set; } + public global::OpenRouter.ContentPartImageImageUrl? Type1001 { get; set; } /// /// /// - public global::OpenRouter.FrameImage? Type1002 { get; set; } + public global::OpenRouter.ContentPartImageType? Type1002 { get; set; } /// /// /// - public global::OpenRouter.ContentPartImage? Type1003 { get; set; } + public global::OpenRouter.FrameImageFrameType? Type1003 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1004 { get; set; } + public global::OpenRouter.FrameImage? Type1004 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestProvider? Type1005 { get; set; } + public global::OpenRouter.ContentPartImage? Type1005 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequestResolution? Type1006 { get; set; } + public global::OpenRouter.VideoGenerationRequestProviderOptions? Type1006 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationRequest? Type1007 { get; set; } + public global::OpenRouter.VideoGenerationRequestProvider? Type1007 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1008 { get; set; } + public global::OpenRouter.VideoGenerationRequestResolution? Type1008 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1009 { get; set; } + public global::OpenRouter.VideoGenerationRequest? Type1009 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponseStatus? Type1010 { get; set; } + public global::System.Collections.Generic.IList? Type1010 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationUsage? Type1011 { get; set; } + public global::System.Collections.Generic.IList? Type1011 { get; set; } /// /// /// - public global::OpenRouter.VideoGenerationResponse? Type1012 { get; set; } + public global::OpenRouter.VideoGenerationResponseStatus? Type1012 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1013 { get; set; } + public global::OpenRouter.VideoGenerationUsage? Type1013 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1014 { get; set; } + public global::OpenRouter.VideoGenerationResponse? Type1014 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1015 { get; set; } + public global::OpenRouter.VideoModelSupportedAspectRatiosItems? Type1015 { get; set; } /// /// /// - public global::OpenRouter.VideoModelSupportedSizesItems? Type1016 { get; set; } + public global::OpenRouter.VideoModelSupportedFrameImagesItems? Type1016 { get; set; } /// /// /// - public global::OpenRouter.VideoModel? Type1017 { get; set; } + public global::OpenRouter.VideoModelSupportedResolutionsItems? Type1017 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1018 { get; set; } + public global::OpenRouter.VideoModelSupportedSizesItems? Type1018 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1019 { get; set; } + public global::OpenRouter.VideoModel? Type1019 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1020 { get; set; } + public global::System.Collections.Generic.IList? Type1020 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1021 { get; set; } + public global::System.Collections.Generic.IList? Type1021 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1022 { get; set; } + public global::System.Collections.Generic.IList? Type1022 { get; set; } /// /// /// - public global::OpenRouter.VideoModelsListResponse? Type1023 { get; set; } + public global::System.Collections.Generic.IList? Type1023 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type1024 { get; set; } + public global::System.Collections.Generic.IList? Type1024 { get; set; } /// /// /// - public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1025 { get; set; } + public global::OpenRouter.VideoModelsListResponse? Type1025 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1026 { get; set; } + public global::System.Collections.Generic.IList? Type1026 { get; set; } /// /// /// - public global::OpenRouter.CreateAuthKeysCodeRequest? Type1027 { get; set; } + public global::OpenRouter.ExchangeAuthCodeForApiKeyRequest? Type1027 { get; set; } /// /// /// - public global::OpenRouter.CreateEmbeddingsRequest? Type1028 { get; set; } + public global::OpenRouter.OneOf? Type1028 { get; set; } /// /// /// - public global::OpenRouter.CreateKeysRequest? Type1029 { get; set; } + public global::OpenRouter.CreateAuthKeysCodeRequest? Type1029 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1030 { get; set; } + public global::OpenRouter.CreateEmbeddingsRequest? Type1030 { get; set; } /// /// /// - public global::OpenRouter.UpdateKeysRequest? Type1031 { get; set; } + public global::OpenRouter.CreateKeysRequest? Type1031 { get; set; } /// /// /// - public global::OpenRouter.OneOf? Type1032 { get; set; } + public global::OpenRouter.OneOf? Type1032 { get; set; } /// /// /// - public global::OpenRouter.CreateRerankRequest? Type1033 { get; set; } + public global::OpenRouter.UpdateKeysRequest? Type1033 { get; set; } /// /// /// - public byte[]? Type1034 { get; set; } + public global::OpenRouter.OneOf? Type1034 { get; set; } + /// + /// + /// + public global::OpenRouter.CreateRerankRequest? Type1035 { get; set; } + /// + /// + /// + public byte[]? Type1036 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType0 { get; set; } + public global::System.Collections.Generic.List? ListType0 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType1 { get; set; } + public global::System.Collections.Generic.List? ListType1 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType2 { get; set; } + public global::System.Collections.Generic.List? ListType2 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType3 { get; set; } + public global::System.Collections.Generic.List? ListType3 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType4 { get; set; } + public global::System.Collections.Generic.List? ListType4 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType5 { get; set; } + public global::System.Collections.Generic.List? ListType5 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType6 { get; set; } + public global::System.Collections.Generic.List? ListType6 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType7 { get; set; } + public global::System.Collections.Generic.List? ListType7 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType8 { get; set; } + public global::System.Collections.Generic.List? ListType8 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType9 { get; set; } + public global::System.Collections.Generic.List? ListType9 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType10 { get; set; } + public global::System.Collections.Generic.List? ListType10 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType11 { get; set; } + public global::System.Collections.Generic.List? ListType11 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType12 { get; set; } + public global::System.Collections.Generic.List? ListType12 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType13 { get; set; } + public global::System.Collections.Generic.List? ListType13 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType14 { get; set; } + public global::System.Collections.Generic.List? ListType14 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType15 { get; set; } + public global::System.Collections.Generic.List? ListType15 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType16 { get; set; } + public global::System.Collections.Generic.List? ListType16 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType17 { get; set; } + public global::System.Collections.Generic.List? ListType17 { get; set; } /// /// /// - public global::System.Collections.Generic.List? ListType18 { get; set; } + public global::System.Collections.Generic.List? ListType18 { get; set; } /// /// /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatFunctionTool.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatFunctionTool.g.cs index e7c2adee..933fdc01 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatFunctionTool.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatFunctionTool.g.cs @@ -43,6 +43,23 @@ namespace OpenRouter #endif public bool IsDatetimeServerTool => DatetimeServerTool != null; + /// + /// OpenRouter built-in server tool: generates images from text prompts using an image generation model + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ImageGenerationServerToolOpenRouter? ImageGenerationServerToolOpenRouter { get; init; } +#else + public global::OpenRouter.ImageGenerationServerToolOpenRouter? ImageGenerationServerToolOpenRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageGenerationServerToolOpenRouter))] +#endif + public bool IsImageGenerationServerToolOpenRouter => ImageGenerationServerToolOpenRouter != null; + /// /// OpenRouter built-in server tool: searches and filters AI models available on OpenRouter /// @@ -129,6 +146,24 @@ public ChatFunctionTool(global::OpenRouter.DatetimeServerTool? value) DatetimeServerTool = value; } + /// + /// + /// + public static implicit operator ChatFunctionTool(global::OpenRouter.ImageGenerationServerToolOpenRouter value) => new ChatFunctionTool((global::OpenRouter.ImageGenerationServerToolOpenRouter?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ImageGenerationServerToolOpenRouter?(ChatFunctionTool @this) => @this.ImageGenerationServerToolOpenRouter; + + /// + /// + /// + public ChatFunctionTool(global::OpenRouter.ImageGenerationServerToolOpenRouter? value) + { + ImageGenerationServerToolOpenRouter = value; + } + /// /// /// @@ -189,6 +224,7 @@ public ChatFunctionTool(global::OpenRouter.ChatWebSearchShorthand? value) public ChatFunctionTool( global::OpenRouter.ChatFunctionTool0? chatFunctionTool0, global::OpenRouter.DatetimeServerTool? datetimeServerTool, + global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter, global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool, global::OpenRouter.OpenRouterWebSearchServerTool? openRouterWebSearchServerTool, global::OpenRouter.ChatWebSearchShorthand? chatWebSearchShorthand @@ -196,6 +232,7 @@ public ChatFunctionTool( { ChatFunctionTool0 = chatFunctionTool0; DatetimeServerTool = datetimeServerTool; + ImageGenerationServerToolOpenRouter = imageGenerationServerToolOpenRouter; ChatSearchModelsServerTool = chatSearchModelsServerTool; OpenRouterWebSearchServerTool = openRouterWebSearchServerTool; ChatWebSearchShorthand = chatWebSearchShorthand; @@ -208,6 +245,7 @@ public ChatFunctionTool( ChatWebSearchShorthand as object ?? OpenRouterWebSearchServerTool as object ?? ChatSearchModelsServerTool as object ?? + ImageGenerationServerToolOpenRouter as object ?? DatetimeServerTool as object ?? ChatFunctionTool0 as object ; @@ -218,6 +256,7 @@ ChatFunctionTool0 as object public override string? ToString() => ChatFunctionTool0?.ToString() ?? DatetimeServerTool?.ToString() ?? + ImageGenerationServerToolOpenRouter?.ToString() ?? ChatSearchModelsServerTool?.ToString() ?? OpenRouterWebSearchServerTool?.ToString() ?? ChatWebSearchShorthand?.ToString() @@ -228,7 +267,7 @@ ChatFunctionTool0 as object /// public bool Validate() { - return IsChatFunctionTool0 && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsDatetimeServerTool && IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool && IsChatWebSearchShorthand; + return IsChatFunctionTool0 && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsDatetimeServerTool && IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && IsOpenRouterWebSearchServerTool && !IsChatWebSearchShorthand || !IsChatFunctionTool0 && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool && IsChatWebSearchShorthand; } /// @@ -237,6 +276,7 @@ public bool Validate() public TResult? Match( global::System.Func? chatFunctionTool0 = null, global::System.Func? datetimeServerTool = null, + global::System.Func? imageGenerationServerToolOpenRouter = null, global::System.Func? chatSearchModelsServerTool = null, global::System.Func? openRouterWebSearchServerTool = null, global::System.Func? chatWebSearchShorthand = null, @@ -255,6 +295,10 @@ public bool Validate() { return datetimeServerTool(DatetimeServerTool!); } + else if (IsImageGenerationServerToolOpenRouter && imageGenerationServerToolOpenRouter != null) + { + return imageGenerationServerToolOpenRouter(ImageGenerationServerToolOpenRouter!); + } else if (IsChatSearchModelsServerTool && chatSearchModelsServerTool != null) { return chatSearchModelsServerTool(ChatSearchModelsServerTool!); @@ -277,6 +321,7 @@ public bool Validate() public void Match( global::System.Action? chatFunctionTool0 = null, global::System.Action? datetimeServerTool = null, + global::System.Action? imageGenerationServerToolOpenRouter = null, global::System.Action? chatSearchModelsServerTool = null, global::System.Action? openRouterWebSearchServerTool = null, global::System.Action? chatWebSearchShorthand = null, @@ -295,6 +340,10 @@ public void Match( { datetimeServerTool?.Invoke(DatetimeServerTool!); } + else if (IsImageGenerationServerToolOpenRouter) + { + imageGenerationServerToolOpenRouter?.Invoke(ImageGenerationServerToolOpenRouter!); + } else if (IsChatSearchModelsServerTool) { chatSearchModelsServerTool?.Invoke(ChatSearchModelsServerTool!); @@ -320,6 +369,8 @@ public override int GetHashCode() typeof(global::OpenRouter.ChatFunctionTool0), DatetimeServerTool, typeof(global::OpenRouter.DatetimeServerTool), + ImageGenerationServerToolOpenRouter, + typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), ChatSearchModelsServerTool, typeof(global::OpenRouter.ChatSearchModelsServerTool), OpenRouterWebSearchServerTool, @@ -344,6 +395,7 @@ public bool Equals(ChatFunctionTool other) return global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatFunctionTool0, other.ChatFunctionTool0) && global::System.Collections.Generic.EqualityComparer.Default.Equals(DatetimeServerTool, other.DatetimeServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationServerToolOpenRouter, other.ImageGenerationServerToolOpenRouter) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatSearchModelsServerTool, other.ChatSearchModelsServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenRouterWebSearchServerTool, other.OpenRouterWebSearchServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatWebSearchShorthand, other.ChatWebSearchShorthand) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequest.g.cs index 12262379..693084cb 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequest.g.cs @@ -27,10 +27,11 @@ public sealed partial class ChatRequest public double? FrequencyPenalty { get; set; } /// - /// Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("image_config")] - public object? ImageConfig { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageConfigJsonConverter))] + public global::OpenRouter.ImageConfig? ImageConfig { get; set; } /// /// Token logit bias adjustments @@ -231,9 +232,7 @@ public sealed partial class ChatRequest /// /// Frequency penalty (-2.0 to 2.0) /// - /// - /// Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details. - /// + /// /// /// Token logit bias adjustments /// @@ -327,7 +326,7 @@ public ChatRequest( global::OpenRouter.ChatRequestCacheControl? cacheControl, global::OpenRouter.ChatDebugOptions? debug, double? frequencyPenalty, - object? imageConfig, + global::OpenRouter.ImageConfig? imageConfig, global::System.Collections.Generic.Dictionary? logitBias, bool? logprobs, int? maxCompletionTokens, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig.g.cs deleted file mode 100644 index 289bc56f..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig.g.cs +++ /dev/null @@ -1,255 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public readonly partial struct ChatRequestImageConfig : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public string? ChatRequestImageConfigVariant1 { get; init; } -#else - public string? ChatRequestImageConfigVariant1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChatRequestImageConfigVariant1))] -#endif - public bool IsChatRequestImageConfigVariant1 => ChatRequestImageConfigVariant1 != null; - - /// - /// - /// -#if NET6_0_OR_GREATER - public double? ChatRequestImageConfigVariant2 { get; init; } -#else - public double? ChatRequestImageConfigVariant2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChatRequestImageConfigVariant2))] -#endif - public bool IsChatRequestImageConfigVariant2 => ChatRequestImageConfigVariant2 != null; - - /// - /// - /// -#if NET6_0_OR_GREATER - public global::System.Collections.Generic.IList? ChatRequestImageConfigVariant3 { get; init; } -#else - public global::System.Collections.Generic.IList? ChatRequestImageConfigVariant3 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ChatRequestImageConfigVariant3))] -#endif - public bool IsChatRequestImageConfigVariant3 => ChatRequestImageConfigVariant3 != null; - /// - /// - /// - public static implicit operator ChatRequestImageConfig(string value) => new ChatRequestImageConfig((string?)value); - - /// - /// - /// - public static implicit operator string?(ChatRequestImageConfig @this) => @this.ChatRequestImageConfigVariant1; - - /// - /// - /// - public ChatRequestImageConfig(string? value) - { - ChatRequestImageConfigVariant1 = value; - } - - /// - /// - /// - public static implicit operator ChatRequestImageConfig(double value) => new ChatRequestImageConfig((double?)value); - - /// - /// - /// - public static implicit operator double?(ChatRequestImageConfig @this) => @this.ChatRequestImageConfigVariant2; - - /// - /// - /// - public ChatRequestImageConfig(double? value) - { - ChatRequestImageConfigVariant2 = value; - } - - /// - /// - /// - public ChatRequestImageConfig( - string? chatRequestImageConfigVariant1, - double? chatRequestImageConfigVariant2, - global::System.Collections.Generic.IList? chatRequestImageConfigVariant3 - ) - { - ChatRequestImageConfigVariant1 = chatRequestImageConfigVariant1; - ChatRequestImageConfigVariant2 = chatRequestImageConfigVariant2; - ChatRequestImageConfigVariant3 = chatRequestImageConfigVariant3; - } - - /// - /// - /// - public object? Object => - ChatRequestImageConfigVariant3 as object ?? - ChatRequestImageConfigVariant2 as object ?? - ChatRequestImageConfigVariant1 as object - ; - - /// - /// - /// - public override string? ToString() => - ChatRequestImageConfigVariant1?.ToString() ?? - ChatRequestImageConfigVariant2?.ToString() ?? - ChatRequestImageConfigVariant3?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsChatRequestImageConfigVariant1 && !IsChatRequestImageConfigVariant2 && !IsChatRequestImageConfigVariant3 || !IsChatRequestImageConfigVariant1 && IsChatRequestImageConfigVariant2 && !IsChatRequestImageConfigVariant3 || !IsChatRequestImageConfigVariant1 && !IsChatRequestImageConfigVariant2 && IsChatRequestImageConfigVariant3; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? chatRequestImageConfigVariant1 = null, - global::System.Func? chatRequestImageConfigVariant2 = null, - global::System.Func?, TResult>? chatRequestImageConfigVariant3 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsChatRequestImageConfigVariant1 && chatRequestImageConfigVariant1 != null) - { - return chatRequestImageConfigVariant1(ChatRequestImageConfigVariant1!); - } - else if (IsChatRequestImageConfigVariant2 && chatRequestImageConfigVariant2 != null) - { - return chatRequestImageConfigVariant2(ChatRequestImageConfigVariant2!); - } - else if (IsChatRequestImageConfigVariant3 && chatRequestImageConfigVariant3 != null) - { - return chatRequestImageConfigVariant3(ChatRequestImageConfigVariant3!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? chatRequestImageConfigVariant1 = null, - global::System.Action? chatRequestImageConfigVariant2 = null, - global::System.Action?>? chatRequestImageConfigVariant3 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsChatRequestImageConfigVariant1) - { - chatRequestImageConfigVariant1?.Invoke(ChatRequestImageConfigVariant1!); - } - else if (IsChatRequestImageConfigVariant2) - { - chatRequestImageConfigVariant2?.Invoke(ChatRequestImageConfigVariant2!); - } - else if (IsChatRequestImageConfigVariant3) - { - chatRequestImageConfigVariant3?.Invoke(ChatRequestImageConfigVariant3!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - ChatRequestImageConfigVariant1, - typeof(string), - ChatRequestImageConfigVariant2, - typeof(double), - ChatRequestImageConfigVariant3, - typeof(global::System.Collections.Generic.IList), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(ChatRequestImageConfig other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatRequestImageConfigVariant1, other.ChatRequestImageConfigVariant1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatRequestImageConfigVariant2, other.ChatRequestImageConfigVariant2) && - global::System.Collections.Generic.EqualityComparer?>.Default.Equals(ChatRequestImageConfigVariant3, other.ChatRequestImageConfigVariant3) - ; - } - - /// - /// - /// - public static bool operator ==(ChatRequestImageConfig obj1, ChatRequestImageConfig obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(ChatRequestImageConfig obj1, ChatRequestImageConfig obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is ChatRequestImageConfig o && Equals(o); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig2.g.cs deleted file mode 100644 index 34919e13..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig2.g.cs +++ /dev/null @@ -1,18 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details. - /// - public sealed partial class ChatRequestImageConfig2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageConfig.Json.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ImageConfig.Json.g.cs index b90fa3db..fee1f304 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageConfig.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public readonly partial struct ChatRequestImageConfig + public readonly partial struct ImageConfig { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ChatRequestImageConfig? FromJson( + public static global::OpenRouter.ImageConfig? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ChatRequestImageConfig), - jsonSerializerContext) as global::OpenRouter.ChatRequestImageConfig?; + typeof(global::OpenRouter.ImageConfig), + jsonSerializerContext) as global::OpenRouter.ImageConfig?; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ChatRequestImageConfig? FromJson( + public static global::OpenRouter.ImageConfig? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ChatRequestImageConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ChatRequestImageConfig?; + typeof(global::OpenRouter.ImageConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageConfig?; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageConfig.g.cs new file mode 100644 index 00000000..2493cceb --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageConfig.g.cs @@ -0,0 +1,255 @@ +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public readonly partial struct ImageConfig : global::System.IEquatable + { + /// + /// + /// +#if NET6_0_OR_GREATER + public string? ImageConfigVariant1 { get; init; } +#else + public string? ImageConfigVariant1 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageConfigVariant1))] +#endif + public bool IsImageConfigVariant1 => ImageConfigVariant1 != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public double? ImageConfigVariant2 { get; init; } +#else + public double? ImageConfigVariant2 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageConfigVariant2))] +#endif + public bool IsImageConfigVariant2 => ImageConfigVariant2 != null; + + /// + /// + /// +#if NET6_0_OR_GREATER + public global::System.Collections.Generic.IList? ImageConfigVariant3 { get; init; } +#else + public global::System.Collections.Generic.IList? ImageConfigVariant3 { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageConfigVariant3))] +#endif + public bool IsImageConfigVariant3 => ImageConfigVariant3 != null; + /// + /// + /// + public static implicit operator ImageConfig(string value) => new ImageConfig((string?)value); + + /// + /// + /// + public static implicit operator string?(ImageConfig @this) => @this.ImageConfigVariant1; + + /// + /// + /// + public ImageConfig(string? value) + { + ImageConfigVariant1 = value; + } + + /// + /// + /// + public static implicit operator ImageConfig(double value) => new ImageConfig((double?)value); + + /// + /// + /// + public static implicit operator double?(ImageConfig @this) => @this.ImageConfigVariant2; + + /// + /// + /// + public ImageConfig(double? value) + { + ImageConfigVariant2 = value; + } + + /// + /// + /// + public ImageConfig( + string? imageConfigVariant1, + double? imageConfigVariant2, + global::System.Collections.Generic.IList? imageConfigVariant3 + ) + { + ImageConfigVariant1 = imageConfigVariant1; + ImageConfigVariant2 = imageConfigVariant2; + ImageConfigVariant3 = imageConfigVariant3; + } + + /// + /// + /// + public object? Object => + ImageConfigVariant3 as object ?? + ImageConfigVariant2 as object ?? + ImageConfigVariant1 as object + ; + + /// + /// + /// + public override string? ToString() => + ImageConfigVariant1?.ToString() ?? + ImageConfigVariant2?.ToString() ?? + ImageConfigVariant3?.ToString() + ; + + /// + /// + /// + public bool Validate() + { + return IsImageConfigVariant1 && !IsImageConfigVariant2 && !IsImageConfigVariant3 || !IsImageConfigVariant1 && IsImageConfigVariant2 && !IsImageConfigVariant3 || !IsImageConfigVariant1 && !IsImageConfigVariant2 && IsImageConfigVariant3; + } + + /// + /// + /// + public TResult? Match( + global::System.Func? imageConfigVariant1 = null, + global::System.Func? imageConfigVariant2 = null, + global::System.Func?, TResult>? imageConfigVariant3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsImageConfigVariant1 && imageConfigVariant1 != null) + { + return imageConfigVariant1(ImageConfigVariant1!); + } + else if (IsImageConfigVariant2 && imageConfigVariant2 != null) + { + return imageConfigVariant2(ImageConfigVariant2!); + } + else if (IsImageConfigVariant3 && imageConfigVariant3 != null) + { + return imageConfigVariant3(ImageConfigVariant3!); + } + + return default(TResult); + } + + /// + /// + /// + public void Match( + global::System.Action? imageConfigVariant1 = null, + global::System.Action? imageConfigVariant2 = null, + global::System.Action?>? imageConfigVariant3 = null, + bool validate = true) + { + if (validate) + { + Validate(); + } + + if (IsImageConfigVariant1) + { + imageConfigVariant1?.Invoke(ImageConfigVariant1!); + } + else if (IsImageConfigVariant2) + { + imageConfigVariant2?.Invoke(ImageConfigVariant2!); + } + else if (IsImageConfigVariant3) + { + imageConfigVariant3?.Invoke(ImageConfigVariant3!); + } + } + + /// + /// + /// + public override int GetHashCode() + { + var fields = new object?[] + { + ImageConfigVariant1, + typeof(string), + ImageConfigVariant2, + typeof(double), + ImageConfigVariant3, + typeof(global::System.Collections.Generic.IList), + }; + const int offset = unchecked((int)2166136261); + const int prime = 16777619; + static int HashCodeAggregator(int hashCode, object? value) => value == null + ? (hashCode ^ 0) * prime + : (hashCode ^ value.GetHashCode()) * prime; + + return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); + } + + /// + /// + /// + public bool Equals(ImageConfig other) + { + return + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageConfigVariant1, other.ImageConfigVariant1) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageConfigVariant2, other.ImageConfigVariant2) && + global::System.Collections.Generic.EqualityComparer?>.Default.Equals(ImageConfigVariant3, other.ImageConfigVariant3) + ; + } + + /// + /// + /// + public static bool operator ==(ImageConfig obj1, ImageConfig obj2) + { + return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); + } + + /// + /// + /// + public static bool operator !=(ImageConfig obj1, ImageConfig obj2) + { + return !(obj1 == obj2); + } + + /// + /// + /// + public override bool Equals(object? obj) + { + return obj is ImageConfig o && Equals(o); + } + } +} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageConfigVariant3Item.Json.g.cs similarity index 86% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig2.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ImageConfigVariant3Item.Json.g.cs index c2b1453d..5214f0cf 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfig2.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageConfigVariant3Item.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ChatRequestImageConfig2 + public sealed partial class ImageConfigVariant3Item { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ChatRequestImageConfig2? FromJson( + public static global::OpenRouter.ImageConfigVariant3Item? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ChatRequestImageConfig2), - jsonSerializerContext) as global::OpenRouter.ChatRequestImageConfig2; + typeof(global::OpenRouter.ImageConfigVariant3Item), + jsonSerializerContext) as global::OpenRouter.ImageConfigVariant3Item; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ChatRequestImageConfig2? FromJson( + public static global::OpenRouter.ImageConfigVariant3Item? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ChatRequestImageConfig2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ChatRequestImageConfig2; + typeof(global::OpenRouter.ImageConfigVariant3Item), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageConfigVariant3Item; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfigVariant3Item.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageConfigVariant3Item.g.cs similarity index 87% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfigVariant3Item.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ImageConfigVariant3Item.g.cs index b7eb2478..3af3ce88 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfigVariant3Item.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageConfigVariant3Item.g.cs @@ -6,7 +6,7 @@ namespace OpenRouter /// /// Any type /// - public sealed partial class ChatRequestImageConfigVariant3Item + public sealed partial class ImageConfigVariant3Item { /// diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig2.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolConfig.Json.g.cs similarity index 84% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig2.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolConfig.Json.g.cs index 9deee333..79eb752c 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig2.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolConfig.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ResponsesRequestImageConfig2 + public sealed partial class ImageGenerationServerToolConfig { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ResponsesRequestImageConfig2? FromJson( + public static global::OpenRouter.ImageGenerationServerToolConfig? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ResponsesRequestImageConfig2), - jsonSerializerContext) as global::OpenRouter.ResponsesRequestImageConfig2; + typeof(global::OpenRouter.ImageGenerationServerToolConfig), + jsonSerializerContext) as global::OpenRouter.ImageGenerationServerToolConfig; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ResponsesRequestImageConfig2? FromJson( + public static global::OpenRouter.ImageGenerationServerToolConfig? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ResponsesRequestImageConfig2), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestImageConfig2; + typeof(global::OpenRouter.ImageGenerationServerToolConfig), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationServerToolConfig; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolConfig.g.cs new file mode 100644 index 00000000..a8a944d1 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolConfig.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// Configuration for the openrouter:image_generation server tool. Accepts all image_config params (aspect_ratio, quality, size, background, output_format, output_compression, moderation, etc.) plus a model field. + /// + public sealed partial class ImageGenerationServerToolConfig + { + /// + /// Which image generation model to use (e.g. "openai/gpt-image-1"). Defaults to "openai/gpt-image-1". + /// + [global::System.Text.Json.Serialization.JsonPropertyName("model")] + public string? Model { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Which image generation model to use (e.g. "openai/gpt-image-1"). Defaults to "openai/gpt-image-1". + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageGenerationServerToolConfig( + string? model) + { + this.Model = model; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageGenerationServerToolConfig() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfigVariant3Item.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolOpenRouter.Json.g.cs similarity index 84% rename from src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfigVariant3Item.Json.g.cs rename to src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolOpenRouter.Json.g.cs index 7d63e119..7d7b160d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestImageConfigVariant3Item.Json.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolOpenRouter.Json.g.cs @@ -2,7 +2,7 @@ namespace OpenRouter { - public sealed partial class ChatRequestImageConfigVariant3Item + public sealed partial class ImageGenerationServerToolOpenRouter { /// /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. @@ -34,14 +34,14 @@ public string ToJson( /// /// Deserializes a JSON string using the provided JsonSerializerContext. /// - public static global::OpenRouter.ChatRequestImageConfigVariant3Item? FromJson( + public static global::OpenRouter.ImageGenerationServerToolOpenRouter? FromJson( string json, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return global::System.Text.Json.JsonSerializer.Deserialize( json, - typeof(global::OpenRouter.ChatRequestImageConfigVariant3Item), - jsonSerializerContext) as global::OpenRouter.ChatRequestImageConfigVariant3Item; + typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), + jsonSerializerContext) as global::OpenRouter.ImageGenerationServerToolOpenRouter; } /// @@ -51,11 +51,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::OpenRouter.ChatRequestImageConfigVariant3Item? FromJson( + public static global::OpenRouter.ImageGenerationServerToolOpenRouter? FromJson( string json, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.Deserialize( + return global::System.Text.Json.JsonSerializer.Deserialize( json, jsonSerializerOptions); } @@ -63,14 +63,14 @@ public string ToJson( /// /// Deserializes a JSON stream using the provided JsonSerializerContext. /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) { return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, - typeof(global::OpenRouter.ChatRequestImageConfigVariant3Item), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ChatRequestImageConfigVariant3Item; + typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), + jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ImageGenerationServerToolOpenRouter; } /// @@ -80,11 +80,11 @@ public string ToJson( [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] #endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( + public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( global::System.IO.Stream jsonStream, global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( + return global::System.Text.Json.JsonSerializer.DeserializeAsync( jsonStream, jsonSerializerOptions); } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolOpenRouter.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolOpenRouter.g.cs new file mode 100644 index 00000000..18015743 --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolOpenRouter.g.cs @@ -0,0 +1,55 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// OpenRouter built-in server tool: generates images from text prompts using an image generation model + /// + public sealed partial class ImageGenerationServerToolOpenRouter + { + /// + /// Configuration for the openrouter:image_generation server tool. Accepts all image_config params (aspect_ratio, quality, size, background, output_format, output_compression, moderation, etc.) plus a model field. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] + public global::OpenRouter.ImageGenerationServerToolConfig? Parameters { get; set; } + + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("type")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageGenerationServerToolOpenRouterTypeJsonConverter))] + public global::OpenRouter.ImageGenerationServerToolOpenRouterType Type { get; set; } + + /// + /// Additional properties that are not explicitly defined in the schema + /// + [global::System.Text.Json.Serialization.JsonExtensionData] + public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); + + /// + /// Initializes a new instance of the class. + /// + /// + /// Configuration for the openrouter:image_generation server tool. Accepts all image_config params (aspect_ratio, quality, size, background, output_format, output_compression, moderation, etc.) plus a model field. + /// + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ImageGenerationServerToolOpenRouter( + global::OpenRouter.ImageGenerationServerToolConfig? parameters, + global::OpenRouter.ImageGenerationServerToolOpenRouterType type) + { + this.Parameters = parameters; + this.Type = type; + } + + /// + /// Initializes a new instance of the class. + /// + public ImageGenerationServerToolOpenRouter() + { + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolOpenRouterType.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolOpenRouterType.g.cs new file mode 100644 index 00000000..c4fc3c0e --- /dev/null +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ImageGenerationServerToolOpenRouterType.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace OpenRouter +{ + /// + /// + /// + public enum ImageGenerationServerToolOpenRouterType + { + /// + /// + /// + Openrouter_imageGeneration, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ImageGenerationServerToolOpenRouterTypeExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ImageGenerationServerToolOpenRouterType value) + { + return value switch + { + ImageGenerationServerToolOpenRouterType.Openrouter_imageGeneration => "openrouter:image_generation", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ImageGenerationServerToolOpenRouterType? ToEnum(string value) + { + return value switch + { + "openrouter:image_generation" => ImageGenerationServerToolOpenRouterType.Openrouter_imageGeneration, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems.g.cs index 0597af70..1d217f88 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestToolsItems.g.cs @@ -111,6 +111,23 @@ namespace OpenRouter #endif public bool IsDatetimeServerTool => DatetimeServerTool != null; + /// + /// OpenRouter built-in server tool: generates images from text prompts using an image generation model + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ImageGenerationServerToolOpenRouter? ImageGenerationServerToolOpenRouter { get; init; } +#else + public global::OpenRouter.ImageGenerationServerToolOpenRouter? ImageGenerationServerToolOpenRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageGenerationServerToolOpenRouter))] +#endif + public bool IsImageGenerationServerToolOpenRouter => ImageGenerationServerToolOpenRouter != null; + /// /// OpenRouter built-in server tool: searches and filters AI models available on OpenRouter /// @@ -252,6 +269,24 @@ public MessagesRequestToolsItems(global::OpenRouter.DatetimeServerTool? value) DatetimeServerTool = value; } + /// + /// + /// + public static implicit operator MessagesRequestToolsItems(global::OpenRouter.ImageGenerationServerToolOpenRouter value) => new MessagesRequestToolsItems((global::OpenRouter.ImageGenerationServerToolOpenRouter?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ImageGenerationServerToolOpenRouter?(MessagesRequestToolsItems @this) => @this.ImageGenerationServerToolOpenRouter; + + /// + /// + /// + public MessagesRequestToolsItems(global::OpenRouter.ImageGenerationServerToolOpenRouter? value) + { + ImageGenerationServerToolOpenRouter = value; + } + /// /// /// @@ -298,6 +333,7 @@ public MessagesRequestToolsItems( global::OpenRouter.MessagesRequestToolsItems3? messagesRequestToolsItems3, global::OpenRouter.MessagesRequestToolsItems4? messagesRequestToolsItems4, global::OpenRouter.DatetimeServerTool? datetimeServerTool, + global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter, global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool, global::OpenRouter.OpenRouterWebSearchServerTool? openRouterWebSearchServerTool ) @@ -308,6 +344,7 @@ public MessagesRequestToolsItems( MessagesRequestToolsItems3 = messagesRequestToolsItems3; MessagesRequestToolsItems4 = messagesRequestToolsItems4; DatetimeServerTool = datetimeServerTool; + ImageGenerationServerToolOpenRouter = imageGenerationServerToolOpenRouter; ChatSearchModelsServerTool = chatSearchModelsServerTool; OpenRouterWebSearchServerTool = openRouterWebSearchServerTool; } @@ -318,6 +355,7 @@ public MessagesRequestToolsItems( public object? Object => OpenRouterWebSearchServerTool as object ?? ChatSearchModelsServerTool as object ?? + ImageGenerationServerToolOpenRouter as object ?? DatetimeServerTool as object ?? MessagesRequestToolsItems4 as object ?? MessagesRequestToolsItems3 as object ?? @@ -336,6 +374,7 @@ MessagesRequestToolsItems0 as object MessagesRequestToolsItems3?.ToString() ?? MessagesRequestToolsItems4?.ToString() ?? DatetimeServerTool?.ToString() ?? + ImageGenerationServerToolOpenRouter?.ToString() ?? ChatSearchModelsServerTool?.ToString() ?? OpenRouterWebSearchServerTool?.ToString() ; @@ -345,7 +384,7 @@ MessagesRequestToolsItems0 as object /// public bool Validate() { - return IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && IsOpenRouterWebSearchServerTool; + return IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && IsChatSearchModelsServerTool && !IsOpenRouterWebSearchServerTool || !IsMessagesRequestToolsItems0 && !IsMessagesRequestToolsItems1 && !IsMessagesRequestToolsItems2 && !IsMessagesRequestToolsItems3 && !IsMessagesRequestToolsItems4 && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && IsOpenRouterWebSearchServerTool; } /// @@ -358,6 +397,7 @@ public bool Validate() global::System.Func? messagesRequestToolsItems3 = null, global::System.Func? messagesRequestToolsItems4 = null, global::System.Func? datetimeServerTool = null, + global::System.Func? imageGenerationServerToolOpenRouter = null, global::System.Func? chatSearchModelsServerTool = null, global::System.Func? openRouterWebSearchServerTool = null, bool validate = true) @@ -391,6 +431,10 @@ public bool Validate() { return datetimeServerTool(DatetimeServerTool!); } + else if (IsImageGenerationServerToolOpenRouter && imageGenerationServerToolOpenRouter != null) + { + return imageGenerationServerToolOpenRouter(ImageGenerationServerToolOpenRouter!); + } else if (IsChatSearchModelsServerTool && chatSearchModelsServerTool != null) { return chatSearchModelsServerTool(ChatSearchModelsServerTool!); @@ -413,6 +457,7 @@ public void Match( global::System.Action? messagesRequestToolsItems3 = null, global::System.Action? messagesRequestToolsItems4 = null, global::System.Action? datetimeServerTool = null, + global::System.Action? imageGenerationServerToolOpenRouter = null, global::System.Action? chatSearchModelsServerTool = null, global::System.Action? openRouterWebSearchServerTool = null, bool validate = true) @@ -446,6 +491,10 @@ public void Match( { datetimeServerTool?.Invoke(DatetimeServerTool!); } + else if (IsImageGenerationServerToolOpenRouter) + { + imageGenerationServerToolOpenRouter?.Invoke(ImageGenerationServerToolOpenRouter!); + } else if (IsChatSearchModelsServerTool) { chatSearchModelsServerTool?.Invoke(ChatSearchModelsServerTool!); @@ -475,6 +524,8 @@ public override int GetHashCode() typeof(global::OpenRouter.MessagesRequestToolsItems4), DatetimeServerTool, typeof(global::OpenRouter.DatetimeServerTool), + ImageGenerationServerToolOpenRouter, + typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), ChatSearchModelsServerTool, typeof(global::OpenRouter.ChatSearchModelsServerTool), OpenRouterWebSearchServerTool, @@ -501,6 +552,7 @@ public bool Equals(MessagesRequestToolsItems other) global::System.Collections.Generic.EqualityComparer.Default.Equals(MessagesRequestToolsItems3, other.MessagesRequestToolsItems3) && global::System.Collections.Generic.EqualityComparer.Default.Equals(MessagesRequestToolsItems4, other.MessagesRequestToolsItems4) && global::System.Collections.Generic.EqualityComparer.Default.Equals(DatetimeServerTool, other.DatetimeServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationServerToolOpenRouter, other.ImageGenerationServerToolOpenRouter) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatSearchModelsServerTool, other.ChatSearchModelsServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(OpenRouterWebSearchServerTool, other.OpenRouterWebSearchServerTool) ; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs index 599239a2..78dca8ba 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequest.g.cs @@ -21,10 +21,11 @@ public sealed partial class ResponsesRequest public double? FrequencyPenalty { get; set; } /// - /// Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/features/multimodal/image-generation for more details. + /// /// [global::System.Text.Json.Serialization.JsonPropertyName("image_config")] - public object? ImageConfig { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.ImageConfigJsonConverter))] + public global::OpenRouter.ImageConfig? ImageConfig { get; set; } /// /// @@ -239,9 +240,7 @@ public sealed partial class ResponsesRequest /// /// /// - /// - /// Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/features/multimodal/image-generation for more details. - /// + /// /// /// /// Input for a response request - can be a string or array of items @@ -305,7 +304,7 @@ public sealed partial class ResponsesRequest public ResponsesRequest( bool? background, double? frequencyPenalty, - object? imageConfig, + global::OpenRouter.ImageConfig? imageConfig, global::System.Collections.Generic.IList? include, global::OpenRouter.Inputs? input, string? instructions, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig.Json.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig.Json.g.cs deleted file mode 100644 index f86caccc..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace OpenRouter -{ - public readonly partial struct ResponsesRequestImageConfig - { - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerContext. - /// - public string ToJson( - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - this.GetType(), - jsonSerializerContext); - } - - /// - /// Serializes the current instance to a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public string ToJson( - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Serialize( - this, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerContext. - /// - public static global::OpenRouter.ResponsesRequestImageConfig? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::OpenRouter.ResponsesRequestImageConfig), - jsonSerializerContext) as global::OpenRouter.ResponsesRequestImageConfig?; - } - - /// - /// Deserializes a JSON string using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::OpenRouter.ResponsesRequestImageConfig? FromJson( - string json, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - jsonSerializerOptions); - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerContext. - /// - public static async global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return (await global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - typeof(global::OpenRouter.ResponsesRequestImageConfig), - jsonSerializerContext).ConfigureAwait(false)) as global::OpenRouter.ResponsesRequestImageConfig?; - } - - /// - /// Deserializes a JSON stream using the provided JsonSerializerOptions. - /// -#if NET8_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("JSON serialization and deserialization might require types that cannot be statically analyzed. Use the overload that takes a JsonTypeInfo or JsonSerializerContext, or make sure all of the required types are preserved.")] - [global::System.Diagnostics.CodeAnalysis.RequiresDynamicCode("JSON serialization and deserialization might require types that cannot be statically analyzed and might need runtime code generation. Use System.Text.Json source generation for native AOT applications.")] -#endif - public static global::System.Threading.Tasks.ValueTask FromJsonStreamAsync( - global::System.IO.Stream jsonStream, - global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions = null) - { - return global::System.Text.Json.JsonSerializer.DeserializeAsync( - jsonStream, - jsonSerializerOptions); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig.g.cs deleted file mode 100644 index 6049cdf3..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig.g.cs +++ /dev/null @@ -1,221 +0,0 @@ -#pragma warning disable CS0618 // Type or member is obsolete - -#nullable enable - -namespace OpenRouter -{ - /// - /// - /// - public readonly partial struct ResponsesRequestImageConfig : global::System.IEquatable - { - /// - /// - /// -#if NET6_0_OR_GREATER - public string? ResponsesRequestImageConfigVariant1 { get; init; } -#else - public string? ResponsesRequestImageConfigVariant1 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestImageConfigVariant1))] -#endif - public bool IsResponsesRequestImageConfigVariant1 => ResponsesRequestImageConfigVariant1 != null; - - /// - /// - /// -#if NET6_0_OR_GREATER - public double? ResponsesRequestImageConfigVariant2 { get; init; } -#else - public double? ResponsesRequestImageConfigVariant2 { get; } -#endif - - /// - /// - /// -#if NET6_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ResponsesRequestImageConfigVariant2))] -#endif - public bool IsResponsesRequestImageConfigVariant2 => ResponsesRequestImageConfigVariant2 != null; - /// - /// - /// - public static implicit operator ResponsesRequestImageConfig(string value) => new ResponsesRequestImageConfig((string?)value); - - /// - /// - /// - public static implicit operator string?(ResponsesRequestImageConfig @this) => @this.ResponsesRequestImageConfigVariant1; - - /// - /// - /// - public ResponsesRequestImageConfig(string? value) - { - ResponsesRequestImageConfigVariant1 = value; - } - - /// - /// - /// - public static implicit operator ResponsesRequestImageConfig(double value) => new ResponsesRequestImageConfig((double?)value); - - /// - /// - /// - public static implicit operator double?(ResponsesRequestImageConfig @this) => @this.ResponsesRequestImageConfigVariant2; - - /// - /// - /// - public ResponsesRequestImageConfig(double? value) - { - ResponsesRequestImageConfigVariant2 = value; - } - - /// - /// - /// - public ResponsesRequestImageConfig( - string? responsesRequestImageConfigVariant1, - double? responsesRequestImageConfigVariant2 - ) - { - ResponsesRequestImageConfigVariant1 = responsesRequestImageConfigVariant1; - ResponsesRequestImageConfigVariant2 = responsesRequestImageConfigVariant2; - } - - /// - /// - /// - public object? Object => - ResponsesRequestImageConfigVariant2 as object ?? - ResponsesRequestImageConfigVariant1 as object - ; - - /// - /// - /// - public override string? ToString() => - ResponsesRequestImageConfigVariant1?.ToString() ?? - ResponsesRequestImageConfigVariant2?.ToString() - ; - - /// - /// - /// - public bool Validate() - { - return IsResponsesRequestImageConfigVariant1 && !IsResponsesRequestImageConfigVariant2 || !IsResponsesRequestImageConfigVariant1 && IsResponsesRequestImageConfigVariant2; - } - - /// - /// - /// - public TResult? Match( - global::System.Func? responsesRequestImageConfigVariant1 = null, - global::System.Func? responsesRequestImageConfigVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsResponsesRequestImageConfigVariant1 && responsesRequestImageConfigVariant1 != null) - { - return responsesRequestImageConfigVariant1(ResponsesRequestImageConfigVariant1!); - } - else if (IsResponsesRequestImageConfigVariant2 && responsesRequestImageConfigVariant2 != null) - { - return responsesRequestImageConfigVariant2(ResponsesRequestImageConfigVariant2!); - } - - return default(TResult); - } - - /// - /// - /// - public void Match( - global::System.Action? responsesRequestImageConfigVariant1 = null, - global::System.Action? responsesRequestImageConfigVariant2 = null, - bool validate = true) - { - if (validate) - { - Validate(); - } - - if (IsResponsesRequestImageConfigVariant1) - { - responsesRequestImageConfigVariant1?.Invoke(ResponsesRequestImageConfigVariant1!); - } - else if (IsResponsesRequestImageConfigVariant2) - { - responsesRequestImageConfigVariant2?.Invoke(ResponsesRequestImageConfigVariant2!); - } - } - - /// - /// - /// - public override int GetHashCode() - { - var fields = new object?[] - { - ResponsesRequestImageConfigVariant1, - typeof(string), - ResponsesRequestImageConfigVariant2, - typeof(double), - }; - const int offset = unchecked((int)2166136261); - const int prime = 16777619; - static int HashCodeAggregator(int hashCode, object? value) => value == null - ? (hashCode ^ 0) * prime - : (hashCode ^ value.GetHashCode()) * prime; - - return global::System.Linq.Enumerable.Aggregate(fields, offset, HashCodeAggregator); - } - - /// - /// - /// - public bool Equals(ResponsesRequestImageConfig other) - { - return - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestImageConfigVariant1, other.ResponsesRequestImageConfigVariant1) && - global::System.Collections.Generic.EqualityComparer.Default.Equals(ResponsesRequestImageConfigVariant2, other.ResponsesRequestImageConfigVariant2) - ; - } - - /// - /// - /// - public static bool operator ==(ResponsesRequestImageConfig obj1, ResponsesRequestImageConfig obj2) - { - return global::System.Collections.Generic.EqualityComparer.Default.Equals(obj1, obj2); - } - - /// - /// - /// - public static bool operator !=(ResponsesRequestImageConfig obj1, ResponsesRequestImageConfig obj2) - { - return !(obj1 == obj2); - } - - /// - /// - /// - public override bool Equals(object? obj) - { - return obj is ResponsesRequestImageConfig o && Equals(o); - } - } -} diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig2.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig2.g.cs deleted file mode 100644 index 3ada4101..00000000 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestImageConfig2.g.cs +++ /dev/null @@ -1,18 +0,0 @@ - -#nullable enable - -namespace OpenRouter -{ - /// - /// Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/features/multimodal/image-generation for more details. - /// - public sealed partial class ResponsesRequestImageConfig2 - { - - /// - /// Additional properties that are not explicitly defined in the schema - /// - [global::System.Text.Json.Serialization.JsonExtensionData] - public global::System.Collections.Generic.IDictionary AdditionalProperties { get; set; } = new global::System.Collections.Generic.Dictionary(); - } -} \ No newline at end of file diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestToolsItems.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestToolsItems.g.cs index 795e3092..28ffb7e5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestToolsItems.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestToolsItems.g.cs @@ -264,6 +264,23 @@ namespace OpenRouter #endif public bool IsDatetimeServerTool => DatetimeServerTool != null; + /// + /// OpenRouter built-in server tool: generates images from text prompts using an image generation model + /// +#if NET6_0_OR_GREATER + public global::OpenRouter.ImageGenerationServerToolOpenRouter? ImageGenerationServerToolOpenRouter { get; init; } +#else + public global::OpenRouter.ImageGenerationServerToolOpenRouter? ImageGenerationServerToolOpenRouter { get; } +#endif + + /// + /// + /// +#if NET6_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.MemberNotNullWhen(true, nameof(ImageGenerationServerToolOpenRouter))] +#endif + public bool IsImageGenerationServerToolOpenRouter => ImageGenerationServerToolOpenRouter != null; + /// /// OpenRouter built-in server tool: searches and filters AI models available on OpenRouter /// @@ -567,6 +584,24 @@ public ResponsesRequestToolsItems(global::OpenRouter.DatetimeServerTool? value) DatetimeServerTool = value; } + /// + /// + /// + public static implicit operator ResponsesRequestToolsItems(global::OpenRouter.ImageGenerationServerToolOpenRouter value) => new ResponsesRequestToolsItems((global::OpenRouter.ImageGenerationServerToolOpenRouter?)value); + + /// + /// + /// + public static implicit operator global::OpenRouter.ImageGenerationServerToolOpenRouter?(ResponsesRequestToolsItems @this) => @this.ImageGenerationServerToolOpenRouter; + + /// + /// + /// + public ResponsesRequestToolsItems(global::OpenRouter.ImageGenerationServerToolOpenRouter? value) + { + ImageGenerationServerToolOpenRouter = value; + } + /// /// /// @@ -622,6 +657,7 @@ public ResponsesRequestToolsItems( global::OpenRouter.ApplyPatchServerTool? applyPatchServerTool, global::OpenRouter.CustomTool? customTool, global::OpenRouter.DatetimeServerTool? datetimeServerTool, + global::OpenRouter.ImageGenerationServerToolOpenRouter? imageGenerationServerToolOpenRouter, global::OpenRouter.ChatSearchModelsServerTool? chatSearchModelsServerTool, global::OpenRouter.WebSearchServerToolOpenRouter? webSearchServerToolOpenRouter ) @@ -641,6 +677,7 @@ public ResponsesRequestToolsItems( ApplyPatchServerTool = applyPatchServerTool; CustomTool = customTool; DatetimeServerTool = datetimeServerTool; + ImageGenerationServerToolOpenRouter = imageGenerationServerToolOpenRouter; ChatSearchModelsServerTool = chatSearchModelsServerTool; WebSearchServerToolOpenRouter = webSearchServerToolOpenRouter; } @@ -651,6 +688,7 @@ public ResponsesRequestToolsItems( public object? Object => WebSearchServerToolOpenRouter as object ?? ChatSearchModelsServerTool as object ?? + ImageGenerationServerToolOpenRouter as object ?? DatetimeServerTool as object ?? CustomTool as object ?? ApplyPatchServerTool as object ?? @@ -687,6 +725,7 @@ ResponsesRequestToolsItems0 as object ApplyPatchServerTool?.ToString() ?? CustomTool?.ToString() ?? DatetimeServerTool?.ToString() ?? + ImageGenerationServerToolOpenRouter?.ToString() ?? ChatSearchModelsServerTool?.ToString() ?? WebSearchServerToolOpenRouter?.ToString() ; @@ -696,7 +735,7 @@ ResponsesRequestToolsItems0 as object /// public bool Validate() { - return IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && IsDatetimeServerTool && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsChatSearchModelsServerTool && IsWebSearchServerToolOpenRouter; + return IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && IsChatSearchModelsServerTool && !IsWebSearchServerToolOpenRouter || !IsResponsesRequestToolsItems0 && !IsPreviewWebSearchServerTool && !IsPreview20250311WebSearchServerTool && !IsLegacyWebSearchServerTool && !IsWebSearchServerTool && !IsFileSearchServerTool && !IsComputerUseServerTool && !IsCodeInterpreterServerTool && !IsMcpServerTool && !IsImageGenerationServerTool && !IsCodexLocalShellTool && !IsShellServerTool && !IsApplyPatchServerTool && !IsCustomTool && !IsDatetimeServerTool && !IsImageGenerationServerToolOpenRouter && !IsChatSearchModelsServerTool && IsWebSearchServerToolOpenRouter; } /// @@ -718,6 +757,7 @@ public bool Validate() global::System.Func? applyPatchServerTool = null, global::System.Func? customTool = null, global::System.Func? datetimeServerTool = null, + global::System.Func? imageGenerationServerToolOpenRouter = null, global::System.Func? chatSearchModelsServerTool = null, global::System.Func? webSearchServerToolOpenRouter = null, bool validate = true) @@ -787,6 +827,10 @@ public bool Validate() { return datetimeServerTool(DatetimeServerTool!); } + else if (IsImageGenerationServerToolOpenRouter && imageGenerationServerToolOpenRouter != null) + { + return imageGenerationServerToolOpenRouter(ImageGenerationServerToolOpenRouter!); + } else if (IsChatSearchModelsServerTool && chatSearchModelsServerTool != null) { return chatSearchModelsServerTool(ChatSearchModelsServerTool!); @@ -818,6 +862,7 @@ public void Match( global::System.Action? applyPatchServerTool = null, global::System.Action? customTool = null, global::System.Action? datetimeServerTool = null, + global::System.Action? imageGenerationServerToolOpenRouter = null, global::System.Action? chatSearchModelsServerTool = null, global::System.Action? webSearchServerToolOpenRouter = null, bool validate = true) @@ -887,6 +932,10 @@ public void Match( { datetimeServerTool?.Invoke(DatetimeServerTool!); } + else if (IsImageGenerationServerToolOpenRouter) + { + imageGenerationServerToolOpenRouter?.Invoke(ImageGenerationServerToolOpenRouter!); + } else if (IsChatSearchModelsServerTool) { chatSearchModelsServerTool?.Invoke(ChatSearchModelsServerTool!); @@ -934,6 +983,8 @@ public override int GetHashCode() typeof(global::OpenRouter.CustomTool), DatetimeServerTool, typeof(global::OpenRouter.DatetimeServerTool), + ImageGenerationServerToolOpenRouter, + typeof(global::OpenRouter.ImageGenerationServerToolOpenRouter), ChatSearchModelsServerTool, typeof(global::OpenRouter.ChatSearchModelsServerTool), WebSearchServerToolOpenRouter, @@ -969,6 +1020,7 @@ public bool Equals(ResponsesRequestToolsItems other) global::System.Collections.Generic.EqualityComparer.Default.Equals(ApplyPatchServerTool, other.ApplyPatchServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(CustomTool, other.CustomTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(DatetimeServerTool, other.DatetimeServerTool) && + global::System.Collections.Generic.EqualityComparer.Default.Equals(ImageGenerationServerToolOpenRouter, other.ImageGenerationServerToolOpenRouter) && global::System.Collections.Generic.EqualityComparer.Default.Equals(ChatSearchModelsServerTool, other.ChatSearchModelsServerTool) && global::System.Collections.Generic.EqualityComparer.Default.Equals(WebSearchServerToolOpenRouter, other.WebSearchServerToolOpenRouter) ; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageBetaResponsesClient.CreateResponses.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageBetaResponsesClient.CreateResponses.g.cs index 85f1131b..f6a445b0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageBetaResponsesClient.CreateResponses.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageBetaResponsesClient.CreateResponses.g.cs @@ -811,9 +811,7 @@ partial void ProcessCreateResponsesResponseContent( /// /// /// - /// - /// Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/features/multimodal/image-generation for more details. - /// + /// /// /// /// Input for a response request - can be a string or array of items @@ -877,7 +875,7 @@ partial void ProcessCreateResponsesResponseContent( public async global::System.Threading.Tasks.Task CreateResponsesAsync( bool? background = default, double? frequencyPenalty = default, - object? imageConfig = default, + global::OpenRouter.ImageConfig? imageConfig = default, global::System.Collections.Generic.IList? include = default, global::OpenRouter.Inputs? input = default, string? instructions = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageChatClient.SendChatCompletionRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageChatClient.SendChatCompletionRequest.g.cs index ee7e80c3..66c8f532 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageChatClient.SendChatCompletionRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageChatClient.SendChatCompletionRequest.g.cs @@ -816,9 +816,7 @@ partial void ProcessSendChatCompletionRequestResponseContent( /// /// Frequency penalty (-2.0 to 2.0) /// - /// - /// Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details. - /// + /// /// /// Token logit bias adjustments /// @@ -915,7 +913,7 @@ partial void ProcessSendChatCompletionRequestResponseContent( global::OpenRouter.ChatRequestCacheControl? cacheControl = default, global::OpenRouter.ChatDebugOptions? debug = default, double? frequencyPenalty = default, - object? imageConfig = default, + global::OpenRouter.ImageConfig? imageConfig = default, global::System.Collections.Generic.Dictionary? logitBias = default, bool? logprobs = default, int? maxCompletionTokens = default, diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index cb4821b8..c26769bb 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -3294,7 +3294,7 @@ ], "components": { "schemas": { - "ResponsesRequestImageConfig": { + "ImageConfig": { "oneOf": [ { "type": "string" @@ -3302,9 +3302,15 @@ { "type": "number", "format": "double" + }, + { + "type": "array", + "items": { + "description": "Any type" + } } ], - "title": "ResponsesRequestImageConfig" + "title": "ImageConfig" }, "ResponseIncludesEnum": { "type": "string", @@ -7183,6 +7189,40 @@ "description": "OpenRouter built-in server tool: returns the current date and time", "title": "DatetimeServerTool" }, + "ImageGenerationServerToolConfig": { + "type": "object", + "properties": { + "model": { + "type": "string", + "description": "Which image generation model to use (e.g. \"openai/gpt-image-1\"). Defaults to \"openai/gpt-image-1\"." + } + }, + "description": "Configuration for the openrouter:image_generation server tool. Accepts all image_config params (aspect_ratio, quality, size, background, output_format, output_compression, moderation, etc.) plus a model field.", + "title": "ImageGenerationServerToolConfig" + }, + "ImageGenerationServerToolOpenRouterType": { + "type": "string", + "enum": [ + "openrouter:image_generation" + ], + "title": "ImageGenerationServerToolOpenRouterType" + }, + "ImageGenerationServerTool_OpenRouter": { + "type": "object", + "properties": { + "parameters": { + "$ref": "#/components/schemas/ImageGenerationServerToolConfig" + }, + "type": { + "$ref": "#/components/schemas/ImageGenerationServerToolOpenRouterType" + } + }, + "required": [ + "type" + ], + "description": "OpenRouter built-in server tool: generates images from text prompts using an image generation model", + "title": "ImageGenerationServerTool_OpenRouter" + }, "SearchModelsServerToolConfig": { "type": "object", "properties": { @@ -7301,6 +7341,9 @@ { "$ref": "#/components/schemas/DatetimeServerTool" }, + { + "$ref": "#/components/schemas/ImageGenerationServerTool_OpenRouter" + }, { "$ref": "#/components/schemas/ChatSearchModelsServerTool" }, @@ -7357,11 +7400,7 @@ "format": "double" }, "image_config": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/ResponsesRequestImageConfig" - }, - "description": "Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/features/multimodal/image-generation for more details." + "$ref": "#/components/schemas/ImageConfig" }, "include": { "type": [ @@ -10197,24 +10236,6 @@ "description": "Debug options for inspecting request transformations (streaming only)", "title": "ChatDebugOptions" }, - "ChatRequestImageConfig": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number", - "format": "double" - }, - { - "type": "array", - "items": { - "description": "Any type" - } - } - ], - "title": "ChatRequestImageConfig" - }, "ChatContentCacheControl": { "type": "object", "properties": { @@ -11590,6 +11611,9 @@ { "$ref": "#/components/schemas/DatetimeServerTool" }, + { + "$ref": "#/components/schemas/ImageGenerationServerTool_OpenRouter" + }, { "$ref": "#/components/schemas/ChatSearchModelsServerTool" }, @@ -11621,11 +11645,7 @@ "description": "Frequency penalty (-2.0 to 2.0)" }, "image_config": { - "type": "object", - "additionalProperties": { - "$ref": "#/components/schemas/ChatRequestImageConfig" - }, - "description": "Provider-specific image configuration options. Keys and values vary by model/provider. See https://openrouter.ai/docs/guides/overview/multimodal/image-generation for more details." + "$ref": "#/components/schemas/ImageConfig" }, "logit_bias": { "type": [ @@ -17653,6 +17673,9 @@ { "$ref": "#/components/schemas/DatetimeServerTool" }, + { + "$ref": "#/components/schemas/ImageGenerationServerTool_OpenRouter" + }, { "$ref": "#/components/schemas/ChatSearchModelsServerTool" },