diff --git a/src/libs/DeepInfra/Generated/DeepInfra..JsonSerializerContext.g.cs b/src/libs/DeepInfra/Generated/DeepInfra..JsonSerializerContext.g.cs index f5edad2..050ff87 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra..JsonSerializerContext.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra..JsonSerializerContext.g.cs @@ -85,6 +85,7 @@ namespace DeepInfra typeof(global::DeepInfra.JsonConverters.AnyOfJsonConverter), typeof(global::DeepInfra.JsonConverters.AnyOfJsonConverter), typeof(global::DeepInfra.JsonConverters.AnyOfJsonConverter>), + typeof(global::DeepInfra.JsonConverters.AnyOfJsonConverter), typeof(global::DeepInfra.JsonConverters.AnyOfJsonConverter>), typeof(global::DeepInfra.JsonConverters.AnyOfJsonConverter, string>), typeof(global::DeepInfra.JsonConverters.UnixTimestampJsonConverter), diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiChatCompletions.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiChatCompletions.g.cs index 6934a6e..fd00bad 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiChatCompletions.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiChatCompletions.g.cs @@ -286,7 +286,7 @@ partial void ProcessOpenaiChatCompletionsResponseContent( /// A list of tools the model may call. Currently, only functions are supported as a tool. /// /// - /// Controls which (if any) function is called by the model. none means the model will not call a function and instead generates a message. auto means the model can pick between generating a message or calling a function. specifying a particular function choice is not supported currently.none is the default when no functions are present. auto is the default if functions are present. + /// Controls which (if any) function is called by the model. none means the model will not call a function and instead generates a message. auto means the model can pick between generating a message or calling a function. required means the model must call a function. defined tool means the model must call that specific tool. none is the default when no functions are present. auto is the default if functions are present. /// /// /// @@ -325,7 +325,7 @@ partial void ProcessOpenaiChatCompletionsResponseContent( double? presencePenalty = default, double? frequencyPenalty = default, global::System.Collections.Generic.IList? tools = default, - string? toolChoice = default, + global::DeepInfra.AnyOf? toolChoice = default, global::DeepInfra.ResponseFormat? responseFormat = default, double? repetitionPenalty = default, string? user = default, diff --git a/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiChatCompletions.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiChatCompletions.g.cs index d4e3bb7..01b7fa5 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiChatCompletions.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiChatCompletions.g.cs @@ -76,7 +76,7 @@ public partial interface IDeepInfraClient /// A list of tools the model may call. Currently, only functions are supported as a tool. /// /// - /// Controls which (if any) function is called by the model. none means the model will not call a function and instead generates a message. auto means the model can pick between generating a message or calling a function. specifying a particular function choice is not supported currently.none is the default when no functions are present. auto is the default if functions are present. + /// Controls which (if any) function is called by the model. none means the model will not call a function and instead generates a message. auto means the model can pick between generating a message or calling a function. required means the model must call a function. defined tool means the model must call that specific tool. none is the default when no functions are present. auto is the default if functions are present. /// /// /// @@ -115,7 +115,7 @@ public partial interface IDeepInfraClient double? presencePenalty = default, double? frequencyPenalty = default, global::System.Collections.Generic.IList? tools = default, - string? toolChoice = default, + global::DeepInfra.AnyOf? toolChoice = default, global::DeepInfra.ResponseFormat? responseFormat = default, double? repetitionPenalty = default, string? user = default, diff --git a/src/libs/DeepInfra/Generated/DeepInfra.JsonSerializerContextTypes.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.JsonSerializerContextTypes.g.cs index c82ef0d..d4c8ee9 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.JsonSerializerContextTypes.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.JsonSerializerContextTypes.g.cs @@ -686,166 +686,170 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::DeepInfra.ResponseFormat? Type165 { get; set; } + public global::DeepInfra.AnyOf? Type165 { get; set; } /// /// /// - public global::DeepInfra.ResponseFormatType? Type166 { get; set; } + public global::DeepInfra.ResponseFormat? Type166 { get; set; } /// /// /// - public global::DeepInfra.StreamOptions? Type167 { get; set; } + public global::DeepInfra.ResponseFormatType? Type167 { get; set; } /// /// /// - public global::DeepInfra.OpenAIChatCompletionsInReasoningEffort? Type168 { get; set; } + public global::DeepInfra.StreamOptions? Type168 { get; set; } /// /// /// - public global::DeepInfra.OpenAICompletionsIn? Type169 { get; set; } + public global::DeepInfra.OpenAIChatCompletionsInReasoningEffort? Type169 { get; set; } /// /// /// - public global::DeepInfra.OpenAIEmbeddingsIn? Type170 { get; set; } + public global::DeepInfra.OpenAICompletionsIn? Type170 { get; set; } /// /// /// - public global::DeepInfra.ServiceTier? Type171 { get; set; } + public global::DeepInfra.OpenAIEmbeddingsIn? Type171 { get; set; } /// /// /// - public global::DeepInfra.AnyOf, string>? Type172 { get; set; } + public global::DeepInfra.ServiceTier? Type172 { get; set; } /// /// /// - public global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? Type173 { get; set; } + public global::DeepInfra.AnyOf, string>? Type173 { get; set; } /// /// /// - public global::DeepInfra.OpenAIImageData? Type174 { get; set; } + public global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? Type174 { get; set; } /// /// /// - public global::DeepInfra.OpenAIImagesGenerationsIn? Type175 { get; set; } + public global::DeepInfra.OpenAIImageData? Type175 { get; set; } /// /// /// - public global::DeepInfra.OpenAIImagesResponseFormat? Type176 { get; set; } + public global::DeepInfra.OpenAIImagesGenerationsIn? Type176 { get; set; } /// /// /// - public global::DeepInfra.OpenAIImagesOut? Type177 { get; set; } + public global::DeepInfra.OpenAIImagesResponseFormat? Type177 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type178 { get; set; } + public global::DeepInfra.OpenAIImagesOut? Type178 { get; set; } /// /// /// - public global::DeepInfra.OpenAIImagesVariationsIn? Type179 { get; set; } + public global::System.Collections.Generic.IList? Type179 { get; set; } /// /// /// - public global::DeepInfra.OpenAIModelOut? Type180 { get; set; } + public global::DeepInfra.OpenAIImagesVariationsIn? Type180 { get; set; } /// /// /// - public global::DeepInfra.OpenAIModelsOut? Type181 { get; set; } + public global::DeepInfra.OpenAIModelOut? Type181 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type182 { get; set; } + public global::DeepInfra.OpenAIModelsOut? Type182 { get; set; } /// /// /// - public global::DeepInfra.OpenAITextToSpeechIn? Type183 { get; set; } + public global::System.Collections.Generic.IList? Type183 { get; set; } /// /// /// - public global::DeepInfra.OpenRouterDatacenter? Type184 { get; set; } + public global::DeepInfra.OpenAITextToSpeechIn? Type184 { get; set; } /// /// /// - public global::DeepInfra.OpenRouterModelData? Type185 { get; set; } + public global::DeepInfra.OpenRouterDatacenter? Type185 { get; set; } /// /// /// - public global::DeepInfra.OpenRouterPricing? Type186 { get; set; } + public global::DeepInfra.OpenRouterModelData? Type186 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type187 { get; set; } + public global::DeepInfra.OpenRouterPricing? Type187 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type188 { get; set; } + public global::System.Collections.Generic.Dictionary? Type188 { get; set; } /// /// /// - public global::DeepInfra.OpenRouterModelsOut? Type189 { get; set; } + public global::System.Collections.Generic.IList? Type189 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type190 { get; set; } + public global::DeepInfra.OpenRouterModelsOut? Type190 { get; set; } /// /// /// - public global::DeepInfra.RateLimitOut? Type191 { get; set; } + public global::System.Collections.Generic.IList? Type191 { get; set; } /// /// /// - public global::DeepInfra.RateLimitRequestIn? Type192 { get; set; } + public global::DeepInfra.RateLimitOut? Type192 { get; set; } /// /// /// - public global::DeepInfra.SchemaOut? Type193 { get; set; } + public global::DeepInfra.RateLimitRequestIn? Type193 { get; set; } /// /// /// - public global::DeepInfra.ScopedJWTIn? Type194 { get; set; } + public global::DeepInfra.SchemaOut? Type194 { get; set; } /// /// /// - public global::DeepInfra.ScopedJWTOut? Type195 { get; set; } + public global::DeepInfra.ScopedJWTIn? Type195 { get; set; } /// /// /// - public global::DeepInfra.SshKeyIn? Type196 { get; set; } + public global::DeepInfra.ScopedJWTOut? Type196 { get; set; } /// /// /// - public global::DeepInfra.SshKeyOut? Type197 { get; set; } + public global::DeepInfra.SshKeyIn? Type197 { get; set; } /// /// /// - public global::DeepInfra.UpdateLoraApiRequest? Type198 { get; set; } + public global::DeepInfra.SshKeyOut? Type198 { get; set; } /// /// /// - public global::DeepInfra.ContainerRentalsListV1ContainersGetState? Type199 { get; set; } + public global::DeepInfra.UpdateLoraApiRequest? Type199 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type200 { get; set; } + public global::DeepInfra.ContainerRentalsListV1ContainersGetState? Type200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type201 { get; set; } + public global::System.Collections.Generic.IList? Type201 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type202 { get; set; } + public global::System.Collections.Generic.IList? Type202 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type203 { get; set; } + public global::System.Collections.Generic.IList? Type203 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type204 { get; set; } + public global::System.Collections.Generic.IList? Type204 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type205 { get; set; } + public global::System.Collections.Generic.IList? Type205 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type206 { get; set; } } } \ 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 d1b7afa..cf9c7f3 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIChatCompletionsIn.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIChatCompletionsIn.g.cs @@ -103,10 +103,11 @@ public sealed partial class OpenAIChatCompletionsIn public global::System.Collections.Generic.IList? Tools { get; set; } /// - /// Controls which (if any) function is called by the model. none means the model will not call a function and instead generates a message. auto means the model can pick between generating a message or calling a function. specifying a particular function choice is not supported currently.none is the default when no functions are present. auto is the default if functions are present. + /// Controls which (if any) function is called by the model. none means the model will not call a function and instead generates a message. auto means the model can pick between generating a message or calling a function. required means the model must call a function. defined tool means the model must call that specific tool. none is the default when no functions are present. auto is the default if functions are present. /// [global::System.Text.Json.Serialization.JsonPropertyName("tool_choice")] - public string? ToolChoice { get; set; } + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::DeepInfra.JsonConverters.AnyOfJsonConverter))] + public global::DeepInfra.AnyOf? ToolChoice { get; set; } /// /// @@ -211,7 +212,7 @@ public sealed partial class OpenAIChatCompletionsIn /// A list of tools the model may call. Currently, only functions are supported as a tool. /// /// - /// Controls which (if any) function is called by the model. none means the model will not call a function and instead generates a message. auto means the model can pick between generating a message or calling a function. specifying a particular function choice is not supported currently.none is the default when no functions are present. auto is the default if functions are present. + /// Controls which (if any) function is called by the model. none means the model will not call a function and instead generates a message. auto means the model can pick between generating a message or calling a function. required means the model must call a function. defined tool means the model must call that specific tool. none is the default when no functions are present. auto is the default if functions are present. /// /// /// @@ -248,7 +249,7 @@ public OpenAIChatCompletionsIn( double? presencePenalty, double? frequencyPenalty, global::System.Collections.Generic.IList? tools, - string? toolChoice, + global::DeepInfra.AnyOf? toolChoice, global::DeepInfra.ResponseFormat? responseFormat, double? repetitionPenalty, string? user, diff --git a/src/libs/DeepInfra/openapi.yaml b/src/libs/DeepInfra/openapi.yaml index 6ca34d1..c69c3e3 100644 --- a/src/libs/DeepInfra/openapi.yaml +++ b/src/libs/DeepInfra/openapi.yaml @@ -6398,8 +6398,10 @@ components: nullable: true tool_choice: title: Tool Choice - type: string - description: Controls which (if any) function is called by the model. none means the model will not call a function and instead generates a message. auto means the model can pick between generating a message or calling a function. specifying a particular function choice is not supported currently.none is the default when no functions are present. auto is the default if functions are present. + anyOf: + - type: string + - $ref: '#/components/schemas/ChatTools' + description: Controls which (if any) function is called by the model. none means the model will not call a function and instead generates a message. auto means the model can pick between generating a message or calling a function. required means the model must call a function. defined tool means the model must call that specific tool. none is the default when no functions are present. auto is the default if functions are present. nullable: true response_format: $ref: '#/components/schemas/ResponseFormat'