diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1.g.cs index 04cbb9a..a16a28d 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1.g.cs @@ -21,6 +21,12 @@ public sealed partial class ChatRequestPluginsItemsVariant1 [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] public global::System.Collections.Generic.IList? AllowedModels { get; set; } + /// + /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost_quality_tradeoff")] + public int? CostQualityTradeoff { get; set; } + /// /// Set to false to disable the auto-router plugin for this request. Defaults to true. /// @@ -42,6 +48,9 @@ public sealed partial class ChatRequestPluginsItemsVariant1 /// /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// + /// + /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// /// /// Set to false to disable the auto-router plugin for this request. Defaults to true. /// @@ -51,10 +60,12 @@ public sealed partial class ChatRequestPluginsItemsVariant1 public ChatRequestPluginsItemsVariant1( global::OpenRouter.ChatRequestPluginsItemsVariant1Id id, global::System.Collections.Generic.IList? allowedModels, + int? costQualityTradeoff, bool? enabled) { this.Id = id; this.AllowedModels = allowedModels; + this.CostQualityTradeoff = costQualityTradeoff; this.Enabled = enabled; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant1.g.cs index 3b246b0..4758442 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.MessagesRequestPluginsItemsVariant1.g.cs @@ -21,6 +21,12 @@ public sealed partial class MessagesRequestPluginsItemsVariant1 [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] public global::System.Collections.Generic.IList? AllowedModels { get; set; } + /// + /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost_quality_tradeoff")] + public int? CostQualityTradeoff { get; set; } + /// /// Set to false to disable the auto-router plugin for this request. Defaults to true. /// @@ -42,6 +48,9 @@ public sealed partial class MessagesRequestPluginsItemsVariant1 /// /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// + /// + /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// /// /// Set to false to disable the auto-router plugin for this request. Defaults to true. /// @@ -51,10 +60,12 @@ public sealed partial class MessagesRequestPluginsItemsVariant1 public MessagesRequestPluginsItemsVariant1( global::OpenRouter.MessagesRequestPluginsItemsVariant1Id id, global::System.Collections.Generic.IList? allowedModels, + int? costQualityTradeoff, bool? enabled) { this.Id = id; this.AllowedModels = allowedModels; + this.CostQualityTradeoff = costQualityTradeoff; this.Enabled = enabled; } diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant1.g.cs index a39d47a..d6cf3b5 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant1.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ResponsesRequestPluginsItemsVariant1.g.cs @@ -21,6 +21,12 @@ public sealed partial class ResponsesRequestPluginsItemsVariant1 [global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")] public global::System.Collections.Generic.IList? AllowedModels { get; set; } + /// + /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("cost_quality_tradeoff")] + public int? CostQualityTradeoff { get; set; } + /// /// Set to false to disable the auto-router plugin for this request. Defaults to true. /// @@ -42,6 +48,9 @@ public sealed partial class ResponsesRequestPluginsItemsVariant1 /// /// List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., "anthropic/*" matches all Anthropic models). When not specified, uses the default supported models list. /// + /// + /// Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7. + /// /// /// Set to false to disable the auto-router plugin for this request. Defaults to true. /// @@ -51,10 +60,12 @@ public sealed partial class ResponsesRequestPluginsItemsVariant1 public ResponsesRequestPluginsItemsVariant1( global::OpenRouter.ResponsesRequestPluginsItemsVariant1Id id, global::System.Collections.Generic.IList? allowedModels, + int? costQualityTradeoff, bool? enabled) { this.Id = id; this.AllowedModels = allowedModels; + this.CostQualityTradeoff = costQualityTradeoff; this.Enabled = enabled; } diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index 62e191c..c3f5dda 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -8397,6 +8397,10 @@ }, "description": "List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). When not specified, uses the default supported models list." }, + "cost_quality_tradeoff": { + "type": "integer", + "description": "Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7." + }, "enabled": { "type": "boolean", "description": "Set to false to disable the auto-router plugin for this request. Defaults to true." @@ -17410,6 +17414,10 @@ }, "description": "List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). When not specified, uses the default supported models list." }, + "cost_quality_tradeoff": { + "type": "integer", + "description": "Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7." + }, "enabled": { "type": "boolean", "description": "Set to false to disable the auto-router plugin for this request. Defaults to true." @@ -24446,6 +24454,10 @@ }, "description": "List of model patterns to filter which models the auto-router can route between. Supports wildcards (e.g., \"anthropic/*\" matches all Anthropic models). When not specified, uses the default supported models list." }, + "cost_quality_tradeoff": { + "type": "integer", + "description": "Controls cost vs. quality routing tradeoff (0–10). 0 = pure quality (best model regardless of cost), 10 = maximize for cost (cheapest model wins). Intermediate values blend quality and cost signals continuously. Defaults to 7." + }, "enabled": { "type": "boolean", "description": "Set to false to disable the auto-router plugin for this request. Defaults to true."