From 8450236612fe22e76efa2a073d294314b19ce46c Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 26 May 2026 15:54:54 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...outer.Models.ChatRequestPluginsItemsVariant1.g.cs | 11 +++++++++++ ...r.Models.MessagesRequestPluginsItemsVariant1.g.cs | 11 +++++++++++ ....Models.ResponsesRequestPluginsItemsVariant1.g.cs | 11 +++++++++++ src/libs/OpenRouter/openapi.yaml | 12 ++++++++++++ 4 files changed, 45 insertions(+) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestPluginsItemsVariant1.g.cs index 04cbb9ab..a16a28d3 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 3b246b0c..47584425 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 a39d47a7..d6cf3b50 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 62e191c8..c3f5dda5 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."