diff --git a/src/libs/DeepInfra/Generated/DeepInfra..JsonSerializerContext.g.cs b/src/libs/DeepInfra/Generated/DeepInfra..JsonSerializerContext.g.cs index 3a64391..ed865f3 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra..JsonSerializerContext.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra..JsonSerializerContext.g.cs @@ -49,6 +49,8 @@ namespace DeepInfra typeof(global::DeepInfra.JsonConverters.ChatCompletionToolMessageRoleNullableJsonConverter), typeof(global::DeepInfra.JsonConverters.ChatCompletionUserMessageRoleJsonConverter), typeof(global::DeepInfra.JsonConverters.ChatCompletionUserMessageRoleNullableJsonConverter), + typeof(global::DeepInfra.JsonConverters.ChatReasoningSettingsEffortJsonConverter), + typeof(global::DeepInfra.JsonConverters.ChatReasoningSettingsEffortNullableJsonConverter), typeof(global::DeepInfra.JsonConverters.ContainerRentalStateOutJsonConverter), typeof(global::DeepInfra.JsonConverters.ContainerRentalStateOutNullableJsonConverter), typeof(global::DeepInfra.JsonConverters.SourceTypeEnumJsonConverter), diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiChatCompletions.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiChatCompletions.g.cs index eeb0143..c36aa79 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiChatCompletions.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiChatCompletions.g.cs @@ -306,6 +306,7 @@ partial void ProcessOpenaiChatCompletionsResponseContent( /// /// Constrains effort on reasoning for reasoning models. Currently supported values are none, low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. Setting to none disables reasoning entirely if the model supports. /// + /// /// /// A key to identify prompt cache for reuse across requests. If provided, the prompt will be cached and can be reused in subsequent requests with the same key. /// @@ -336,6 +337,7 @@ partial void ProcessOpenaiChatCompletionsResponseContent( bool? logprobs = default, global::DeepInfra.StreamOptions? streamOptions = default, global::DeepInfra.OpenAIChatCompletionsInReasoningEffort? reasoningEffort = default, + global::DeepInfra.ChatReasoningSettings? reasoning = default, string? promptCacheKey = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -362,6 +364,7 @@ partial void ProcessOpenaiChatCompletionsResponseContent( Logprobs = logprobs, StreamOptions = streamOptions, ReasoningEffort = reasoningEffort, + Reasoning = reasoning, PromptCacheKey = promptCacheKey, }; diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiChatCompletions2.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiChatCompletions2.g.cs index 3b645a2..0bfc089 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiChatCompletions2.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiChatCompletions2.g.cs @@ -306,6 +306,7 @@ partial void ProcessOpenaiChatCompletions2ResponseContent( /// /// Constrains effort on reasoning for reasoning models. Currently supported values are none, low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. Setting to none disables reasoning entirely if the model supports. /// + /// /// /// A key to identify prompt cache for reuse across requests. If provided, the prompt will be cached and can be reused in subsequent requests with the same key. /// @@ -336,6 +337,7 @@ partial void ProcessOpenaiChatCompletions2ResponseContent( bool? logprobs = default, global::DeepInfra.StreamOptions? streamOptions = default, global::DeepInfra.OpenAIChatCompletionsInReasoningEffort? reasoningEffort = default, + global::DeepInfra.ChatReasoningSettings? reasoning = default, string? promptCacheKey = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -362,6 +364,7 @@ partial void ProcessOpenaiChatCompletions2ResponseContent( Logprobs = logprobs, StreamOptions = streamOptions, ReasoningEffort = reasoningEffort, + Reasoning = reasoning, PromptCacheKey = promptCacheKey, }; diff --git a/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiChatCompletions.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiChatCompletions.g.cs index 9dcacaf..dcfa3b5 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiChatCompletions.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiChatCompletions.g.cs @@ -96,6 +96,7 @@ public partial interface IDeepInfraClient /// /// Constrains effort on reasoning for reasoning models. Currently supported values are none, low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. Setting to none disables reasoning entirely if the model supports. /// + /// /// /// A key to identify prompt cache for reuse across requests. If provided, the prompt will be cached and can be reused in subsequent requests with the same key. /// @@ -126,6 +127,7 @@ public partial interface IDeepInfraClient bool? logprobs = default, global::DeepInfra.StreamOptions? streamOptions = default, global::DeepInfra.OpenAIChatCompletionsInReasoningEffort? reasoningEffort = default, + global::DeepInfra.ChatReasoningSettings? reasoning = default, string? promptCacheKey = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiChatCompletions2.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiChatCompletions2.g.cs index 1d8b9dd..7a981c1 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiChatCompletions2.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiChatCompletions2.g.cs @@ -96,6 +96,7 @@ public partial interface IDeepInfraClient /// /// Constrains effort on reasoning for reasoning models. Currently supported values are none, low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. Setting to none disables reasoning entirely if the model supports. /// + /// /// /// A key to identify prompt cache for reuse across requests. If provided, the prompt will be cached and can be reused in subsequent requests with the same key. /// @@ -126,6 +127,7 @@ public partial interface IDeepInfraClient bool? logprobs = default, global::DeepInfra.StreamOptions? streamOptions = default, global::DeepInfra.OpenAIChatCompletionsInReasoningEffort? reasoningEffort = default, + global::DeepInfra.ChatReasoningSettings? reasoning = default, string? promptCacheKey = default, global::System.Threading.CancellationToken cancellationToken = default); } diff --git a/src/libs/DeepInfra/Generated/DeepInfra.JsonConverters.ChatReasoningSettingsEffort.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.JsonConverters.ChatReasoningSettingsEffort.g.cs new file mode 100644 index 0000000..5309910 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.JsonConverters.ChatReasoningSettingsEffort.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace DeepInfra.JsonConverters +{ + /// + public sealed class ChatReasoningSettingsEffortJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::DeepInfra.ChatReasoningSettingsEffort 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::DeepInfra.ChatReasoningSettingsEffortExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::DeepInfra.ChatReasoningSettingsEffort)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::DeepInfra.ChatReasoningSettingsEffort); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::DeepInfra.ChatReasoningSettingsEffort value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::DeepInfra.ChatReasoningSettingsEffortExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/DeepInfra/Generated/DeepInfra.JsonConverters.ChatReasoningSettingsEffortNullable.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.JsonConverters.ChatReasoningSettingsEffortNullable.g.cs new file mode 100644 index 0000000..be8c698 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.JsonConverters.ChatReasoningSettingsEffortNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace DeepInfra.JsonConverters +{ + /// + public sealed class ChatReasoningSettingsEffortNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::DeepInfra.ChatReasoningSettingsEffort? 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::DeepInfra.ChatReasoningSettingsEffortExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::DeepInfra.ChatReasoningSettingsEffort)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::DeepInfra.ChatReasoningSettingsEffort?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::DeepInfra.ChatReasoningSettingsEffort? 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::DeepInfra.ChatReasoningSettingsEffortExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/DeepInfra/Generated/DeepInfra.JsonSerializerContextTypes.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.JsonSerializerContextTypes.g.cs index f450089..de531ae 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.JsonSerializerContextTypes.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.JsonSerializerContextTypes.g.cs @@ -406,550 +406,558 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::DeepInfra.ChatTools? Type95 { get; set; } + public global::DeepInfra.ChatReasoningSettings? Type95 { get; set; } /// /// /// - public global::DeepInfra.FunctionDefinition? Type96 { get; set; } + public global::DeepInfra.ChatReasoningSettingsEffort? Type96 { get; set; } /// /// /// - public global::DeepInfra.ContainerRentalOut? Type97 { get; set; } + public global::DeepInfra.ChatTools? Type97 { get; set; } /// /// /// - public global::DeepInfra.ContainerRentalStateOut? Type98 { get; set; } + public global::DeepInfra.FunctionDefinition? Type98 { get; set; } /// /// /// - public global::DeepInfra.ContainerRentalStartIn? Type99 { get; set; } + public global::DeepInfra.ContainerRentalOut? Type99 { get; set; } /// /// /// - public global::DeepInfra.ContainerRentalStartOut? Type100 { get; set; } + public global::DeepInfra.ContainerRentalStateOut? Type100 { get; set; } /// /// /// - public global::DeepInfra.ContainerRentalUpdateIn? Type101 { get; set; } + public global::DeepInfra.ContainerRentalStartIn? Type101 { get; set; } /// /// /// - public global::DeepInfra.CreateLoraApiRequest? Type102 { get; set; } + public global::DeepInfra.ContainerRentalStartOut? Type102 { get; set; } /// /// /// - public global::DeepInfra.SourceModel? Type103 { get; set; } + public global::DeepInfra.ContainerRentalUpdateIn? Type103 { get; set; } /// /// /// - public global::DeepInfra.SourceTypeEnum? Type104 { get; set; } + public global::DeepInfra.CreateLoraApiRequest? Type104 { get; set; } /// /// /// - public global::DeepInfra.DeepError? Type105 { get; set; } + public global::DeepInfra.SourceModel? Type105 { get; set; } /// /// /// - public global::DeepInfra.DeployDelete? Type106 { get; set; } + public global::DeepInfra.SourceTypeEnum? Type106 { get; set; } /// /// /// - public global::DeepInfra.DeployGPUAvailability? Type107 { get; set; } + public global::DeepInfra.DeepError? Type107 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type108 { get; set; } + public global::DeepInfra.DeployDelete? Type108 { get; set; } /// /// /// - public global::DeepInfra.GPUAvailabilityInfo? Type109 { get; set; } + public global::DeepInfra.DeployGPUAvailability? Type109 { get; set; } /// /// /// - public global::DeepInfra.DeployGPUs? Type110 { get; set; } + public global::System.Collections.Generic.IList? Type110 { get; set; } /// /// /// - public global::DeepInfra.DeployInstances? Type111 { get; set; } + public global::DeepInfra.GPUAvailabilityInfo? Type111 { get; set; } /// /// /// - public global::DeepInfra.DeployLLMConfig? Type112 { get; set; } + public global::DeepInfra.DeployGPUs? Type112 { get; set; } /// /// /// - public global::DeepInfra.HFWeights? Type113 { get; set; } + public global::DeepInfra.DeployInstances? Type113 { get; set; } /// /// /// - public global::DeepInfra.DeployLLMIn? Type114 { get; set; } + public global::DeepInfra.DeployLLMConfig? Type114 { get; set; } /// /// /// - public global::DeepInfra.ScaleSettings? Type115 { get; set; } + public global::DeepInfra.HFWeights? Type115 { get; set; } /// /// /// - public global::DeepInfra.DeployLLMUpdateIn? Type116 { get; set; } + public global::DeepInfra.DeployLLMIn? Type116 { get; set; } /// /// /// - public global::DeepInfra.DeployModelIn? Type117 { get; set; } + public global::DeepInfra.ScaleSettings? Type117 { get; set; } /// /// /// - public global::DeepInfra.ModelProvider? Type118 { get; set; } + public global::DeepInfra.DeployLLMUpdateIn? Type118 { get; set; } /// /// /// - public global::DeepInfra.DeployResult? Type119 { get; set; } + public global::DeepInfra.DeployModelIn? Type119 { get; set; } /// /// /// - public global::DeepInfra.DeployStatusOut? Type120 { get; set; } + public global::DeepInfra.ModelProvider? Type120 { get; set; } /// /// /// - public global::DeepInfra.DeployType? Type121 { get; set; } + public global::DeepInfra.DeployResult? Type121 { get; set; } /// /// /// - public global::DeepInfra.DeploymentLogQueryOut? Type122 { get; set; } + public global::DeepInfra.DeployStatusOut? Type122 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>>? Type123 { get; set; } + public global::DeepInfra.DeployType? Type123 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type124 { get; set; } + public global::DeepInfra.DeploymentLogQueryOut? Type124 { get; set; } /// /// /// - public global::DeepInfra.DeploymentOut? Type125 { get; set; } + public global::System.Collections.Generic.Dictionary>>? Type125 { get; set; } /// /// /// - public global::DeepInfra.DeploymentStatsOut? Type126 { get; set; } + public global::System.Collections.Generic.IList>? Type126 { get; set; } /// /// /// - public global::DeepInfra.DetailedDeploymentStatsOut? Type127 { get; set; } + public global::DeepInfra.DeploymentOut? Type127 { get; set; } /// /// /// - public global::DeepInfra.LLMDeploymentStatsOut? Type128 { get; set; } + public global::DeepInfra.DeploymentStatsOut? Type128 { get; set; } /// /// /// - public global::DeepInfra.EmbeddingsDeploymentStatsOut? Type129 { get; set; } + public global::DeepInfra.DetailedDeploymentStatsOut? Type129 { get; set; } /// /// /// - public global::DeepInfra.TimeDeploymentStatsOut? Type130 { get; set; } + public global::DeepInfra.LLMDeploymentStatsOut? Type130 { get; set; } /// /// /// - public global::DeepInfra.DisplayNameIn? Type131 { get; set; } + public global::DeepInfra.EmbeddingsDeploymentStatsOut? Type131 { get; set; } /// /// /// - public global::DeepInfra.ElevenLabsTextToSpeechIn? Type132 { get; set; } + public global::DeepInfra.TimeDeploymentStatsOut? Type132 { get; set; } /// /// /// - public global::DeepInfra.TtsResponseFormat? Type133 { get; set; } + public global::DeepInfra.DisplayNameIn? Type133 { get; set; } /// /// /// - public global::DeepInfra.EmailsOut? Type134 { get; set; } + public global::DeepInfra.ElevenLabsTextToSpeechIn? Type134 { get; set; } /// /// /// - public global::DeepInfra.FAQEntryOut? Type135 { get; set; } + public global::DeepInfra.TtsResponseFormat? Type135 { get; set; } /// /// /// - public global::DeepInfra.FeedbackIn? Type136 { get; set; } + public global::DeepInfra.EmailsOut? Type136 { get; set; } /// /// /// - public global::DeepInfra.GetVoicesOut? Type137 { get; set; } + public global::DeepInfra.FAQEntryOut? Type137 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type138 { get; set; } + public global::DeepInfra.FeedbackIn? Type138 { get; set; } /// /// /// - public global::DeepInfra.Voice? Type139 { get; set; } + public global::DeepInfra.GetVoicesOut? Type139 { get; set; } /// /// /// - public global::DeepInfra.HFModel? Type140 { get; set; } + public global::System.Collections.Generic.IList? Type140 { get; set; } /// /// /// - public global::DeepInfra.HFTasksE? Type141 { get; set; } + public global::DeepInfra.Voice? Type141 { get; set; } /// /// /// - public global::DeepInfra.InspectScopedJWTOut? Type142 { get; set; } + public global::DeepInfra.HFModel? Type142 { get; set; } /// /// /// - public global::DeepInfra.JsonSchema? Type143 { get; set; } + public global::DeepInfra.HFTasksE? Type143 { get; set; } /// /// /// - public global::DeepInfra.LogQueryOut? Type144 { get; set; } + public global::DeepInfra.InspectScopedJWTOut? Type144 { get; set; } /// /// /// - public global::DeepInfra.LoraModelUploadIn? Type145 { get; set; } + public global::DeepInfra.JsonSchema? Type145 { get; set; } /// /// /// - public global::DeepInfra.Me? Type146 { get; set; } + public global::DeepInfra.LogQueryOut? Type146 { get; set; } /// /// /// - public global::DeepInfra.MeVercelConnection? Type147 { get; set; } + public global::DeepInfra.LoraModelUploadIn? Type147 { get; set; } /// /// /// - public global::DeepInfra.MeIn? Type148 { get; set; } + public global::DeepInfra.Me? Type148 { get; set; } /// /// /// - public global::DeepInfra.ModelDocBlock? Type149 { get; set; } + public global::DeepInfra.MeVercelConnection? Type149 { get; set; } /// /// /// - public global::DeepInfra.ModelDocBlockKey? Type150 { get; set; } + public global::DeepInfra.MeIn? Type150 { get; set; } /// /// /// - public global::DeepInfra.ModelFamilyOut? Type151 { get; set; } + public global::DeepInfra.ModelDocBlock? Type151 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type152 { get; set; } + public global::DeepInfra.ModelDocBlockKey? Type152 { get; set; } /// /// /// - public global::DeepInfra.PricingPageSectionOut? Type153 { get; set; } + public global::DeepInfra.ModelFamilyOut? Type153 { get; set; } /// /// /// - public global::DeepInfra.PricingType? Type154 { get; set; } + public global::System.Collections.Generic.IList? Type154 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type155 { get; set; } + public global::DeepInfra.PricingPageSectionOut? Type155 { get; set; } /// /// /// - public global::DeepInfra.PricingPageEntryOut? Type156 { get; set; } + public global::DeepInfra.PricingType? Type156 { get; set; } /// /// /// - public global::DeepInfra.AnyOf? Type157 { get; set; } + public global::System.Collections.Generic.IList? Type157 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingTime? Type158 { get; set; } + public global::DeepInfra.PricingPageEntryOut? Type158 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingTokens? Type159 { get; set; } + public global::DeepInfra.AnyOf? Type159 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingInputLength? Type160 { get; set; } + public global::DeepInfra.ModelPricingTime? Type160 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingInputTokens? Type161 { get; set; } + public global::DeepInfra.ModelPricingTokens? Type161 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingUptime? Type162 { get; set; } + public global::DeepInfra.ModelPricingInputLength? Type162 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingInputCharacterLength? Type163 { get; set; } + public global::DeepInfra.ModelPricingInputTokens? Type163 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingImageUnits? Type164 { get; set; } + public global::DeepInfra.ModelPricingUptime? Type164 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingOutputLength? Type165 { get; set; } + public global::DeepInfra.ModelPricingInputCharacterLength? Type165 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type166 { get; set; } + public global::DeepInfra.ModelPricingImageUnits? Type166 { get; set; } /// /// /// - public global::DeepInfra.ModelFieldInfo? Type167 { get; set; } + public global::DeepInfra.ModelPricingOutputLength? Type167 { get; set; } /// /// /// - public global::DeepInfra.ModelInfoOut? Type168 { get; set; } + public global::System.Collections.Generic.IList? Type168 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type169 { get; set; } + public global::DeepInfra.ModelFieldInfo? Type169 { get; set; } /// /// /// - public global::DeepInfra.AnyOf? Type170 { get; set; } + public global::DeepInfra.ModelInfoOut? Type170 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type171 { get; set; } + public global::System.Collections.Generic.IList? Type171 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type172 { get; set; } + public global::DeepInfra.AnyOf? Type172 { get; set; } /// /// /// - public global::DeepInfra.SchemaVariant? Type173 { get; set; } + public global::System.Collections.Generic.IList? Type173 { get; set; } /// /// /// - public global::DeepInfra.SchemaVariantKey? Type174 { get; set; } + public global::System.Collections.Generic.IList? Type174 { get; set; } /// /// /// - public global::DeepInfra.ModelMetaIn? Type175 { get; set; } + public global::DeepInfra.SchemaVariant? Type175 { get; set; } /// /// /// - public global::DeepInfra.ModelMetadata? Type176 { get; set; } + public global::DeepInfra.SchemaVariantKey? Type176 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type177 { get; set; } + public global::DeepInfra.ModelMetaIn? Type177 { get; set; } /// /// /// - public global::DeepInfra.ModelOut? Type178 { get; set; } + public global::DeepInfra.ModelMetadata? Type178 { get; set; } /// /// /// - public global::DeepInfra.ModelPublicityIn? Type179 { get; set; } + public global::System.Collections.Generic.Dictionary? Type179 { get; set; } /// /// /// - public global::DeepInfra.ModelVersionOut? Type180 { get; set; } + public global::DeepInfra.ModelOut? Type180 { get; set; } /// /// /// - public global::DeepInfra.OpenAIBatch? Type181 { get; set; } + public global::DeepInfra.ModelPublicityIn? Type181 { get; set; } /// /// /// - public global::DeepInfra.OpenAIBatchesIn? Type182 { get; set; } + public global::DeepInfra.ModelVersionOut? Type182 { get; set; } /// /// /// - public global::DeepInfra.OpenAIBatchesInEndpoint? Type183 { get; set; } + public global::DeepInfra.OpenAIBatch? Type183 { get; set; } /// /// /// - public global::DeepInfra.OpenAIBatchesInCompletionWindow? Type184 { get; set; } + public global::DeepInfra.OpenAIBatchesIn? Type184 { get; set; } /// /// /// - public global::DeepInfra.OpenAIChatCompletionsIn? Type185 { get; set; } + public global::DeepInfra.OpenAIBatchesInEndpoint? Type185 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type186 { get; set; } + public global::DeepInfra.OpenAIBatchesInCompletionWindow? Type186 { get; set; } /// /// /// - public global::DeepInfra.AnyOf? Type187 { get; set; } + public global::DeepInfra.OpenAIChatCompletionsIn? Type187 { get; set; } /// /// /// - public global::DeepInfra.AnyOf>? Type188 { get; set; } + public global::System.Collections.Generic.IList>? Type188 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type189 { get; set; } + public global::DeepInfra.AnyOf? Type189 { get; set; } /// /// /// - public global::DeepInfra.AnyOf? Type190 { get; set; } + public global::DeepInfra.AnyOf>? Type190 { get; set; } /// /// /// - public global::DeepInfra.ResponseFormat? Type191 { get; set; } + public global::System.Collections.Generic.IList? Type191 { get; set; } /// /// /// - public global::DeepInfra.ResponseFormatType? Type192 { get; set; } + public global::DeepInfra.AnyOf? Type192 { get; set; } /// /// /// - public global::DeepInfra.StreamOptions? Type193 { get; set; } + public global::DeepInfra.ResponseFormat? Type193 { get; set; } /// /// /// - public global::DeepInfra.OpenAIChatCompletionsInReasoningEffort? Type194 { get; set; } + public global::DeepInfra.ResponseFormatType? Type194 { get; set; } /// /// /// - public global::DeepInfra.OpenAICompletionsIn? Type195 { get; set; } + public global::DeepInfra.StreamOptions? Type195 { get; set; } /// /// /// - public global::DeepInfra.AnyOf>? Type196 { get; set; } + public global::DeepInfra.OpenAIChatCompletionsInReasoningEffort? Type196 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type197 { get; set; } + public global::DeepInfra.OpenAICompletionsIn? Type197 { get; set; } /// /// /// - public global::DeepInfra.OpenAIEmbeddingsIn? Type198 { get; set; } + public global::DeepInfra.AnyOf>? Type198 { get; set; } /// /// /// - public global::DeepInfra.ServiceTier? Type199 { get; set; } + public global::System.Collections.Generic.IList? Type199 { get; set; } /// /// /// - public global::DeepInfra.AnyOf, string>? Type200 { get; set; } + public global::DeepInfra.OpenAIEmbeddingsIn? Type200 { get; set; } /// /// /// - public global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? Type201 { get; set; } + public global::DeepInfra.ServiceTier? Type201 { get; set; } /// /// /// - public global::DeepInfra.OpenAIImageData? Type202 { get; set; } + public global::DeepInfra.AnyOf, string>? Type202 { get; set; } /// /// /// - public global::DeepInfra.OpenAIImagesGenerationsIn? Type203 { get; set; } + public global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? Type203 { get; set; } /// /// /// - public global::DeepInfra.OpenAIImagesOut? Type204 { get; set; } + public global::DeepInfra.OpenAIImageData? Type204 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type205 { get; set; } + public global::DeepInfra.OpenAIImagesGenerationsIn? Type205 { get; set; } /// /// /// - public global::DeepInfra.OpenAIModelOut? Type206 { get; set; } + public global::DeepInfra.OpenAIImagesOut? Type206 { get; set; } /// /// /// - public global::DeepInfra.OpenAIModelsOut? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type208 { get; set; } + public global::DeepInfra.OpenAIModelOut? Type208 { get; set; } /// /// /// - public global::DeepInfra.OpenAITextToSpeechIn? Type209 { get; set; } + public global::DeepInfra.OpenAIModelsOut? Type209 { get; set; } /// /// /// - public global::DeepInfra.OpenRouterDatacenter? Type210 { get; set; } + public global::System.Collections.Generic.IList? Type210 { get; set; } /// /// /// - public global::DeepInfra.OpenRouterModelData? Type211 { get; set; } + public global::DeepInfra.OpenAITextToSpeechIn? Type211 { get; set; } /// /// /// - public global::DeepInfra.OpenRouterPricing? Type212 { get; set; } + public global::DeepInfra.OpenRouterDatacenter? Type212 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type213 { get; set; } + public global::DeepInfra.OpenRouterModelData? Type213 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type214 { get; set; } + public global::DeepInfra.OpenRouterPricing? Type214 { get; set; } /// /// /// - public global::DeepInfra.OpenRouterModelsOut? Type215 { get; set; } + public global::System.Collections.Generic.Dictionary? Type215 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type216 { get; set; } + public global::System.Collections.Generic.IList? Type216 { get; set; } /// /// /// - public global::DeepInfra.RateLimitOut? Type217 { get; set; } + public global::DeepInfra.OpenRouterModelsOut? Type217 { get; set; } /// /// /// - public global::DeepInfra.RateLimitRequestIn? Type218 { get; set; } + public global::System.Collections.Generic.IList? Type218 { get; set; } /// /// /// - public global::DeepInfra.SchemaOut? Type219 { get; set; } + public global::DeepInfra.RateLimitOut? Type219 { get; set; } /// /// /// - public global::DeepInfra.ScopedJWTIn? Type220 { get; set; } + public global::DeepInfra.RateLimitRequestIn? Type220 { get; set; } /// /// /// - public global::DeepInfra.ScopedJWTOut? Type221 { get; set; } + public global::DeepInfra.SchemaOut? Type221 { get; set; } /// /// /// - public global::DeepInfra.SshKeyIn? Type222 { get; set; } + public global::DeepInfra.ScopedJWTIn? Type222 { get; set; } /// /// /// - public global::DeepInfra.SshKeyOut? Type223 { get; set; } + public global::DeepInfra.ScopedJWTOut? Type223 { get; set; } /// /// /// - public global::DeepInfra.UpdateLoraApiRequest? Type224 { get; set; } + public global::DeepInfra.SshKeyIn? Type224 { get; set; } /// /// /// - public global::DeepInfra.ContainerRentalsListV1ContainersGetState? Type225 { get; set; } + public global::DeepInfra.SshKeyOut? Type225 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type226 { get; set; } + public global::DeepInfra.UpdateLoraApiRequest? Type226 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type227 { get; set; } + public global::DeepInfra.ContainerRentalsListV1ContainersGetState? Type227 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type228 { get; set; } + public global::System.Collections.Generic.IList? Type228 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type229 { get; set; } + public global::System.Collections.Generic.IList? Type229 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type230 { get; set; } + public global::System.Collections.Generic.IList? Type230 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type231 { get; set; } + public global::System.Collections.Generic.IList? Type231 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type232 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type233 { get; set; } } } \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatReasoningSettings.Json.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatReasoningSettings.Json.g.cs new file mode 100644 index 0000000..0f40cc2 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatReasoningSettings.Json.g.cs @@ -0,0 +1,92 @@ +#nullable enable + +namespace DeepInfra +{ + public sealed partial class ChatReasoningSettings + { + /// + /// 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::DeepInfra.ChatReasoningSettings? FromJson( + string json, + global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) + { + return global::System.Text.Json.JsonSerializer.Deserialize( + json, + typeof(global::DeepInfra.ChatReasoningSettings), + jsonSerializerContext) as global::DeepInfra.ChatReasoningSettings; + } + + /// + /// 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::DeepInfra.ChatReasoningSettings? 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::DeepInfra.ChatReasoningSettings), + jsonSerializerContext).ConfigureAwait(false)) as global::DeepInfra.ChatReasoningSettings; + } + + /// + /// 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/DeepInfra/Generated/DeepInfra.Models.ChatReasoningSettings.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatReasoningSettings.g.cs new file mode 100644 index 0000000..303b4ad --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatReasoningSettings.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class ChatReasoningSettings + { + /// + /// Constrains effort on reasoning for reasoning models. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("effort")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::DeepInfra.JsonConverters.ChatReasoningSettingsEffortJsonConverter))] + public global::DeepInfra.ChatReasoningSettingsEffort? Effort { get; set; } + + /// + /// Enable or disable reasoning with default parameters. + /// + [global::System.Text.Json.Serialization.JsonPropertyName("enabled")] + public bool? Enabled { 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. + /// + /// + /// Constrains effort on reasoning for reasoning models. + /// + /// + /// Enable or disable reasoning with default parameters. + /// +#if NET7_0_OR_GREATER + [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] +#endif + public ChatReasoningSettings( + global::DeepInfra.ChatReasoningSettingsEffort? effort, + bool? enabled) + { + this.Effort = effort; + this.Enabled = enabled; + } + + /// + /// Initializes a new instance of the class. + /// + public ChatReasoningSettings() + { + } + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatReasoningSettingsEffort.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatReasoningSettingsEffort.g.cs new file mode 100644 index 0000000..97a05b5 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatReasoningSettingsEffort.g.cs @@ -0,0 +1,57 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// Constrains effort on reasoning for reasoning models. + /// + public enum ChatReasoningSettingsEffort + { + /// + /// + /// + Low, + /// + /// + /// + Medium, + /// + /// + /// + High, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class ChatReasoningSettingsEffortExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this ChatReasoningSettingsEffort value) + { + return value switch + { + ChatReasoningSettingsEffort.Low => "low", + ChatReasoningSettingsEffort.Medium => "medium", + ChatReasoningSettingsEffort.High => "high", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static ChatReasoningSettingsEffort? ToEnum(string value) + { + return value switch + { + "low" => ChatReasoningSettingsEffort.Low, + "medium" => ChatReasoningSettingsEffort.Medium, + "high" => ChatReasoningSettingsEffort.High, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIChatCompletionsIn.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIChatCompletionsIn.g.cs index 35d850d..6cc037a 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIChatCompletionsIn.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIChatCompletionsIn.g.cs @@ -153,6 +153,12 @@ public sealed partial class OpenAIChatCompletionsIn [global::System.Text.Json.Serialization.JsonConverter(typeof(global::DeepInfra.JsonConverters.OpenAIChatCompletionsInReasoningEffortJsonConverter))] public global::DeepInfra.OpenAIChatCompletionsInReasoningEffort? ReasoningEffort { get; set; } + /// + /// + /// + [global::System.Text.Json.Serialization.JsonPropertyName("reasoning")] + public global::DeepInfra.ChatReasoningSettings? Reasoning { get; set; } + /// /// A key to identify prompt cache for reuse across requests. If provided, the prompt will be cached and can be reused in subsequent requests with the same key. /// @@ -238,6 +244,7 @@ public sealed partial class OpenAIChatCompletionsIn /// /// Constrains effort on reasoning for reasoning models. Currently supported values are none, low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. Setting to none disables reasoning entirely if the model supports. /// + /// /// /// A key to identify prompt cache for reuse across requests. If provided, the prompt will be cached and can be reused in subsequent requests with the same key. /// @@ -266,6 +273,7 @@ public OpenAIChatCompletionsIn( bool? logprobs, global::DeepInfra.StreamOptions? streamOptions, global::DeepInfra.OpenAIChatCompletionsInReasoningEffort? reasoningEffort, + global::DeepInfra.ChatReasoningSettings? reasoning, string? promptCacheKey) { this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); @@ -289,6 +297,7 @@ public OpenAIChatCompletionsIn( this.Logprobs = logprobs; this.StreamOptions = streamOptions; this.ReasoningEffort = reasoningEffort; + this.Reasoning = reasoning; this.PromptCacheKey = promptCacheKey; } diff --git a/src/libs/DeepInfra/openapi.yaml b/src/libs/DeepInfra/openapi.yaml index f2a6b46..5ff2e88 100644 --- a/src/libs/DeepInfra/openapi.yaml +++ b/src/libs/DeepInfra/openapi.yaml @@ -5551,6 +5551,24 @@ components: title: Name type: string nullable: true + ChatReasoningSettings: + title: ChatReasoningSettings + type: object + properties: + effort: + title: Effort + enum: + - low + - medium + - high + type: string + description: Constrains effort on reasoning for reasoning models. + nullable: true + enabled: + title: Enabled + type: boolean + description: Enable or disable reasoning with default parameters. + nullable: true ChatTools: title: ChatTools required: @@ -7527,6 +7545,8 @@ components: type: string description: 'Constrains effort on reasoning for reasoning models. Currently supported values are none, low, medium, and high. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response. Setting to none disables reasoning entirely if the model supports.' nullable: true + reasoning: + $ref: '#/components/schemas/ChatReasoningSettings' prompt_cache_key: title: Prompt Cache Key type: string