Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ public sealed partial class ChatRequestPluginsItemsVariant1
[global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")]
public global::System.Collections.Generic.IList<string>? AllowedModels { get; set; }

/// <summary>
/// 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.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("cost_quality_tradeoff")]
public int? CostQualityTradeoff { get; set; }

/// <summary>
/// Set to false to disable the auto-router plugin for this request. Defaults to true.
/// </summary>
Expand All @@ -42,6 +48,9 @@ public sealed partial class ChatRequestPluginsItemsVariant1
/// <param name="allowedModels">
/// 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.
/// </param>
/// <param name="costQualityTradeoff">
/// 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.
/// </param>
/// <param name="enabled">
/// Set to false to disable the auto-router plugin for this request. Defaults to true.
/// </param>
Expand All @@ -51,10 +60,12 @@ public sealed partial class ChatRequestPluginsItemsVariant1
public ChatRequestPluginsItemsVariant1(
global::OpenRouter.ChatRequestPluginsItemsVariant1Id id,
global::System.Collections.Generic.IList<string>? allowedModels,
int? costQualityTradeoff,
bool? enabled)
{
this.Id = id;
this.AllowedModels = allowedModels;
this.CostQualityTradeoff = costQualityTradeoff;
this.Enabled = enabled;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ public sealed partial class MessagesRequestPluginsItemsVariant1
[global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")]
public global::System.Collections.Generic.IList<string>? AllowedModels { get; set; }

/// <summary>
/// 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.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("cost_quality_tradeoff")]
public int? CostQualityTradeoff { get; set; }

/// <summary>
/// Set to false to disable the auto-router plugin for this request. Defaults to true.
/// </summary>
Expand All @@ -42,6 +48,9 @@ public sealed partial class MessagesRequestPluginsItemsVariant1
/// <param name="allowedModels">
/// 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.
/// </param>
/// <param name="costQualityTradeoff">
/// 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.
/// </param>
/// <param name="enabled">
/// Set to false to disable the auto-router plugin for this request. Defaults to true.
/// </param>
Expand All @@ -51,10 +60,12 @@ public sealed partial class MessagesRequestPluginsItemsVariant1
public MessagesRequestPluginsItemsVariant1(
global::OpenRouter.MessagesRequestPluginsItemsVariant1Id id,
global::System.Collections.Generic.IList<string>? allowedModels,
int? costQualityTradeoff,
bool? enabled)
{
this.Id = id;
this.AllowedModels = allowedModels;
this.CostQualityTradeoff = costQualityTradeoff;
this.Enabled = enabled;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ public sealed partial class ResponsesRequestPluginsItemsVariant1
[global::System.Text.Json.Serialization.JsonPropertyName("allowed_models")]
public global::System.Collections.Generic.IList<string>? AllowedModels { get; set; }

/// <summary>
/// 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.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("cost_quality_tradeoff")]
public int? CostQualityTradeoff { get; set; }

/// <summary>
/// Set to false to disable the auto-router plugin for this request. Defaults to true.
/// </summary>
Expand All @@ -42,6 +48,9 @@ public sealed partial class ResponsesRequestPluginsItemsVariant1
/// <param name="allowedModels">
/// 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.
/// </param>
/// <param name="costQualityTradeoff">
/// 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.
/// </param>
/// <param name="enabled">
/// Set to false to disable the auto-router plugin for this request. Defaults to true.
/// </param>
Expand All @@ -51,10 +60,12 @@ public sealed partial class ResponsesRequestPluginsItemsVariant1
public ResponsesRequestPluginsItemsVariant1(
global::OpenRouter.ResponsesRequestPluginsItemsVariant1Id id,
global::System.Collections.Generic.IList<string>? allowedModels,
int? costQualityTradeoff,
bool? enabled)
{
this.Id = id;
this.AllowedModels = allowedModels;
this.CostQualityTradeoff = costQualityTradeoff;
this.Enabled = enabled;
}

Expand Down
12 changes: 12 additions & 0 deletions src/libs/OpenRouter/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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."
Expand Down Expand Up @@ -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."
Expand Down