From 579f7e4c9027ae5807437971d12eb17632eafe9d Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 29 Aug 2025 21:16:29 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...epInfraClient.OpenaiImagesGenerations.g.cs | 57 ++- ...pInfraClient.OpenaiImagesGenerations2.g.cs | 57 ++- ...epInfraClient.OpenaiImagesGenerations.g.cs | 40 +- ...pInfraClient.OpenaiImagesGenerations2.g.cs | 40 +- .../DeepInfra.JsonSerializerContextTypes.g.cs | 348 +++++++++--------- ...nerationsV1ImagesGenerationsPost.Json.g.cs | 92 ----- ...gesGenerationsV1ImagesGenerationsPost.g.cs | 63 ---- ...onsV1OpenaiImagesGenerationsPost.Json.g.cs | 92 ----- ...erationsV1OpenaiImagesGenerationsPost.g.cs | 63 ---- src/libs/DeepInfra/openapi.yaml | 38 +- 10 files changed, 332 insertions(+), 558 deletions(-) delete mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost.Json.g.cs delete mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost.g.cs delete mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost.Json.g.cs delete mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost.g.cs diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiImagesGenerations.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiImagesGenerations.g.cs index b676004..b5d381a 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiImagesGenerations.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiImagesGenerations.g.cs @@ -10,14 +10,14 @@ partial void PrepareOpenaiImagesGenerationsArguments( ref string? xDeepinfraSource, ref string? userAgent, ref string? xiApiKey, - global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost request); + global::DeepInfra.OpenAIImagesGenerationsIn request); partial void PrepareOpenaiImagesGenerationsRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? xDeepinfraSource, string? userAgent, string? xiApiKey, - global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost request); + global::DeepInfra.OpenAIImagesGenerationsIn request); partial void ProcessOpenaiImagesGenerationsResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -38,7 +38,7 @@ partial void ProcessOpenaiImagesGenerationsResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task OpenaiImagesGenerationsAsync( - global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost request, + global::DeepInfra.OpenAIImagesGenerationsIn request, string? xDeepinfraSource = default, string? userAgent = default, string? xiApiKey = default, @@ -100,7 +100,7 @@ partial void ProcessOpenaiImagesGenerationsResponseContent( var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/x-www-form-urlencoded"); + mediaType: "application/json"); __httpRequest.Content = __httpRequestContent; PrepareRequest( @@ -242,25 +242,58 @@ partial void ProcessOpenaiImagesGenerationsResponseContent( /// /// /// - /// - /// - /// + /// + /// The model to use for image generation.
+ /// Example: black-forest-labs/FLUX-1-schnell + /// + /// + /// The number of images to generate.
+ /// Default Value: 1 + /// + /// + /// + /// The size of the generated images. Available sizes depend on the model.
+ /// Default Value: 1024x1024 + /// + /// + /// A unique identifier representing your end-user, which can help to monitor and detect abuse. + /// + /// + /// A text description of desired image(s).
+ /// Example: A photo of an astronaut riding a horse on Mars. + /// + /// + /// The quality of the image that will be generated. + /// + /// + /// The style of the generated images. + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task OpenaiImagesGenerationsAsync( - string prompt, string model, + string prompt, string? xDeepinfraSource = default, string? userAgent = default, string? xiApiKey = default, - global::DeepInfra.OpenAIImagesGenerationsIn? inp = default, + int? n = default, + global::DeepInfra.OpenAIImagesResponseFormat? responseFormat = default, + string? size = default, + string? user = default, + string? quality = default, + string? style = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost + var __request = new global::DeepInfra.OpenAIImagesGenerationsIn { - Inp = inp, - Prompt = prompt, Model = model, + N = n, + ResponseFormat = responseFormat, + Size = size, + User = user, + Prompt = prompt, + Quality = quality, + Style = style, }; return await OpenaiImagesGenerationsAsync( diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiImagesGenerations2.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiImagesGenerations2.g.cs index 80a6d22..26de635 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiImagesGenerations2.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.OpenaiImagesGenerations2.g.cs @@ -10,14 +10,14 @@ partial void PrepareOpenaiImagesGenerations2Arguments( ref string? xDeepinfraSource, ref string? userAgent, ref string? xiApiKey, - global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost request); + global::DeepInfra.OpenAIImagesGenerationsIn request); partial void PrepareOpenaiImagesGenerations2Request( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string? xDeepinfraSource, string? userAgent, string? xiApiKey, - global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost request); + global::DeepInfra.OpenAIImagesGenerationsIn request); partial void ProcessOpenaiImagesGenerations2Response( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -38,7 +38,7 @@ partial void ProcessOpenaiImagesGenerations2ResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task OpenaiImagesGenerations2Async( - global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost request, + global::DeepInfra.OpenAIImagesGenerationsIn request, string? xDeepinfraSource = default, string? userAgent = default, string? xiApiKey = default, @@ -100,7 +100,7 @@ partial void ProcessOpenaiImagesGenerations2ResponseContent( var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, - mediaType: "application/x-www-form-urlencoded"); + mediaType: "application/json"); __httpRequest.Content = __httpRequestContent; PrepareRequest( @@ -242,25 +242,58 @@ partial void ProcessOpenaiImagesGenerations2ResponseContent( /// /// /// - /// - /// - /// + /// + /// The model to use for image generation.
+ /// Example: black-forest-labs/FLUX-1-schnell + /// + /// + /// The number of images to generate.
+ /// Default Value: 1 + /// + /// + /// + /// The size of the generated images. Available sizes depend on the model.
+ /// Default Value: 1024x1024 + /// + /// + /// A unique identifier representing your end-user, which can help to monitor and detect abuse. + /// + /// + /// A text description of desired image(s).
+ /// Example: A photo of an astronaut riding a horse on Mars. + /// + /// + /// The quality of the image that will be generated. + /// + /// + /// The style of the generated images. + /// /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task OpenaiImagesGenerations2Async( - string prompt, string model, + string prompt, string? xDeepinfraSource = default, string? userAgent = default, string? xiApiKey = default, - global::DeepInfra.OpenAIImagesGenerationsIn? inp = default, + int? n = default, + global::DeepInfra.OpenAIImagesResponseFormat? responseFormat = default, + string? size = default, + string? user = default, + string? quality = default, + string? style = default, global::System.Threading.CancellationToken cancellationToken = default) { - var __request = new global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost + var __request = new global::DeepInfra.OpenAIImagesGenerationsIn { - Inp = inp, - Prompt = prompt, Model = model, + N = n, + ResponseFormat = responseFormat, + Size = size, + User = user, + Prompt = prompt, + Quality = quality, + Style = style, }; return await OpenaiImagesGenerations2Async( diff --git a/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiImagesGenerations.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiImagesGenerations.g.cs index 831e8c0..b1abad6 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiImagesGenerations.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiImagesGenerations.g.cs @@ -15,7 +15,7 @@ public partial interface IDeepInfraClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task OpenaiImagesGenerationsAsync( - global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost request, + global::DeepInfra.OpenAIImagesGenerationsIn request, string? xDeepinfraSource = default, string? userAgent = default, string? xiApiKey = default, @@ -28,18 +28,46 @@ public partial interface IDeepInfraClient /// /// /// - /// - /// - /// + /// + /// The model to use for image generation.
+ /// Example: black-forest-labs/FLUX-1-schnell + /// + /// + /// The number of images to generate.
+ /// Default Value: 1 + /// + /// + /// + /// The size of the generated images. Available sizes depend on the model.
+ /// Default Value: 1024x1024 + /// + /// + /// A unique identifier representing your end-user, which can help to monitor and detect abuse. + /// + /// + /// A text description of desired image(s).
+ /// Example: A photo of an astronaut riding a horse on Mars. + /// + /// + /// The quality of the image that will be generated. + /// + /// + /// The style of the generated images. + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task OpenaiImagesGenerationsAsync( - string prompt, string model, + string prompt, string? xDeepinfraSource = default, string? userAgent = default, string? xiApiKey = default, - global::DeepInfra.OpenAIImagesGenerationsIn? inp = default, + int? n = default, + global::DeepInfra.OpenAIImagesResponseFormat? responseFormat = default, + string? size = default, + string? user = default, + string? quality = default, + string? style = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiImagesGenerations2.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiImagesGenerations2.g.cs index 62c1fff..ad69f4b 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiImagesGenerations2.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.IDeepInfraClient.OpenaiImagesGenerations2.g.cs @@ -15,7 +15,7 @@ public partial interface IDeepInfraClient /// The token to cancel the operation with /// global::System.Threading.Tasks.Task OpenaiImagesGenerations2Async( - global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost request, + global::DeepInfra.OpenAIImagesGenerationsIn request, string? xDeepinfraSource = default, string? userAgent = default, string? xiApiKey = default, @@ -28,18 +28,46 @@ public partial interface IDeepInfraClient /// /// /// - /// - /// - /// + /// + /// The model to use for image generation.
+ /// Example: black-forest-labs/FLUX-1-schnell + /// + /// + /// The number of images to generate.
+ /// Default Value: 1 + /// + /// + /// + /// The size of the generated images. Available sizes depend on the model.
+ /// Default Value: 1024x1024 + /// + /// + /// A unique identifier representing your end-user, which can help to monitor and detect abuse. + /// + /// + /// A text description of desired image(s).
+ /// Example: A photo of an astronaut riding a horse on Mars. + /// + /// + /// The quality of the image that will be generated. + /// + /// + /// The style of the generated images. + /// /// The token to cancel the operation with /// global::System.Threading.Tasks.Task OpenaiImagesGenerations2Async( - string prompt, string model, + string prompt, string? xDeepinfraSource = default, string? userAgent = default, string? xiApiKey = default, - global::DeepInfra.OpenAIImagesGenerationsIn? inp = default, + int? n = default, + global::DeepInfra.OpenAIImagesResponseFormat? responseFormat = default, + string? size = default, + string? user = default, + string? quality = default, + string? style = default, global::System.Threading.CancellationToken cancellationToken = default); } } \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.JsonSerializerContextTypes.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.JsonSerializerContextTypes.g.cs index 5e0b8ec..28b1e78 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.JsonSerializerContextTypes.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.JsonSerializerContextTypes.g.cs @@ -238,690 +238,682 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost? Type53 { get; set; } + public global::DeepInfra.BodyOpenaiImagesVariationsV1ImagesVariationsPost? Type53 { get; set; } /// /// /// - public global::DeepInfra.OpenAIImagesGenerationsIn? Type54 { get; set; } + public global::DeepInfra.OpenAIImagesVariationsIn? Type54 { get; set; } /// /// /// - public global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost? Type55 { get; set; } + public global::DeepInfra.BodyOpenaiImagesVariationsV1OpenaiImagesVariationsPost? Type55 { get; set; } /// /// /// - public global::DeepInfra.BodyOpenaiImagesVariationsV1ImagesVariationsPost? Type56 { get; set; } + public global::DeepInfra.BodyUpdateVoiceV1VoicesVoiceIdEditPost? Type56 { get; set; } /// /// /// - public global::DeepInfra.OpenAIImagesVariationsIn? Type57 { get; set; } + public global::DeepInfra.ChatCompletionAssistantMessage? Type57 { get; set; } /// /// /// - public global::DeepInfra.BodyOpenaiImagesVariationsV1OpenaiImagesVariationsPost? Type58 { get; set; } + public object? Type58 { get; set; } /// /// /// - public global::DeepInfra.BodyUpdateVoiceV1VoicesVoiceIdEditPost? Type59 { get; set; } + public global::DeepInfra.ChatCompletionAssistantMessageRole? Type59 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionAssistantMessage? Type60 { get; set; } + public global::DeepInfra.AnyOf>? Type60 { get; set; } /// /// /// - public object? Type61 { get; set; } + public global::System.Collections.Generic.IList? Type61 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionAssistantMessageRole? Type62 { get; set; } + public global::DeepInfra.ChatCompletionContentPartText? Type62 { get; set; } /// /// /// - public global::DeepInfra.AnyOf>? Type63 { get; set; } + public global::DeepInfra.ChatCompletionContentPartTextType? Type63 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type64 { get; set; } + public global::System.Collections.Generic.IList? Type64 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionContentPartText? Type65 { get; set; } + public global::DeepInfra.ChatCompletionMessageToolCall? Type65 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionContentPartTextType? Type66 { get; set; } + public global::DeepInfra.Function? Type66 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type67 { get; set; } + public global::DeepInfra.ChatCompletionContentPartAudio? Type67 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionMessageToolCall? Type68 { get; set; } + public global::DeepInfra.ChatCompletionContentPartAudioType? Type68 { get; set; } /// /// /// - public global::DeepInfra.Function? Type69 { get; set; } + public global::DeepInfra.InputAudio? Type69 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionContentPartAudio? Type70 { get; set; } + public global::DeepInfra.InputAudioFormat? Type70 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionContentPartAudioType? Type71 { get; set; } + public global::DeepInfra.ChatCompletionContentPartImage? Type71 { get; set; } /// /// /// - public global::DeepInfra.InputAudio? Type72 { get; set; } + public global::DeepInfra.ChatCompletionContentPartImageType? Type72 { get; set; } /// /// /// - public global::DeepInfra.InputAudioFormat? Type73 { get; set; } + public global::DeepInfra.ImageURL? Type73 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionContentPartImage? Type74 { get; set; } + public global::DeepInfra.ImageURLDetail? Type74 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionContentPartImageType? Type75 { get; set; } + public global::DeepInfra.ChatCompletionSystemMessage? Type75 { get; set; } /// /// /// - public global::DeepInfra.ImageURL? Type76 { get; set; } + public global::DeepInfra.ChatCompletionSystemMessageRole? Type76 { get; set; } /// /// /// - public global::DeepInfra.ImageURLDetail? Type77 { get; set; } + public global::DeepInfra.ChatCompletionToolMessage? Type77 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionSystemMessage? Type78 { get; set; } + public global::DeepInfra.ChatCompletionToolMessageRole? Type78 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionSystemMessageRole? Type79 { get; set; } + public global::DeepInfra.ChatCompletionUserMessage? Type79 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionToolMessage? Type80 { get; set; } + public global::DeepInfra.ChatCompletionUserMessageRole? Type80 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionToolMessageRole? Type81 { get; set; } + public global::DeepInfra.AnyOf>>? Type81 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionUserMessage? Type82 { get; set; } + public global::System.Collections.Generic.IList>? Type82 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionUserMessageRole? Type83 { get; set; } + public global::DeepInfra.AnyOf? Type83 { get; set; } /// /// /// - public global::DeepInfra.AnyOf>>? Type84 { get; set; } + public global::DeepInfra.ChatTools? Type84 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type85 { get; set; } + public global::DeepInfra.FunctionDefinition? Type85 { get; set; } /// /// /// - public global::DeepInfra.AnyOf? Type86 { get; set; } + public global::DeepInfra.ContainerRentalOut? Type86 { get; set; } /// /// /// - public global::DeepInfra.ChatTools? Type87 { get; set; } + public global::DeepInfra.ContainerRentalStateOut? Type87 { get; set; } /// /// /// - public global::DeepInfra.FunctionDefinition? Type88 { get; set; } + public global::DeepInfra.ContainerRentalStartIn? Type88 { get; set; } /// /// /// - public global::DeepInfra.ContainerRentalOut? Type89 { get; set; } + public global::DeepInfra.ContainerRentalStartOut? Type89 { get; set; } /// /// /// - public global::DeepInfra.ContainerRentalStateOut? Type90 { get; set; } + public global::DeepInfra.ContainerRentalUpdateIn? Type90 { get; set; } /// /// /// - public global::DeepInfra.ContainerRentalStartIn? Type91 { get; set; } + public global::DeepInfra.CreateLoraApiRequest? Type91 { get; set; } /// /// /// - public global::DeepInfra.ContainerRentalStartOut? Type92 { get; set; } + public global::DeepInfra.SourceModel? Type92 { get; set; } /// /// /// - public global::DeepInfra.ContainerRentalUpdateIn? Type93 { get; set; } + public global::DeepInfra.SourceTypeEnum? Type93 { get; set; } /// /// /// - public global::DeepInfra.CreateLoraApiRequest? Type94 { get; set; } + public global::DeepInfra.DeepError? Type94 { get; set; } /// /// /// - public global::DeepInfra.SourceModel? Type95 { get; set; } + public global::DeepInfra.DeployDelete? Type95 { get; set; } /// /// /// - public global::DeepInfra.SourceTypeEnum? Type96 { get; set; } + public global::DeepInfra.DeployGPUAvailability? Type96 { get; set; } /// /// /// - public global::DeepInfra.DeepError? Type97 { get; set; } + public global::System.Collections.Generic.IList? Type97 { get; set; } /// /// /// - public global::DeepInfra.DeployDelete? Type98 { get; set; } + public global::DeepInfra.GPUAvailabilityInfo? Type98 { get; set; } /// /// /// - public global::DeepInfra.DeployGPUAvailability? Type99 { get; set; } + public global::DeepInfra.DeployGPUs? Type99 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type100 { get; set; } + public global::DeepInfra.DeployInstances? Type100 { get; set; } /// /// /// - public global::DeepInfra.GPUAvailabilityInfo? Type101 { get; set; } + public global::DeepInfra.DeployLLMConfig? Type101 { get; set; } /// /// /// - public global::DeepInfra.DeployGPUs? Type102 { get; set; } + public global::DeepInfra.HFWeights? Type102 { get; set; } /// /// /// - public global::DeepInfra.DeployInstances? Type103 { get; set; } + public global::DeepInfra.DeployLLMIn? Type103 { get; set; } /// /// /// - public global::DeepInfra.DeployLLMConfig? Type104 { get; set; } + public global::DeepInfra.ScaleSettings? Type104 { get; set; } /// /// /// - public global::DeepInfra.HFWeights? Type105 { get; set; } + public global::DeepInfra.DeployLLMUpdateIn? Type105 { get; set; } /// /// /// - public global::DeepInfra.DeployLLMIn? Type106 { get; set; } + public global::DeepInfra.DeployModelIn? Type106 { get; set; } /// /// /// - public global::DeepInfra.ScaleSettings? Type107 { get; set; } + public global::DeepInfra.ModelProvider? Type107 { get; set; } /// /// /// - public global::DeepInfra.DeployLLMUpdateIn? Type108 { get; set; } + public global::DeepInfra.DeployResult? Type108 { get; set; } /// /// /// - public global::DeepInfra.DeployModelIn? Type109 { get; set; } + public global::DeepInfra.DeployStatusOut? Type109 { get; set; } /// /// /// - public global::DeepInfra.ModelProvider? Type110 { get; set; } + public global::DeepInfra.DeployType? Type110 { get; set; } /// /// /// - public global::DeepInfra.DeployResult? Type111 { get; set; } + public global::System.Collections.Generic.IList? Type111 { get; set; } /// /// /// - public global::DeepInfra.DeployStatusOut? Type112 { get; set; } + public global::DeepInfra.DeploymentLogQueryOut? Type112 { get; set; } /// /// /// - public global::DeepInfra.DeployType? Type113 { get; set; } + public global::System.Collections.Generic.Dictionary>>? Type113 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type114 { get; set; } + public global::System.Collections.Generic.IList>? Type114 { get; set; } /// /// /// - public global::DeepInfra.DeploymentLogQueryOut? Type115 { get; set; } + public global::DeepInfra.DeploymentOut? Type115 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary>>? Type116 { get; set; } + public global::DeepInfra.DeploymentStatsOut? Type116 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type117 { get; set; } + public global::DeepInfra.DetailedDeploymentStatsOut? Type117 { get; set; } /// /// /// - public global::DeepInfra.DeploymentOut? Type118 { get; set; } + public global::DeepInfra.LLMDeploymentStatsOut? Type118 { get; set; } /// /// /// - public global::DeepInfra.DeploymentStatsOut? Type119 { get; set; } + public global::DeepInfra.EmbeddingsDeploymentStatsOut? Type119 { get; set; } /// /// /// - public global::DeepInfra.DetailedDeploymentStatsOut? Type120 { get; set; } + public global::DeepInfra.TimeDeploymentStatsOut? Type120 { get; set; } /// /// /// - public global::DeepInfra.LLMDeploymentStatsOut? Type121 { get; set; } + public global::DeepInfra.DisplayNameIn? Type121 { get; set; } /// /// /// - public global::DeepInfra.EmbeddingsDeploymentStatsOut? Type122 { get; set; } + public global::DeepInfra.ElevenLabsTextToSpeechIn? Type122 { get; set; } /// /// /// - public global::DeepInfra.TimeDeploymentStatsOut? Type123 { get; set; } + public global::DeepInfra.TtsResponseFormat? Type123 { get; set; } /// /// /// - public global::DeepInfra.DisplayNameIn? Type124 { get; set; } + public global::DeepInfra.EmailsOut? Type124 { get; set; } /// /// /// - public global::DeepInfra.ElevenLabsTextToSpeechIn? Type125 { get; set; } + public global::DeepInfra.FAQEntryOut? Type125 { get; set; } /// /// /// - public global::DeepInfra.TtsResponseFormat? Type126 { get; set; } + public global::DeepInfra.FeedbackIn? Type126 { get; set; } /// /// /// - public global::DeepInfra.EmailsOut? Type127 { get; set; } + public global::DeepInfra.GetVoicesOut? Type127 { get; set; } /// /// /// - public global::DeepInfra.FAQEntryOut? Type128 { get; set; } + public global::System.Collections.Generic.IList? Type128 { get; set; } /// /// /// - public global::DeepInfra.FeedbackIn? Type129 { get; set; } + public global::DeepInfra.Voice? Type129 { get; set; } /// /// /// - public global::DeepInfra.GetVoicesOut? Type130 { get; set; } + public global::DeepInfra.HFModel? Type130 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type131 { get; set; } + public global::DeepInfra.HFTasksE? Type131 { get; set; } /// /// /// - public global::DeepInfra.Voice? Type132 { get; set; } + public global::DeepInfra.InspectScopedJWTOut? Type132 { get; set; } /// /// /// - public global::DeepInfra.HFModel? Type133 { get; set; } + public global::DeepInfra.JsonSchema? Type133 { get; set; } /// /// /// - public global::DeepInfra.HFTasksE? Type134 { get; set; } + public global::DeepInfra.LogQueryOut? Type134 { get; set; } /// /// /// - public global::DeepInfra.InspectScopedJWTOut? Type135 { get; set; } + public global::DeepInfra.LoraModelUploadIn? Type135 { get; set; } /// /// /// - public global::DeepInfra.JsonSchema? Type136 { get; set; } + public global::DeepInfra.Me? Type136 { get; set; } /// /// /// - public global::DeepInfra.LogQueryOut? Type137 { get; set; } + public global::DeepInfra.MeVercelConnection? Type137 { get; set; } /// /// /// - public global::DeepInfra.LoraModelUploadIn? Type138 { get; set; } + public global::DeepInfra.MeIn? Type138 { get; set; } /// /// /// - public global::DeepInfra.Me? Type139 { get; set; } + public global::DeepInfra.ModelDocBlock? Type139 { get; set; } /// /// /// - public global::DeepInfra.MeVercelConnection? Type140 { get; set; } + public global::DeepInfra.ModelDocBlockKey? Type140 { get; set; } /// /// /// - public global::DeepInfra.MeIn? Type141 { get; set; } + public global::DeepInfra.ModelFamilyOut? Type141 { get; set; } /// /// /// - public global::DeepInfra.ModelDocBlock? Type142 { get; set; } + public global::System.Collections.Generic.IList? Type142 { get; set; } /// /// /// - public global::DeepInfra.ModelDocBlockKey? Type143 { get; set; } + public global::DeepInfra.PricingPageSectionOut? Type143 { get; set; } /// /// /// - public global::DeepInfra.ModelFamilyOut? Type144 { get; set; } + public global::DeepInfra.PricingType? Type144 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type145 { get; set; } + public global::System.Collections.Generic.IList? Type145 { get; set; } /// /// /// - public global::DeepInfra.PricingPageSectionOut? Type146 { get; set; } + public global::DeepInfra.PricingPageEntryOut? Type146 { get; set; } /// /// /// - public global::DeepInfra.PricingType? Type147 { get; set; } + public global::DeepInfra.AnyOf? Type147 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type148 { get; set; } + public global::DeepInfra.ModelPricingTime? Type148 { get; set; } /// /// /// - public global::DeepInfra.PricingPageEntryOut? Type149 { get; set; } + public global::DeepInfra.ModelPricingTokens? Type149 { get; set; } /// /// /// - public global::DeepInfra.AnyOf? Type150 { get; set; } + public global::DeepInfra.ModelPricingInputLength? Type150 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingTime? Type151 { get; set; } + public global::DeepInfra.ModelPricingInputTokens? Type151 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingTokens? Type152 { get; set; } + public global::DeepInfra.ModelPricingUptime? Type152 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingInputLength? Type153 { get; set; } + public global::DeepInfra.ModelPricingInputCharacterLength? Type153 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingInputTokens? Type154 { get; set; } + public global::DeepInfra.ModelPricingImageUnits? Type154 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingUptime? Type155 { get; set; } + public global::DeepInfra.ModelPricingOutputLength? Type155 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingInputCharacterLength? Type156 { get; set; } + public global::System.Collections.Generic.IList? Type156 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingImageUnits? Type157 { get; set; } + public global::DeepInfra.ModelFieldInfo? Type157 { get; set; } /// /// /// - public global::DeepInfra.ModelPricingOutputLength? Type158 { get; set; } + public global::System.Collections.Generic.IList? Type158 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type159 { get; set; } + public global::DeepInfra.ModelInfoOut? Type159 { get; set; } /// /// /// - public global::DeepInfra.ModelFieldInfo? Type160 { get; set; } + public global::System.Collections.Generic.IList? Type160 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type161 { get; set; } + public global::DeepInfra.AnyOf? Type161 { get; set; } /// /// /// - public global::DeepInfra.ModelInfoOut? Type162 { get; set; } + public global::System.Collections.Generic.IList? Type162 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type163 { get; set; } + public global::System.Collections.Generic.IList? Type163 { get; set; } /// /// /// - public global::DeepInfra.AnyOf? Type164 { get; set; } + public global::DeepInfra.SchemaVariant? Type164 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type165 { get; set; } + public global::DeepInfra.SchemaVariantKey? Type165 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type166 { get; set; } + public global::DeepInfra.ModelMetaIn? Type166 { get; set; } /// /// /// - public global::DeepInfra.SchemaVariant? Type167 { get; set; } + public global::DeepInfra.ModelMetadata? Type167 { get; set; } /// /// /// - public global::DeepInfra.SchemaVariantKey? Type168 { get; set; } + public global::System.Collections.Generic.Dictionary? Type168 { get; set; } /// /// /// - public global::DeepInfra.ModelMetaIn? Type169 { get; set; } + public global::DeepInfra.ModelOut? Type169 { get; set; } /// /// /// - public global::DeepInfra.ModelMetadata? Type170 { get; set; } + public global::DeepInfra.ModelPublicityIn? Type170 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type171 { get; set; } + public global::DeepInfra.ModelVersionOut? Type171 { get; set; } /// /// /// - public global::DeepInfra.ModelOut? Type172 { get; set; } + public global::DeepInfra.OpenAIBatch? Type172 { get; set; } /// /// /// - public global::DeepInfra.ModelPublicityIn? Type173 { get; set; } + public global::DeepInfra.OpenAIBatchesIn? Type173 { get; set; } /// /// /// - public global::DeepInfra.ModelVersionOut? Type174 { get; set; } + public global::DeepInfra.OpenAIBatchesInEndpoint? Type174 { get; set; } /// /// /// - public global::DeepInfra.OpenAIBatch? Type175 { get; set; } + public global::DeepInfra.OpenAIBatchesInCompletionWindow? Type175 { get; set; } /// /// /// - public global::DeepInfra.OpenAIBatchesIn? Type176 { get; set; } + public global::DeepInfra.OpenAIChatCompletionsIn? Type176 { get; set; } /// /// /// - public global::DeepInfra.OpenAIBatchesInEndpoint? Type177 { get; set; } + public global::System.Collections.Generic.IList>? Type177 { get; set; } /// /// /// - public global::DeepInfra.OpenAIBatchesInCompletionWindow? Type178 { get; set; } + public global::DeepInfra.AnyOf? Type178 { get; set; } /// /// /// - public global::DeepInfra.OpenAIChatCompletionsIn? Type179 { get; set; } + public global::DeepInfra.AnyOf>? Type179 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type180 { get; set; } + public global::System.Collections.Generic.IList? Type180 { get; set; } /// /// /// - public global::DeepInfra.AnyOf? Type181 { get; set; } + public global::DeepInfra.AnyOf? Type181 { get; set; } /// /// /// - public global::DeepInfra.AnyOf>? Type182 { get; set; } + public global::DeepInfra.ResponseFormat? Type182 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type183 { get; set; } + public global::DeepInfra.ResponseFormatType? Type183 { get; set; } /// /// /// - public global::DeepInfra.AnyOf? Type184 { get; set; } + public global::DeepInfra.StreamOptions? Type184 { get; set; } /// /// /// - public global::DeepInfra.ResponseFormat? Type185 { get; set; } + public global::DeepInfra.OpenAIChatCompletionsInReasoningEffort? Type185 { get; set; } /// /// /// - public global::DeepInfra.ResponseFormatType? Type186 { get; set; } + public global::DeepInfra.OpenAICompletionsIn? Type186 { get; set; } /// /// /// - public global::DeepInfra.StreamOptions? Type187 { get; set; } + public global::DeepInfra.AnyOf>? Type187 { get; set; } /// /// /// - public global::DeepInfra.OpenAIChatCompletionsInReasoningEffort? Type188 { get; set; } + public global::System.Collections.Generic.IList? Type188 { get; set; } /// /// /// - public global::DeepInfra.OpenAICompletionsIn? Type189 { get; set; } + public global::DeepInfra.OpenAIEmbeddingsIn? Type189 { get; set; } /// /// /// - public global::DeepInfra.AnyOf>? Type190 { get; set; } + public global::DeepInfra.ServiceTier? Type190 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type191 { get; set; } + public global::DeepInfra.AnyOf, string>? Type191 { get; set; } /// /// /// - public global::DeepInfra.OpenAIEmbeddingsIn? Type192 { get; set; } + public global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? Type192 { get; set; } /// /// /// - public global::DeepInfra.ServiceTier? Type193 { get; set; } + public global::DeepInfra.OpenAIImageData? Type193 { get; set; } /// /// /// - public global::DeepInfra.AnyOf, string>? Type194 { get; set; } + public global::DeepInfra.OpenAIImagesGenerationsIn? Type194 { get; set; } /// /// /// - public global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? Type195 { get; set; } + public global::DeepInfra.OpenAIImagesOut? Type195 { get; set; } /// /// /// - public global::DeepInfra.OpenAIImageData? Type196 { get; set; } + public global::System.Collections.Generic.IList? Type196 { get; set; } /// /// /// - public global::DeepInfra.OpenAIImagesOut? Type197 { get; set; } + public global::DeepInfra.OpenAIModelOut? Type197 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type198 { get; set; } + public global::DeepInfra.OpenAIModelsOut? Type198 { get; set; } /// /// /// - public global::DeepInfra.OpenAIModelOut? Type199 { get; set; } + public global::System.Collections.Generic.IList? Type199 { get; set; } /// /// /// - public global::DeepInfra.OpenAIModelsOut? Type200 { get; set; } + public global::DeepInfra.OpenAITextToSpeechIn? Type200 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type201 { get; set; } + public global::DeepInfra.OpenRouterDatacenter? Type201 { get; set; } /// /// /// - public global::DeepInfra.OpenAITextToSpeechIn? Type202 { get; set; } + public global::DeepInfra.OpenRouterModelData? Type202 { get; set; } /// /// /// - public global::DeepInfra.OpenRouterDatacenter? Type203 { get; set; } + public global::DeepInfra.OpenRouterPricing? Type203 { get; set; } /// /// /// - public global::DeepInfra.OpenRouterModelData? Type204 { get; set; } + public global::System.Collections.Generic.Dictionary? Type204 { get; set; } /// /// /// - public global::DeepInfra.OpenRouterPricing? Type205 { get; set; } + public global::System.Collections.Generic.IList? Type205 { get; set; } /// /// /// - public global::System.Collections.Generic.Dictionary? Type206 { get; set; } + public global::DeepInfra.OpenRouterModelsOut? Type206 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type207 { get; set; } + public global::System.Collections.Generic.IList? Type207 { get; set; } /// /// /// - public global::DeepInfra.OpenRouterModelsOut? Type208 { get; set; } + public global::DeepInfra.RateLimitOut? Type208 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type209 { get; set; } + public global::DeepInfra.RateLimitRequestIn? Type209 { get; set; } /// /// /// - public global::DeepInfra.RateLimitOut? Type210 { get; set; } + public global::DeepInfra.SchemaOut? Type210 { get; set; } /// /// /// - public global::DeepInfra.RateLimitRequestIn? Type211 { get; set; } + public global::DeepInfra.ScopedJWTIn? Type211 { get; set; } /// /// /// - public global::DeepInfra.SchemaOut? Type212 { get; set; } + public global::DeepInfra.ScopedJWTOut? Type212 { get; set; } /// /// /// - public global::DeepInfra.ScopedJWTIn? Type213 { get; set; } + public global::DeepInfra.SshKeyIn? Type213 { get; set; } /// /// /// - public global::DeepInfra.ScopedJWTOut? Type214 { get; set; } + public global::DeepInfra.SshKeyOut? Type214 { get; set; } /// /// /// - public global::DeepInfra.SshKeyIn? Type215 { get; set; } + public global::DeepInfra.UpdateLoraApiRequest? Type215 { get; set; } /// /// /// - public global::DeepInfra.SshKeyOut? Type216 { get; set; } + public global::DeepInfra.ContainerRentalsListV1ContainersGetState? Type216 { get; set; } /// /// /// - public global::DeepInfra.UpdateLoraApiRequest? Type217 { get; set; } + public global::System.Collections.Generic.IList? Type217 { get; set; } /// /// /// - public global::DeepInfra.ContainerRentalsListV1ContainersGetState? Type218 { get; set; } + public global::System.Collections.Generic.IList? Type218 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type219 { get; set; } + public global::System.Collections.Generic.IList? Type219 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type220 { get; set; } + public global::System.Collections.Generic.IList? Type220 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type221 { get; set; } + public global::System.Collections.Generic.IList? Type221 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type222 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type223 { get; set; } - /// - /// - /// - public global::System.Collections.Generic.IList? Type224 { get; set; } + public global::System.Collections.Generic.IList? Type222 { get; set; } } } \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost.Json.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost.Json.g.cs deleted file mode 100644 index ff89a01..0000000 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace DeepInfra -{ - public sealed partial class BodyOpenaiImagesGenerationsV1ImagesGenerationsPost - { - /// - /// 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.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost), - jsonSerializerContext) as global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost; - } - - /// - /// 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.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost? 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.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost), - jsonSerializerContext).ConfigureAwait(false)) as global::DeepInfra.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost; - } - - /// - /// 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.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost.g.cs deleted file mode 100644 index 2fe87d9..0000000 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1ImagesGenerationsPost.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace DeepInfra -{ - /// - /// - /// - public sealed partial class BodyOpenaiImagesGenerationsV1ImagesGenerationsPost - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inp")] - public global::DeepInfra.OpenAIImagesGenerationsIn? Inp { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Prompt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Model { 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. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public BodyOpenaiImagesGenerationsV1ImagesGenerationsPost( - string prompt, - string model, - global::DeepInfra.OpenAIImagesGenerationsIn? inp) - { - this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); - this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); - this.Inp = inp; - } - - /// - /// Initializes a new instance of the class. - /// - public BodyOpenaiImagesGenerationsV1ImagesGenerationsPost() - { - } - } -} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost.Json.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost.Json.g.cs deleted file mode 100644 index 034d3c4..0000000 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost.Json.g.cs +++ /dev/null @@ -1,92 +0,0 @@ -#nullable enable - -namespace DeepInfra -{ - public sealed partial class BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost - { - /// - /// 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.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost? FromJson( - string json, - global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext) - { - return global::System.Text.Json.JsonSerializer.Deserialize( - json, - typeof(global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost), - jsonSerializerContext) as global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost; - } - - /// - /// 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.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost? 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.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost), - jsonSerializerContext).ConfigureAwait(false)) as global::DeepInfra.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost; - } - - /// - /// 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.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost.g.cs deleted file mode 100644 index 54af4ad..0000000 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace DeepInfra -{ - /// - /// - /// - public sealed partial class BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost - { - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("inp")] - public global::DeepInfra.OpenAIImagesGenerationsIn? Inp { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("prompt")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Prompt { get; set; } - - /// - /// - /// - [global::System.Text.Json.Serialization.JsonPropertyName("model")] - [global::System.Text.Json.Serialization.JsonRequired] - public required string Model { 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. - /// - /// - /// - /// -#if NET7_0_OR_GREATER - [global::System.Diagnostics.CodeAnalysis.SetsRequiredMembers] -#endif - public BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost( - string prompt, - string model, - global::DeepInfra.OpenAIImagesGenerationsIn? inp) - { - this.Prompt = prompt ?? throw new global::System.ArgumentNullException(nameof(prompt)); - this.Model = model ?? throw new global::System.ArgumentNullException(nameof(model)); - this.Inp = inp; - } - - /// - /// Initializes a new instance of the class. - /// - public BodyOpenaiImagesGenerationsV1OpenaiImagesGenerationsPost() - { - } - } -} \ No newline at end of file diff --git a/src/libs/DeepInfra/openapi.yaml b/src/libs/DeepInfra/openapi.yaml index 6e3f7b9..3d3f571 100644 --- a/src/libs/DeepInfra/openapi.yaml +++ b/src/libs/DeepInfra/openapi.yaml @@ -2136,9 +2136,9 @@ paths: nullable: true requestBody: content: - application/x-www-form-urlencoded: + application/json: schema: - $ref: '#/components/schemas/Body_openai_images_generations_v1_images_generations_post' + $ref: '#/components/schemas/OpenAIImagesGenerationsIn' required: true responses: '200': @@ -2181,9 +2181,9 @@ paths: nullable: true requestBody: content: - application/x-www-form-urlencoded: + application/json: schema: - $ref: '#/components/schemas/Body_openai_images_generations_v1_openai_images_generations_post' + $ref: '#/components/schemas/OpenAIImagesGenerationsIn' required: true responses: '200': @@ -5075,36 +5075,6 @@ components: model: title: Model type: string - Body_openai_images_generations_v1_images_generations_post: - title: Body_openai_images_generations_v1_images_generations_post - required: - - prompt - - model - type: object - properties: - inp: - $ref: '#/components/schemas/OpenAIImagesGenerationsIn' - prompt: - title: Prompt - type: string - model: - title: Model - type: string - Body_openai_images_generations_v1_openai_images_generations_post: - title: Body_openai_images_generations_v1_openai_images_generations_post - required: - - prompt - - model - type: object - properties: - inp: - $ref: '#/components/schemas/OpenAIImagesGenerationsIn' - prompt: - title: Prompt - type: string - model: - title: Model - type: string Body_openai_images_variations_v1_images_variations_post: title: Body_openai_images_variations_v1_images_variations_post required: