From 00006bdda6cd28ec4faacf1621b521b05936bd84 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 12 Jun 2026 04:42:08 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...eChatClient.SendChatCompletionRequest.g.cs | 20 +++++++ ...tsClient.CreatePresetsChatCompletions.g.cs | 20 +++++++ .../OpenRouter.JsonSerializerContext.g.cs | 9 +++ .../OpenRouter.Models.ChatRequest.g.cs | 56 +++++++++++++++++++ ...ter.Models.ChatRequestReasoningEffort.g.cs | 2 +- ...eChatClient.SendChatCompletionRequest.g.cs | 25 +++++++++ ...tsClient.CreatePresetsChatCompletions.g.cs | 25 +++++++++ src/libs/OpenRouter/openapi.yaml | 44 ++++++++++++++- 8 files changed, 199 insertions(+), 2 deletions(-) diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageChatClient.SendChatCompletionRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageChatClient.SendChatCompletionRequest.g.cs index 0a70f88a..cf7a05c0 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageChatClient.SendChatCompletionRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackageChatClient.SendChatCompletionRequest.g.cs @@ -73,6 +73,9 @@ public partial interface ISubpackageChatClient /// /// Key-value pairs for additional object information (max 16 pairs, 64 char keys, 512 char values) /// + /// + /// Minimum probability threshold relative to the most likely token. Tokens with probability below min_p * (probability of top token) are filtered out. Not all providers support this parameter. + /// /// /// Output modalities for the response. Supported values are "text", "image", and "audio". /// @@ -97,6 +100,12 @@ public partial interface ISubpackageChatClient /// /// Configuration options for reasoning models /// + /// + /// Shorthand for setting reasoning effort. Equivalent to setting reasoning.effort. Cannot be used simultaneously with reasoning.effort if they differ. + /// + /// + /// Penalizes tokens based on how much they have already appeared in the text. A value of 1.0 means no penalty. Values above 1.0 penalize repeated tokens more strongly. Not all providers support this parameter. + /// /// /// Response format configuration /// @@ -134,6 +143,12 @@ public partial interface ISubpackageChatClient /// /// Available tools for function calling /// + /// + /// Consider only tokens with "sufficiently high" probabilities based on the probability of the most likely token. Not all providers support this parameter. + /// + /// + /// Limits the model to choose from the top K most likely tokens at each step. A value of 1 means the model will always pick the most likely next token. Not all providers support this parameter. + /// /// /// Number of top log probabilities to return (0-20) /// @@ -161,6 +176,7 @@ public partial interface ISubpackageChatClient int? maxCompletionTokens = default, int? maxTokens = default, global::System.Collections.Generic.Dictionary? metadata = default, + double? minP = default, global::System.Collections.Generic.IList? modalities = default, string? model = default, global::System.Collections.Generic.IList? models = default, @@ -169,6 +185,8 @@ public partial interface ISubpackageChatClient double? presencePenalty = default, global::OpenRouter.ProviderPreferences? provider = default, global::OpenRouter.ChatRequestReasoning? reasoning = default, + global::OpenRouter.OneOf? reasoningEffort = default, + double? repetitionPenalty = default, global::OpenRouter.ChatRequestResponseFormat? responseFormat = default, object? route = default, int? seed = default, @@ -181,6 +199,8 @@ public partial interface ISubpackageChatClient double? temperature = default, global::OpenRouter.ChatToolChoice? toolChoice = default, global::System.Collections.Generic.IList? tools = default, + double? topA = default, + int? topK = default, int? topLogprobs = default, double? topP = default, global::OpenRouter.TraceConfig? trace = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.CreatePresetsChatCompletions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.CreatePresetsChatCompletions.g.cs index 4cb84f69..8ab79079 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.CreatePresetsChatCompletions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.ISubpackagePresetsClient.CreatePresetsChatCompletions.g.cs @@ -67,6 +67,9 @@ public partial interface ISubpackagePresetsClient /// /// Key-value pairs for additional object information (max 16 pairs, 64 char keys, 512 char values) /// + /// + /// Minimum probability threshold relative to the most likely token. Tokens with probability below min_p * (probability of top token) are filtered out. Not all providers support this parameter. + /// /// /// Output modalities for the response. Supported values are "text", "image", and "audio". /// @@ -91,6 +94,12 @@ public partial interface ISubpackagePresetsClient /// /// Configuration options for reasoning models /// + /// + /// Shorthand for setting reasoning effort. Equivalent to setting reasoning.effort. Cannot be used simultaneously with reasoning.effort if they differ. + /// + /// + /// Penalizes tokens based on how much they have already appeared in the text. A value of 1.0 means no penalty. Values above 1.0 penalize repeated tokens more strongly. Not all providers support this parameter. + /// /// /// Response format configuration /// @@ -128,6 +137,12 @@ public partial interface ISubpackagePresetsClient /// /// Available tools for function calling /// + /// + /// Consider only tokens with "sufficiently high" probabilities based on the probability of the most likely token. Not all providers support this parameter. + /// + /// + /// Limits the model to choose from the top K most likely tokens at each step. A value of 1 means the model will always pick the most likely next token. Not all providers support this parameter. + /// /// /// Number of top log probabilities to return (0-20) /// @@ -155,6 +170,7 @@ public partial interface ISubpackagePresetsClient int? maxCompletionTokens = default, int? maxTokens = default, global::System.Collections.Generic.Dictionary? metadata = default, + double? minP = default, global::System.Collections.Generic.IList? modalities = default, string? model = default, global::System.Collections.Generic.IList? models = default, @@ -163,6 +179,8 @@ public partial interface ISubpackagePresetsClient double? presencePenalty = default, global::OpenRouter.ProviderPreferences? provider = default, global::OpenRouter.ChatRequestReasoning? reasoning = default, + global::OpenRouter.OneOf? reasoningEffort = default, + double? repetitionPenalty = default, global::OpenRouter.ChatRequestResponseFormat? responseFormat = default, object? route = default, int? seed = default, @@ -175,6 +193,8 @@ public partial interface ISubpackagePresetsClient double? temperature = default, global::OpenRouter.ChatToolChoice? toolChoice = default, global::System.Collections.Generic.IList? tools = default, + double? topA = default, + int? topK = default, int? topLogprobs = default, double? topP = default, global::OpenRouter.TraceConfig? trace = default, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs index 0d419182..1531ce90 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.JsonSerializerContext.g.cs @@ -2795,6 +2795,8 @@ namespace OpenRouter typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), @@ -6128,6 +6130,8 @@ internal sealed partial class SourceGenerationContextChunk0 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), @@ -9461,6 +9465,8 @@ internal sealed partial class SourceGenerationContextChunk1 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), @@ -12794,6 +12800,8 @@ internal sealed partial class SourceGenerationContextChunk2 : global::System.Tex typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), + typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter), @@ -14657,6 +14665,7 @@ private SourceGenerationContext(global::System.Text.Json.JsonSerializerOptions o options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); + options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); options.Converters.Add(new global::OpenRouter.JsonConverters.OneOfJsonConverter()); diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequest.g.cs index b91af1e0..f4ef0a53 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequest.g.cs @@ -70,6 +70,12 @@ public sealed partial class ChatRequest [global::System.Text.Json.Serialization.JsonPropertyName("metadata")] public global::System.Collections.Generic.Dictionary? Metadata { get; set; } + /// + /// Minimum probability threshold relative to the most likely token. Tokens with probability below min_p * (probability of top token) are filtered out. Not all providers support this parameter. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("min_p")] + public double? MinP { get; set; } + /// /// Output modalities for the response. Supported values are "text", "image", and "audio". /// @@ -118,6 +124,19 @@ public sealed partial class ChatRequest [global::System.Text.Json.Serialization.JsonPropertyName("reasoning")] public global::OpenRouter.ChatRequestReasoning? Reasoning { get; set; } + /// + /// Shorthand for setting reasoning effort. Equivalent to setting reasoning.effort. Cannot be used simultaneously with reasoning.effort if they differ. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reasoning_effort")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenRouter.JsonConverters.OneOfJsonConverter))] + public global::OpenRouter.OneOf? ReasoningEffort { get; set; } + + /// + /// Penalizes tokens based on how much they have already appeared in the text. A value of 1.0 means no penalty. Values above 1.0 penalize repeated tokens more strongly. Not all providers support this parameter. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("repetition_penalty")] + public double? RepetitionPenalty { get; set; } + /// /// Response format configuration /// @@ -195,6 +214,18 @@ public sealed partial class ChatRequest [global::System.Text.Json.Serialization.JsonPropertyName("tools")] public global::System.Collections.Generic.IList? Tools { get; set; } + /// + /// Consider only tokens with "sufficiently high" probabilities based on the probability of the most likely token. Not all providers support this parameter. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("top_a")] + public double? TopA { get; set; } + + /// + /// Limits the model to choose from the top K most likely tokens at each step. A value of 1 means the model will always pick the most likely next token. Not all providers support this parameter. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("top_k")] + public int? TopK { get; set; } + /// /// Number of top log probabilities to return (0-20) /// @@ -256,6 +287,9 @@ public sealed partial class ChatRequest /// /// Key-value pairs for additional object information (max 16 pairs, 64 char keys, 512 char values) /// + /// + /// Minimum probability threshold relative to the most likely token. Tokens with probability below min_p * (probability of top token) are filtered out. Not all providers support this parameter. + /// /// /// Output modalities for the response. Supported values are "text", "image", and "audio". /// @@ -280,6 +314,12 @@ public sealed partial class ChatRequest /// /// Configuration options for reasoning models /// + /// + /// Shorthand for setting reasoning effort. Equivalent to setting reasoning.effort. Cannot be used simultaneously with reasoning.effort if they differ. + /// + /// + /// Penalizes tokens based on how much they have already appeared in the text. A value of 1.0 means no penalty. Values above 1.0 penalize repeated tokens more strongly. Not all providers support this parameter. + /// /// /// Response format configuration /// @@ -317,6 +357,12 @@ public sealed partial class ChatRequest /// /// Available tools for function calling /// + /// + /// Consider only tokens with "sufficiently high" probabilities based on the probability of the most likely token. Not all providers support this parameter. + /// + /// + /// Limits the model to choose from the top K most likely tokens at each step. A value of 1 means the model will always pick the most likely next token. Not all providers support this parameter. + /// /// /// Number of top log probabilities to return (0-20) /// @@ -343,6 +389,7 @@ public ChatRequest( int? maxCompletionTokens, int? maxTokens, global::System.Collections.Generic.Dictionary? metadata, + double? minP, global::System.Collections.Generic.IList? modalities, string? model, global::System.Collections.Generic.IList? models, @@ -351,6 +398,8 @@ public ChatRequest( double? presencePenalty, global::OpenRouter.ProviderPreferences? provider, global::OpenRouter.ChatRequestReasoning? reasoning, + global::OpenRouter.OneOf? reasoningEffort, + double? repetitionPenalty, global::OpenRouter.ChatRequestResponseFormat? responseFormat, object? route, int? seed, @@ -363,6 +412,8 @@ public ChatRequest( double? temperature, global::OpenRouter.ChatToolChoice? toolChoice, global::System.Collections.Generic.IList? tools, + double? topA, + int? topK, int? topLogprobs, double? topP, global::OpenRouter.TraceConfig? trace, @@ -378,6 +429,7 @@ public ChatRequest( this.MaxTokens = maxTokens; this.Messages = messages ?? throw new global::System.ArgumentNullException(nameof(messages)); this.Metadata = metadata; + this.MinP = minP; this.Modalities = modalities; this.Model = model; this.Models = models; @@ -386,6 +438,8 @@ public ChatRequest( this.PresencePenalty = presencePenalty; this.Provider = provider; this.Reasoning = reasoning; + this.ReasoningEffort = reasoningEffort; + this.RepetitionPenalty = repetitionPenalty; this.ResponseFormat = responseFormat; this.Route = route; this.Seed = seed; @@ -398,6 +452,8 @@ public ChatRequest( this.Temperature = temperature; this.ToolChoice = toolChoice; this.Tools = tools; + this.TopA = topA; + this.TopK = topK; this.TopLogprobs = topLogprobs; this.TopP = topP; this.Trace = trace; diff --git a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestReasoningEffort.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestReasoningEffort.g.cs index c69c42c5..d28a89a1 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestReasoningEffort.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.Models.ChatRequestReasoningEffort.g.cs @@ -4,7 +4,7 @@ namespace OpenRouter { /// - /// Constrains effort on reasoning for reasoning models + /// Shorthand for setting reasoning effort. Equivalent to setting reasoning.effort. Cannot be used simultaneously with reasoning.effort if they differ. /// public enum ChatRequestReasoningEffort { diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageChatClient.SendChatCompletionRequest.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageChatClient.SendChatCompletionRequest.g.cs index 7ae83335..82e54d03 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.SubpackageChatClient.SendChatCompletionRequest.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackageChatClient.SendChatCompletionRequest.g.cs @@ -931,6 +931,9 @@ partial void ProcessSendChatCompletionRequestResponseContent( /// /// Key-value pairs for additional object information (max 16 pairs, 64 char keys, 512 char values) /// + /// + /// Minimum probability threshold relative to the most likely token. Tokens with probability below min_p * (probability of top token) are filtered out. Not all providers support this parameter. + /// /// /// Output modalities for the response. Supported values are "text", "image", and "audio". /// @@ -955,6 +958,12 @@ partial void ProcessSendChatCompletionRequestResponseContent( /// /// Configuration options for reasoning models /// + /// + /// Shorthand for setting reasoning effort. Equivalent to setting reasoning.effort. Cannot be used simultaneously with reasoning.effort if they differ. + /// + /// + /// Penalizes tokens based on how much they have already appeared in the text. A value of 1.0 means no penalty. Values above 1.0 penalize repeated tokens more strongly. Not all providers support this parameter. + /// /// /// Response format configuration /// @@ -992,6 +1001,12 @@ partial void ProcessSendChatCompletionRequestResponseContent( /// /// Available tools for function calling /// + /// + /// Consider only tokens with "sufficiently high" probabilities based on the probability of the most likely token. Not all providers support this parameter. + /// + /// + /// Limits the model to choose from the top K most likely tokens at each step. A value of 1 means the model will always pick the most likely next token. Not all providers support this parameter. + /// /// /// Number of top log probabilities to return (0-20) /// @@ -1019,6 +1034,7 @@ partial void ProcessSendChatCompletionRequestResponseContent( int? maxCompletionTokens = default, int? maxTokens = default, global::System.Collections.Generic.Dictionary? metadata = default, + double? minP = default, global::System.Collections.Generic.IList? modalities = default, string? model = default, global::System.Collections.Generic.IList? models = default, @@ -1027,6 +1043,8 @@ partial void ProcessSendChatCompletionRequestResponseContent( double? presencePenalty = default, global::OpenRouter.ProviderPreferences? provider = default, global::OpenRouter.ChatRequestReasoning? reasoning = default, + global::OpenRouter.OneOf? reasoningEffort = default, + double? repetitionPenalty = default, global::OpenRouter.ChatRequestResponseFormat? responseFormat = default, object? route = default, int? seed = default, @@ -1039,6 +1057,8 @@ partial void ProcessSendChatCompletionRequestResponseContent( double? temperature = default, global::OpenRouter.ChatToolChoice? toolChoice = default, global::System.Collections.Generic.IList? tools = default, + double? topA = default, + int? topK = default, int? topLogprobs = default, double? topP = default, global::OpenRouter.TraceConfig? trace = default, @@ -1058,6 +1078,7 @@ partial void ProcessSendChatCompletionRequestResponseContent( MaxTokens = maxTokens, Messages = messages, Metadata = metadata, + MinP = minP, Modalities = modalities, Model = model, Models = models, @@ -1066,6 +1087,8 @@ partial void ProcessSendChatCompletionRequestResponseContent( PresencePenalty = presencePenalty, Provider = provider, Reasoning = reasoning, + ReasoningEffort = reasoningEffort, + RepetitionPenalty = repetitionPenalty, ResponseFormat = responseFormat, Route = route, Seed = seed, @@ -1078,6 +1101,8 @@ partial void ProcessSendChatCompletionRequestResponseContent( Temperature = temperature, ToolChoice = toolChoice, Tools = tools, + TopA = topA, + TopK = topK, TopLogprobs = topLogprobs, TopP = topP, Trace = trace, diff --git a/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.CreatePresetsChatCompletions.g.cs b/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.CreatePresetsChatCompletions.g.cs index 50b4cb2f..ad4eab06 100644 --- a/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.CreatePresetsChatCompletions.g.cs +++ b/src/libs/OpenRouter/Generated/OpenRouter.SubpackagePresetsClient.CreatePresetsChatCompletions.g.cs @@ -697,6 +697,9 @@ partial void ProcessCreatePresetsChatCompletionsResponseContent( /// /// Key-value pairs for additional object information (max 16 pairs, 64 char keys, 512 char values) /// + /// + /// Minimum probability threshold relative to the most likely token. Tokens with probability below min_p * (probability of top token) are filtered out. Not all providers support this parameter. + /// /// /// Output modalities for the response. Supported values are "text", "image", and "audio". /// @@ -721,6 +724,12 @@ partial void ProcessCreatePresetsChatCompletionsResponseContent( /// /// Configuration options for reasoning models /// + /// + /// Shorthand for setting reasoning effort. Equivalent to setting reasoning.effort. Cannot be used simultaneously with reasoning.effort if they differ. + /// + /// + /// Penalizes tokens based on how much they have already appeared in the text. A value of 1.0 means no penalty. Values above 1.0 penalize repeated tokens more strongly. Not all providers support this parameter. + /// /// /// Response format configuration /// @@ -758,6 +767,12 @@ partial void ProcessCreatePresetsChatCompletionsResponseContent( /// /// Available tools for function calling /// + /// + /// Consider only tokens with "sufficiently high" probabilities based on the probability of the most likely token. Not all providers support this parameter. + /// + /// + /// Limits the model to choose from the top K most likely tokens at each step. A value of 1 means the model will always pick the most likely next token. Not all providers support this parameter. + /// /// /// Number of top log probabilities to return (0-20) /// @@ -785,6 +800,7 @@ partial void ProcessCreatePresetsChatCompletionsResponseContent( int? maxCompletionTokens = default, int? maxTokens = default, global::System.Collections.Generic.Dictionary? metadata = default, + double? minP = default, global::System.Collections.Generic.IList? modalities = default, string? model = default, global::System.Collections.Generic.IList? models = default, @@ -793,6 +809,8 @@ partial void ProcessCreatePresetsChatCompletionsResponseContent( double? presencePenalty = default, global::OpenRouter.ProviderPreferences? provider = default, global::OpenRouter.ChatRequestReasoning? reasoning = default, + global::OpenRouter.OneOf? reasoningEffort = default, + double? repetitionPenalty = default, global::OpenRouter.ChatRequestResponseFormat? responseFormat = default, object? route = default, int? seed = default, @@ -805,6 +823,8 @@ partial void ProcessCreatePresetsChatCompletionsResponseContent( double? temperature = default, global::OpenRouter.ChatToolChoice? toolChoice = default, global::System.Collections.Generic.IList? tools = default, + double? topA = default, + int? topK = default, int? topLogprobs = default, double? topP = default, global::OpenRouter.TraceConfig? trace = default, @@ -824,6 +844,7 @@ partial void ProcessCreatePresetsChatCompletionsResponseContent( MaxTokens = maxTokens, Messages = messages, Metadata = metadata, + MinP = minP, Modalities = modalities, Model = model, Models = models, @@ -832,6 +853,8 @@ partial void ProcessCreatePresetsChatCompletionsResponseContent( PresencePenalty = presencePenalty, Provider = provider, Reasoning = reasoning, + ReasoningEffort = reasoningEffort, + RepetitionPenalty = repetitionPenalty, ResponseFormat = responseFormat, Route = route, Seed = seed, @@ -844,6 +867,8 @@ partial void ProcessCreatePresetsChatCompletionsResponseContent( Temperature = temperature, ToolChoice = toolChoice, Tools = tools, + TopA = topA, + TopK = topK, TopLogprobs = topLogprobs, TopP = topP, Trace = trace, diff --git a/src/libs/OpenRouter/openapi.yaml b/src/libs/OpenRouter/openapi.yaml index 0c503beb..7133fd15 100644 --- a/src/libs/OpenRouter/openapi.yaml +++ b/src/libs/OpenRouter/openapi.yaml @@ -19861,7 +19861,7 @@ "minimal", "none" ], - "description": "Constrains effort on reasoning for reasoning models", + "description": "Shorthand for setting reasoning effort. Equivalent to setting reasoning.effort. Cannot be used simultaneously with reasoning.effort if they differ.", "title": "ChatRequestReasoningEffort" }, "ChatReasoningSummaryVerbosityEnum": { @@ -20437,6 +20437,14 @@ }, "description": "Key-value pairs for additional object information (max 16 pairs, 64 char keys, 512 char values)" }, + "min_p": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Minimum probability threshold relative to the most likely token. Tokens with probability below min_p * (probability of top token) are filtered out. Not all providers support this parameter." + }, "modalities": { "type": "array", "items": { @@ -20479,6 +20487,25 @@ "$ref": "#/components/schemas/ChatRequestReasoning", "description": "Configuration options for reasoning models" }, + "reasoning_effort": { + "oneOf": [ + { + "$ref": "#/components/schemas/ChatRequestReasoningEffort" + }, + { + "type": "null" + } + ], + "description": "Shorthand for setting reasoning effort. Equivalent to setting reasoning.effort. Cannot be used simultaneously with reasoning.effort if they differ." + }, + "repetition_penalty": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Penalizes tokens based on how much they have already appeared in the text. A value of 1.0 means no penalty. Values above 1.0 penalize repeated tokens more strongly. Not all providers support this parameter." + }, "response_format": { "$ref": "#/components/schemas/ChatRequestResponseFormat", "description": "Response format configuration" @@ -20541,6 +20568,21 @@ }, "description": "Available tools for function calling" }, + "top_a": { + "type": [ + "number", + "null" + ], + "format": "double", + "description": "Consider only tokens with \"sufficiently high\" probabilities based on the probability of the most likely token. Not all providers support this parameter." + }, + "top_k": { + "type": [ + "integer", + "null" + ], + "description": "Limits the model to choose from the top K most likely tokens at each step. A value of 1 means the model will always pick the most likely next token. Not all providers support this parameter." + }, "top_logprobs": { "type": [ "integer",