From 7e5133d4772252d2a9e890bf1467660d8884a6f4 Mon Sep 17 00:00:00 2001 From: "Konstantin S." Date: Mon, 12 Aug 2024 04:00:34 +0400 Subject: [PATCH] feat: Updated OpenAPI spec (#27) Co-authored-by: github-actions[bot] --- ...nfraApi.AccountUpdateDetailsV1MePatch.g.cs | 8 +- ....BillingPortalPaymentBillingPortalGet.g.cs | 12 +- ....DeepInfraApi.CliVersionCliVersionGet.g.cs | 4 +- ...eateVoiceV1ElevenlabsV1VoicesAddPost.g.cs} | 22 +- ...tApplyPaymentDeepstartApplicationPost.g.cs | 8 +- ...leteApiTokenV1ApiTokensApiTokenDelete.g.cs | 4 +- ...iceV1ElevenlabsV1VoicesVoiceIdDelete.g.cs} | 22 +- ...yDetailedStatsDeployDeployIdStats2Get.g.cs | 6 +- ...ailabilityDeployLlmGpuAvailabilityGet.g.cs | 6 +- ....DeepInfraApi.DeployListDeployListGet.g.cs | 6 +- ...Api.DeployStatsDeployDeployIdStatsGet.g.cs | 6 +- ...mentLogsQueryV1DeploymentLogsQueryGet.g.cs | 18 +- ...raApi.GetChecklistPaymentChecklistGet.g.cs | 6 +- ...eepInfraApi.GetConfigPaymentConfigGet.g.cs | 6 +- ...tVoiceV1ElevenlabsV1VoicesVoiceIdGet.g.cs} | 22 +- ...Api.GetVoicesV1ElevenlabsV1VoicesGet.g.cs} | 20 +- ...raApi.GithubCliLoginGithubCliLoginGet.g.cs | 4 +- ...eepInfraApi.GithubLoginGithubLoginGet.g.cs | 22 +- ...ceDeployV1InferenceDeployDeployIdPost.g.cs | 16 +- ...nferenceModelV1InferenceModelNamePost.g.cs | 22 +- ....DeepInfraApi.LogsQueryV1LogsQueryGet.g.cs | 12 +- ...aApi.ModelDeleteModelsModelNameDelete.g.cs | 4 +- ...odelMetaUpdateModelsModelNameMetaPost.g.cs | 6 +- ...PublicityModelsModelNamePublicityPost.g.cs | 6 +- ...emaModelsModelNameSchemaVariantKeyGet.g.cs | 6 +- ...InfraApi.ModelsInfoModelsModelNameGet.g.cs | 6 +- ...naiAudioSpeechV1OpenaiAudioSpeechPost.g.cs | 26 +- ...ompletionsV1OpenaiChatCompletionsPost.g.cs | 26 +- ...naiCompletionsV1OpenaiCompletionsPost.g.cs | 26 +- ...penaiEmbeddingsV1OpenaiEmbeddingsPost.g.cs | 24 +- ...LimitIncreaseV1MeRateLimitRequestPost.g.cs | 6 +- ...epInfraApi.SetConfigPaymentConfigPost.g.cs | 8 +- ...InfraApi.SubmitFeedbackV1FeedbackPost.g.cs | 6 +- ...V1ElevenlabsV1TextToSpeechVoiceIdPost.g.cs | 157 +++++ ...eV1ElevenlabsV1VoicesVoiceIdEditPost.g.cs} | 26 +- ...fra.DeepInfraApi.UsagePaymentUsageGet.g.cs | 12 +- ...AccountUpdateDetailsV1MePatchResponse.g.cs | 18 + ....Models.ChatCompletionMessageToolCall.g.cs | 2 +- ...nfra.Models.ChatCompletionUserMessage.g.cs | 2 +- ...odels.CliVersionCliVersionGetResponse.g.cs | 18 + ...okenV1ApiTokensApiTokenDeleteResponse.g.cs | 18 + ...evenlabsV1VoicesVoiceIdDeleteResponse.g.cs | 18 + .../DeepInfra.Models.DeployLLMConfigGpu.g.cs | 51 -- .../DeepInfra.Models.DeployLLMInGpu.g.cs | 51 -- ...eepInfra.Models.DeployModelInProvider.g.cs | 57 -- ...eepInfra.Models.DeploymentLogQueryOut.g.cs | 2 +- ...a.Models.DeploymentLogQueryOutEntries.g.cs | 18 + .../DeepInfra.Models.DeploymentOutType.g.cs | 51 -- ...Infra.Models.ElevenLabsTextToSpeechIn.g.cs | 52 ++ ...n.g.cs => DeepInfra.Models.Function2.g.cs} | 2 +- .../DeepInfra.Models.FunctionDefinition.g.cs | 2 +- ...a.Models.FunctionDefinitionParameters.g.cs | 18 + .../DeepInfra.Models.GetVoicesOut.g.cs | 2 +- ...thubCliLoginGithubCliLoginGetResponse.g.cs | 18 + ...els.GithubLoginGithubLoginGetResponse.g.cs | 18 + ...V1InferenceDeployDeployIdPostResponse.g.cs | 18 + ...ModelV1InferenceModelNamePostResponse.g.cs | 18 + .../DeepInfra.Models.LogQueryOut.g.cs | 2 +- ...eepInfra.Models.LogQueryOutEntrieItem.g.cs | 18 + ...elDeleteModelsModelNameDeleteResponse.g.cs | 18 + .../DeepInfra.Models.ModelFieldInfo.g.cs | 6 +- ...nfra.Models.ModelFieldInfoAllowedItem.g.cs | 18 + ...eepInfra.Models.ModelFieldInfoDefault.g.cs | 18 + ...eepInfra.Models.ModelFieldInfoExample.g.cs | 18 + .../DeepInfra.Models.ModelInfoOut.g.cs | 6 +- ...DeepInfra.Models.ModelInfoOutInSchema.g.cs | 18 + .../DeepInfra.Models.ModelInfoOutMeta.g.cs | 18 + ...eepInfra.Models.ModelInfoOutOutSchema.g.cs | 18 + ...pInfra.Models.ModelMetaInReportedType.g.cs | 129 ---- ...UpdateModelsModelNameMetaPostResponse.g.cs | 18 + .../Generated/DeepInfra.Models.ModelOut.g.cs | 2 +- ...yModelsModelNamePublicityPostResponse.g.cs | 18 + ...odelNameSchemaVariantKeyGetVariantKey.g.cs | 63 -- ...pInfra.Models.OpenAIChatCompletionsIn.g.cs | 4 +- .../DeepInfra.Models.OpenAICompletionsIn.g.cs | 4 +- .../DeepInfra.Models.OpenAIEmbeddingsIn.g.cs | 2 +- ...DeepInfra.Models.OpenAITextToSpeechIn.g.cs | 13 +- ...nfra.Models.OpenAITextToSpeechInVoice.g.cs | 57 -- ...SpeechV1OpenaiAudioSpeechPostResponse.g.cs | 18 + ...nsV1OpenaiChatCompletionsPostResponse.g.cs | 18 + ...etionsV1OpenaiCompletionsPostResponse.g.cs | 18 + ...eddingsV1OpenaiEmbeddingsPostResponse.g.cs | 18 + ...reaseV1MeRateLimitRequestPostResponse.g.cs | 18 + ... => DeepInfra.Models.ResponseFormat4.g.cs} | 2 +- .../DeepInfra.Models.SchemaFieldOut.g.cs | 6 +- ...nfra.Models.SchemaFieldOutAllowedItem.g.cs | 18 + ...eepInfra.Models.SchemaFieldOutDefault.g.cs | 18 + ...eepInfra.Models.SchemaFieldOutExample.g.cs | 18 + .../Generated/DeepInfra.Models.SchemaOut.g.cs | 6 +- .../DeepInfra.Models.SchemaOutSchemaIn.g.cs | 18 + .../DeepInfra.Models.SchemaOutSchemaOut1.g.cs | 18 + ...eepInfra.Models.SchemaOutSchemaStream.g.cs | 18 + ....SubmitFeedbackV1FeedbackPostResponse.g.cs | 18 + ...labsV1TextToSpeechVoiceIdPostResponse.g.cs | 18 + ...at.g.cs => DeepInfra.Models.TtsModel.g.cs} | 14 +- .../DeepInfra.Models.ValidationError.g.cs | 2 +- ...oice.g.cs => DeepInfra.Models.Voice2.g.cs} | 2 +- .../JsonConverters.DeployLLMConfigGpu.g.cs | 49 -- ...Converters.DeployLLMConfigGpuNullable.g.cs | 56 -- .../JsonConverters.DeployModelInProvider.g.cs | 49 -- ...verters.DeployModelInProviderNullable.g.cs | 56 -- .../JsonConverters.DeploymentOutType.g.cs | 49 -- ...nConverters.DeploymentOutTypeNullable.g.cs | 56 -- ...sonConverters.ModelMetaInReportedType.g.cs | 49 -- ...rters.ModelMetaInReportedTypeNullable.g.cs | 56 -- ...odelNameSchemaVariantKeyGetVariantKey.g.cs | 49 -- ...SchemaVariantKeyGetVariantKeyNullable.g.cs | 56 -- ...rs.OpenAITextToSpeechInResponseFormat.g.cs | 49 -- ...ITextToSpeechInResponseFormatNullable.g.cs | 56 -- ...nConverters.OpenAITextToSpeechInVoice.g.cs | 49 -- ...ers.OpenAITextToSpeechInVoiceNullable.g.cs | 56 -- ...nGpu.g.cs => JsonConverters.TtsModel.g.cs} | 12 +- ...s => JsonConverters.TtsModelNullable.g.cs} | 12 +- .../Generated/JsonSerializerContext.g.cs | 38 +- .../Generated/JsonSerializerContextTypes.g.cs | 552 ++++++++++++++---- src/libs/DeepInfra/openapi.yaml | 96 ++- 116 files changed, 1606 insertions(+), 1624 deletions(-) rename src/libs/DeepInfra/Generated/{DeepInfra.DeepInfraApi.CreateVoiceV1VoicesAddPost.g.cs => DeepInfra.DeepInfraApi.CreateVoiceV1ElevenlabsV1VoicesAddPost.g.cs} (79%) rename src/libs/DeepInfra/Generated/{DeepInfra.DeepInfraApi.DeleteVoiceV1VoicesVoiceIdDelete.g.cs => DeepInfra.DeepInfraApi.DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDelete.g.cs} (75%) rename src/libs/DeepInfra/Generated/{DeepInfra.DeepInfraApi.GetVoiceV1VoicesVoiceIdGet.g.cs => DeepInfra.DeepInfraApi.GetVoiceV1ElevenlabsV1VoicesVoiceIdGet.g.cs} (80%) rename src/libs/DeepInfra/Generated/{DeepInfra.DeepInfraApi.GetVoicesV1VoicesGet.g.cs => DeepInfra.DeepInfraApi.GetVoicesV1ElevenlabsV1VoicesGet.g.cs} (80%) create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPost.g.cs rename src/libs/DeepInfra/Generated/{DeepInfra.DeepInfraApi.UpdateVoiceV1VoicesVoiceIdEditPost.g.cs => DeepInfra.DeepInfraApi.UpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPost.g.cs} (82%) create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.AccountUpdateDetailsV1MePatchResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.CliVersionCliVersionGetResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.DeleteApiTokenV1ApiTokensApiTokenDeleteResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponse.g.cs delete mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.DeployLLMConfigGpu.g.cs delete mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.DeployLLMInGpu.g.cs delete mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.DeployModelInProvider.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentLogQueryOutEntries.g.cs delete mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentOutType.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.ElevenLabsTextToSpeechIn.g.cs rename src/libs/DeepInfra/Generated/{DeepInfra.Models.Function.g.cs => DeepInfra.Models.Function2.g.cs} (96%) create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.FunctionDefinitionParameters.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.GithubCliLoginGithubCliLoginGetResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.GithubLoginGithubLoginGetResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.InferenceDeployV1InferenceDeployDeployIdPostResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.InferenceModelV1InferenceModelNamePostResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.LogQueryOutEntrieItem.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.ModelDeleteModelsModelNameDeleteResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfoAllowedItem.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfoDefault.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfoExample.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOutInSchema.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOutMeta.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOutOutSchema.g.cs delete mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.ModelMetaInReportedType.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.ModelMetaUpdateModelsModelNameMetaPostResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.ModelPublicityModelsModelNamePublicityPostResponse.g.cs delete mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.g.cs delete mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAITextToSpeechInVoice.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiAudioSpeechV1OpenaiAudioSpeechPostResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiChatCompletionsV1OpenaiChatCompletionsPostResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiCompletionsV1OpenaiCompletionsPostResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiEmbeddingsV1OpenaiEmbeddingsPostResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.RequestRateLimitIncreaseV1MeRateLimitRequestPostResponse.g.cs rename src/libs/DeepInfra/Generated/{DeepInfra.Models.ResponseFormat.g.cs => DeepInfra.Models.ResponseFormat4.g.cs} (95%) create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOutAllowedItem.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOutDefault.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOutExample.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOutSchemaIn.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOutSchemaOut1.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOutSchemaStream.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.SubmitFeedbackV1FeedbackPostResponse.g.cs create mode 100644 src/libs/DeepInfra/Generated/DeepInfra.Models.TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostResponse.g.cs rename src/libs/DeepInfra/Generated/{DeepInfra.Models.OpenAITextToSpeechInResponseFormat.g.cs => DeepInfra.Models.TtsModel.g.cs} (63%) rename src/libs/DeepInfra/Generated/{DeepInfra.Models.Voice.g.cs => DeepInfra.Models.Voice2.g.cs} (97%) delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.DeployLLMConfigGpu.g.cs delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.DeployLLMConfigGpuNullable.g.cs delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.DeployModelInProvider.g.cs delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.DeployModelInProviderNullable.g.cs delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.DeploymentOutType.g.cs delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.DeploymentOutTypeNullable.g.cs delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.ModelMetaInReportedType.g.cs delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.ModelMetaInReportedTypeNullable.g.cs delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.g.cs delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKeyNullable.g.cs delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInResponseFormat.g.cs delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInResponseFormatNullable.g.cs delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInVoice.g.cs delete mode 100644 src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInVoiceNullable.g.cs rename src/libs/DeepInfra/Generated/{JsonConverters.DeployLLMInGpu.g.cs => JsonConverters.TtsModel.g.cs} (70%) rename src/libs/DeepInfra/Generated/{JsonConverters.DeployLLMInGpuNullable.g.cs => JsonConverters.TtsModelNullable.g.cs} (72%) diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.AccountUpdateDetailsV1MePatch.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.AccountUpdateDetailsV1MePatch.g.cs index 67eb8b6..c02e990 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.AccountUpdateDetailsV1MePatch.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.AccountUpdateDetailsV1MePatch.g.cs @@ -27,7 +27,7 @@ partial void ProcessAccountUpdateDetailsV1MePatchResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task AccountUpdateDetailsV1MePatchAsync( + public async global::System.Threading.Tasks.Task AccountUpdateDetailsV1MePatchAsync( global::DeepInfra.MeIn request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -40,7 +40,7 @@ partial void ProcessAccountUpdateDetailsV1MePatchResponseContent( request: request); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( - method: global::System.Net.Http.HttpMethod.Patch, + method: new global::System.Net.Http.HttpMethod("PATCH"), requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1/me", global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContent = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request, global::DeepInfra.SourceGenerationContext.Default.MeIn), @@ -89,7 +89,7 @@ partial void ProcessAccountUpdateDetailsV1MePatchResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.AccountUpdateDetailsV1MePatchResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } @@ -109,7 +109,7 @@ partial void ProcessAccountUpdateDetailsV1MePatchResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task AccountUpdateDetailsV1MePatchAsync( + public async global::System.Threading.Tasks.Task AccountUpdateDetailsV1MePatchAsync( string? name = default, string? email = default, bool isBusinessAccount = default, diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.BillingPortalPaymentBillingPortalGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.BillingPortalPaymentBillingPortalGet.g.cs index a4cb341..bce1d15 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.BillingPortalPaymentBillingPortalGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.BillingPortalPaymentBillingPortalGet.g.cs @@ -7,13 +7,13 @@ public partial class DeepInfraApi { partial void PrepareBillingPortalPaymentBillingPortalGetArguments( global::System.Net.Http.HttpClient httpClient, - ref string returnUrl, - ref string session); + ref string? returnUrl, + ref string? session); partial void PrepareBillingPortalPaymentBillingPortalGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string returnUrl, - string session); + string? returnUrl, + string? session); partial void ProcessBillingPortalPaymentBillingPortalGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -33,8 +33,8 @@ partial void ProcessBillingPortalPaymentBillingPortalGetResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task BillingPortalPaymentBillingPortalGetAsync( - string returnUrl, - string session, + string? returnUrl, + string? session, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CliVersionCliVersionGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CliVersionCliVersionGet.g.cs index 0fad7b8..5ff02e4 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CliVersionCliVersionGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CliVersionCliVersionGet.g.cs @@ -27,7 +27,7 @@ partial void ProcessCliVersionCliVersionGetResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CliVersionCliVersionGetAsync( + public async global::System.Threading.Tasks.Task CliVersionCliVersionGetAsync( string version, global::System.Threading.CancellationToken cancellationToken = default) { @@ -82,7 +82,7 @@ partial void ProcessCliVersionCliVersionGetResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.CliVersionCliVersionGetResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CreateVoiceV1VoicesAddPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CreateVoiceV1ElevenlabsV1VoicesAddPost.g.cs similarity index 79% rename from src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CreateVoiceV1VoicesAddPost.g.cs rename to src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CreateVoiceV1ElevenlabsV1VoicesAddPost.g.cs index c7e44c1..7a53f5e 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CreateVoiceV1VoicesAddPost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.CreateVoiceV1ElevenlabsV1VoicesAddPost.g.cs @@ -5,16 +5,16 @@ namespace DeepInfra { public partial class DeepInfraApi { - partial void PrepareCreateVoiceV1VoicesAddPostArguments( + partial void PrepareCreateVoiceV1ElevenlabsV1VoicesAddPostArguments( global::System.Net.Http.HttpClient httpClient); - partial void PrepareCreateVoiceV1VoicesAddPostRequest( + partial void PrepareCreateVoiceV1ElevenlabsV1VoicesAddPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessCreateVoiceV1VoicesAddPostResponse( + partial void ProcessCreateVoiceV1ElevenlabsV1VoicesAddPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessCreateVoiceV1VoicesAddPostResponseContent( + partial void ProcessCreateVoiceV1ElevenlabsV1VoicesAddPostResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -25,22 +25,22 @@ partial void ProcessCreateVoiceV1VoicesAddPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task CreateVoiceV1VoicesAddPostAsync( + public async global::System.Threading.Tasks.Task CreateVoiceV1ElevenlabsV1VoicesAddPostAsync( global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: _httpClient); - PrepareCreateVoiceV1VoicesAddPostArguments( + PrepareCreateVoiceV1ElevenlabsV1VoicesAddPostArguments( httpClient: _httpClient); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1/voices/add", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1/elevenlabs/v1/voices/add", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, request: httpRequest); - PrepareCreateVoiceV1VoicesAddPostRequest( + PrepareCreateVoiceV1ElevenlabsV1VoicesAddPostRequest( httpClient: _httpClient, httpRequestMessage: httpRequest); @@ -52,7 +52,7 @@ partial void ProcessCreateVoiceV1VoicesAddPostResponseContent( ProcessResponse( client: _httpClient, response: response); - ProcessCreateVoiceV1VoicesAddPostResponse( + ProcessCreateVoiceV1ElevenlabsV1VoicesAddPostResponse( httpClient: _httpClient, httpResponseMessage: response); @@ -62,7 +62,7 @@ partial void ProcessCreateVoiceV1VoicesAddPostResponseContent( client: _httpClient, response: response, content: ref __content); - ProcessCreateVoiceV1VoicesAddPostResponseContent( + ProcessCreateVoiceV1ElevenlabsV1VoicesAddPostResponseContent( httpClient: _httpClient, httpResponseMessage: response, content: ref __content); @@ -77,7 +77,7 @@ partial void ProcessCreateVoiceV1VoicesAddPostResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Voice) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Voice2) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeepstartApplyPaymentDeepstartApplicationPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeepstartApplyPaymentDeepstartApplicationPost.g.cs index 0647566..697716c 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeepstartApplyPaymentDeepstartApplicationPost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeepstartApplyPaymentDeepstartApplicationPost.g.cs @@ -7,12 +7,12 @@ public partial class DeepInfraApi { partial void PrepareDeepstartApplyPaymentDeepstartApplicationPostArguments( global::System.Net.Http.HttpClient httpClient, - ref string session, + ref string? session, global::DeepInfra.DeepStartApplicationIn request); partial void PrepareDeepstartApplyPaymentDeepstartApplicationPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string session, + string? session, global::DeepInfra.DeepStartApplicationIn request); partial void ProcessDeepstartApplyPaymentDeepstartApplicationPostResponse( global::System.Net.Http.HttpClient httpClient, @@ -31,7 +31,7 @@ partial void ProcessDeepstartApplyPaymentDeepstartApplicationPostResponseContent /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task DeepstartApplyPaymentDeepstartApplicationPostAsync( - string session, + string? session, global::DeepInfra.DeepStartApplicationIn request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -123,7 +123,7 @@ partial void ProcessDeepstartApplyPaymentDeepstartApplicationPostResponseContent string funding, string foundedOn, string website, - string session = default, + string? session = default, string? id = default, string? uid = default, int createdAt = default, diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteApiTokenV1ApiTokensApiTokenDelete.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteApiTokenV1ApiTokensApiTokenDelete.g.cs index 3f14dd5..ec9ef23 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteApiTokenV1ApiTokensApiTokenDelete.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteApiTokenV1ApiTokensApiTokenDelete.g.cs @@ -27,7 +27,7 @@ partial void ProcessDeleteApiTokenV1ApiTokensApiTokenDeleteResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteApiTokenV1ApiTokensApiTokenDeleteAsync( + public async global::System.Threading.Tasks.Task DeleteApiTokenV1ApiTokensApiTokenDeleteAsync( string apiToken, global::System.Threading.CancellationToken cancellationToken = default) { @@ -82,7 +82,7 @@ partial void ProcessDeleteApiTokenV1ApiTokensApiTokenDeleteResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.DeleteApiTokenV1ApiTokensApiTokenDeleteResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteVoiceV1VoicesVoiceIdDelete.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDelete.g.cs similarity index 75% rename from src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteVoiceV1VoicesVoiceIdDelete.g.cs rename to src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDelete.g.cs index 7033358..b1ff520 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteVoiceV1VoicesVoiceIdDelete.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDelete.g.cs @@ -5,18 +5,18 @@ namespace DeepInfra { public partial class DeepInfraApi { - partial void PrepareDeleteVoiceV1VoicesVoiceIdDeleteArguments( + partial void PrepareDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteArguments( global::System.Net.Http.HttpClient httpClient, ref string voiceId); - partial void PrepareDeleteVoiceV1VoicesVoiceIdDeleteRequest( + partial void PrepareDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string voiceId); - partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponse( + partial void ProcessDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent( + partial void ProcessDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -27,24 +27,24 @@ partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task DeleteVoiceV1VoicesVoiceIdDeleteAsync( + public async global::System.Threading.Tasks.Task DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteAsync( string voiceId, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: _httpClient); - PrepareDeleteVoiceV1VoicesVoiceIdDeleteArguments( + PrepareDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteArguments( httpClient: _httpClient, voiceId: ref voiceId); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Delete, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1/voices/{voiceId}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1/elevenlabs/v1/voices/{voiceId}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, request: httpRequest); - PrepareDeleteVoiceV1VoicesVoiceIdDeleteRequest( + PrepareDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteRequest( httpClient: _httpClient, httpRequestMessage: httpRequest, voiceId: voiceId); @@ -57,7 +57,7 @@ partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent( ProcessResponse( client: _httpClient, response: response); - ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponse( + ProcessDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponse( httpClient: _httpClient, httpResponseMessage: response); @@ -67,7 +67,7 @@ partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent( client: _httpClient, response: response, content: ref __content); - ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent( + ProcessDeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponseContent( httpClient: _httpClient, httpResponseMessage: response, content: ref __content); @@ -82,7 +82,7 @@ partial void ProcessDeleteVoiceV1VoicesVoiceIdDeleteResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployDetailedStatsDeployDeployIdStats2Get.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployDetailedStatsDeployDeployIdStats2Get.g.cs index a1e6fb0..7ddeee2 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployDetailedStatsDeployDeployIdStats2Get.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployDetailedStatsDeployDeployIdStats2Get.g.cs @@ -9,13 +9,13 @@ partial void PrepareDeployDetailedStatsDeployDeployIdStats2GetArguments( global::System.Net.Http.HttpClient httpClient, ref string deployId, ref string from, - ref string to); + ref string? to); partial void PrepareDeployDetailedStatsDeployDeployIdStats2GetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string deployId, string from, - string to); + string? to); partial void ProcessDeployDetailedStatsDeployDeployIdStats2GetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -41,7 +41,7 @@ partial void ProcessDeployDetailedStatsDeployDeployIdStats2GetResponseContent( public async global::System.Threading.Tasks.Task DeployDetailedStatsDeployDeployIdStats2GetAsync( string deployId, string from, - string to, + string? to, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployGpuAvailabilityDeployLlmGpuAvailabilityGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployGpuAvailabilityDeployLlmGpuAvailabilityGet.g.cs index 4d7eaa7..02b2ae7 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployGpuAvailabilityDeployLlmGpuAvailabilityGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployGpuAvailabilityDeployLlmGpuAvailabilityGet.g.cs @@ -7,11 +7,11 @@ public partial class DeepInfraApi { partial void PrepareDeployGpuAvailabilityDeployLlmGpuAvailabilityGetArguments( global::System.Net.Http.HttpClient httpClient, - ref string source); + ref string? source); partial void PrepareDeployGpuAvailabilityDeployLlmGpuAvailabilityGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string source); + string? source); partial void ProcessDeployGpuAvailabilityDeployLlmGpuAvailabilityGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -28,7 +28,7 @@ partial void ProcessDeployGpuAvailabilityDeployLlmGpuAvailabilityGetResponseCont /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task DeployGpuAvailabilityDeployLlmGpuAvailabilityGetAsync( - string source, + string? source, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployListDeployListGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployListDeployListGet.g.cs index 43c9ab3..55e43b9 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployListDeployListGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployListDeployListGet.g.cs @@ -7,11 +7,11 @@ public partial class DeepInfraApi { partial void PrepareDeployListDeployListGetArguments( global::System.Net.Http.HttpClient httpClient, - ref string status); + ref string? status); partial void PrepareDeployListDeployListGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string status); + string? status); partial void ProcessDeployListDeployListGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -30,7 +30,7 @@ partial void ProcessDeployListDeployListGetResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> DeployListDeployListGetAsync( - string status, + string? status, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployStatsDeployDeployIdStatsGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployStatsDeployDeployIdStatsGet.g.cs index b9a88cc..efe82e1 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployStatsDeployDeployIdStatsGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeployStatsDeployDeployIdStatsGet.g.cs @@ -9,13 +9,13 @@ partial void PrepareDeployStatsDeployDeployIdStatsGetArguments( global::System.Net.Http.HttpClient httpClient, ref string deployId, ref string from, - ref string to); + ref string? to); partial void PrepareDeployStatsDeployDeployIdStatsGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string deployId, string from, - string to); + string? to); partial void ProcessDeployStatsDeployDeployIdStatsGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -41,7 +41,7 @@ partial void ProcessDeployStatsDeployDeployIdStatsGetResponseContent( public async global::System.Threading.Tasks.Task DeployStatsDeployDeployIdStatsGetAsync( string deployId, string from, - string to, + string? to, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeploymentLogsQueryV1DeploymentLogsQueryGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeploymentLogsQueryV1DeploymentLogsQueryGet.g.cs index 24d1a83..53bedd6 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeploymentLogsQueryV1DeploymentLogsQueryGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.DeploymentLogsQueryV1DeploymentLogsQueryGet.g.cs @@ -8,17 +8,17 @@ public partial class DeepInfraApi partial void PrepareDeploymentLogsQueryV1DeploymentLogsQueryGetArguments( global::System.Net.Http.HttpClient httpClient, ref string deployId, - ref string podName, - ref string from, - ref string to, + ref string? podName, + ref string? from, + ref string? to, ref int limit); partial void PrepareDeploymentLogsQueryV1DeploymentLogsQueryGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string deployId, - string podName, - string from, - string to, + string? podName, + string? from, + string? to, int limit); partial void ProcessDeploymentLogsQueryV1DeploymentLogsQueryGetResponse( global::System.Net.Http.HttpClient httpClient, @@ -58,9 +58,9 @@ partial void ProcessDeploymentLogsQueryV1DeploymentLogsQueryGetResponseContent( /// public async global::System.Threading.Tasks.Task DeploymentLogsQueryV1DeploymentLogsQueryGetAsync( string deployId, - string podName, - string from, - string to, + string? podName, + string? from, + string? to, int limit, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetChecklistPaymentChecklistGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetChecklistPaymentChecklistGet.g.cs index d8714d1..eb2206e 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetChecklistPaymentChecklistGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetChecklistPaymentChecklistGet.g.cs @@ -7,11 +7,11 @@ public partial class DeepInfraApi { partial void PrepareGetChecklistPaymentChecklistGetArguments( global::System.Net.Http.HttpClient httpClient, - ref string session); + ref string? session); partial void PrepareGetChecklistPaymentChecklistGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string session); + string? session); partial void ProcessGetChecklistPaymentChecklistGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -28,7 +28,7 @@ partial void ProcessGetChecklistPaymentChecklistGetResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task GetChecklistPaymentChecklistGetAsync( - string session, + string? session, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetConfigPaymentConfigGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetConfigPaymentConfigGet.g.cs index 6f8efa9..ce6d7da 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetConfigPaymentConfigGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetConfigPaymentConfigGet.g.cs @@ -7,11 +7,11 @@ public partial class DeepInfraApi { partial void PrepareGetConfigPaymentConfigGetArguments( global::System.Net.Http.HttpClient httpClient, - ref string session); + ref string? session); partial void PrepareGetConfigPaymentConfigGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string session); + string? session); partial void ProcessGetConfigPaymentConfigGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -28,7 +28,7 @@ partial void ProcessGetConfigPaymentConfigGetResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task GetConfigPaymentConfigGetAsync( - string session, + string? session, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoiceV1VoicesVoiceIdGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoiceV1ElevenlabsV1VoicesVoiceIdGet.g.cs similarity index 80% rename from src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoiceV1VoicesVoiceIdGet.g.cs rename to src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoiceV1ElevenlabsV1VoicesVoiceIdGet.g.cs index 40426ff..6bc2a41 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoiceV1VoicesVoiceIdGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoiceV1ElevenlabsV1VoicesVoiceIdGet.g.cs @@ -5,18 +5,18 @@ namespace DeepInfra { public partial class DeepInfraApi { - partial void PrepareGetVoiceV1VoicesVoiceIdGetArguments( + partial void PrepareGetVoiceV1ElevenlabsV1VoicesVoiceIdGetArguments( global::System.Net.Http.HttpClient httpClient, ref string voiceId); - partial void PrepareGetVoiceV1VoicesVoiceIdGetRequest( + partial void PrepareGetVoiceV1ElevenlabsV1VoicesVoiceIdGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string voiceId); - partial void ProcessGetVoiceV1VoicesVoiceIdGetResponse( + partial void ProcessGetVoiceV1ElevenlabsV1VoicesVoiceIdGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetVoiceV1VoicesVoiceIdGetResponseContent( + partial void ProcessGetVoiceV1ElevenlabsV1VoicesVoiceIdGetResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -28,24 +28,24 @@ partial void ProcessGetVoiceV1VoicesVoiceIdGetResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetVoiceV1VoicesVoiceIdGetAsync( + public async global::System.Threading.Tasks.Task GetVoiceV1ElevenlabsV1VoicesVoiceIdGetAsync( string voiceId, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: _httpClient); - PrepareGetVoiceV1VoicesVoiceIdGetArguments( + PrepareGetVoiceV1ElevenlabsV1VoicesVoiceIdGetArguments( httpClient: _httpClient, voiceId: ref voiceId); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1/voices/{voiceId}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1/elevenlabs/v1/voices/{voiceId}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, request: httpRequest); - PrepareGetVoiceV1VoicesVoiceIdGetRequest( + PrepareGetVoiceV1ElevenlabsV1VoicesVoiceIdGetRequest( httpClient: _httpClient, httpRequestMessage: httpRequest, voiceId: voiceId); @@ -58,7 +58,7 @@ partial void ProcessGetVoiceV1VoicesVoiceIdGetResponseContent( ProcessResponse( client: _httpClient, response: response); - ProcessGetVoiceV1VoicesVoiceIdGetResponse( + ProcessGetVoiceV1ElevenlabsV1VoicesVoiceIdGetResponse( httpClient: _httpClient, httpResponseMessage: response); @@ -68,7 +68,7 @@ partial void ProcessGetVoiceV1VoicesVoiceIdGetResponseContent( client: _httpClient, response: response, content: ref __content); - ProcessGetVoiceV1VoicesVoiceIdGetResponseContent( + ProcessGetVoiceV1ElevenlabsV1VoicesVoiceIdGetResponseContent( httpClient: _httpClient, httpResponseMessage: response, content: ref __content); @@ -83,7 +83,7 @@ partial void ProcessGetVoiceV1VoicesVoiceIdGetResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Voice) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Voice2) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoicesV1VoicesGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoicesV1ElevenlabsV1VoicesGet.g.cs similarity index 80% rename from src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoicesV1VoicesGet.g.cs rename to src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoicesV1ElevenlabsV1VoicesGet.g.cs index 27d3212..280d549 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoicesV1VoicesGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GetVoicesV1ElevenlabsV1VoicesGet.g.cs @@ -5,16 +5,16 @@ namespace DeepInfra { public partial class DeepInfraApi { - partial void PrepareGetVoicesV1VoicesGetArguments( + partial void PrepareGetVoicesV1ElevenlabsV1VoicesGetArguments( global::System.Net.Http.HttpClient httpClient); - partial void PrepareGetVoicesV1VoicesGetRequest( + partial void PrepareGetVoicesV1ElevenlabsV1VoicesGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage); - partial void ProcessGetVoicesV1VoicesGetResponse( + partial void ProcessGetVoicesV1ElevenlabsV1VoicesGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessGetVoicesV1VoicesGetResponseContent( + partial void ProcessGetVoicesV1ElevenlabsV1VoicesGetResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -25,22 +25,22 @@ partial void ProcessGetVoicesV1VoicesGetResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GetVoicesV1VoicesGetAsync( + public async global::System.Threading.Tasks.Task GetVoicesV1ElevenlabsV1VoicesGetAsync( global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( client: _httpClient); - PrepareGetVoicesV1VoicesGetArguments( + PrepareGetVoicesV1ElevenlabsV1VoicesGetArguments( httpClient: _httpClient); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1/voices", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + "/v1/elevenlabs/v1/voices", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, request: httpRequest); - PrepareGetVoicesV1VoicesGetRequest( + PrepareGetVoicesV1ElevenlabsV1VoicesGetRequest( httpClient: _httpClient, httpRequestMessage: httpRequest); @@ -52,7 +52,7 @@ partial void ProcessGetVoicesV1VoicesGetResponseContent( ProcessResponse( client: _httpClient, response: response); - ProcessGetVoicesV1VoicesGetResponse( + ProcessGetVoicesV1ElevenlabsV1VoicesGetResponse( httpClient: _httpClient, httpResponseMessage: response); @@ -62,7 +62,7 @@ partial void ProcessGetVoicesV1VoicesGetResponseContent( client: _httpClient, response: response, content: ref __content); - ProcessGetVoicesV1VoicesGetResponseContent( + ProcessGetVoicesV1ElevenlabsV1VoicesGetResponseContent( httpClient: _httpClient, httpResponseMessage: response, content: ref __content); diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GithubCliLoginGithubCliLoginGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GithubCliLoginGithubCliLoginGet.g.cs index dc6ae46..e26af60 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GithubCliLoginGithubCliLoginGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GithubCliLoginGithubCliLoginGet.g.cs @@ -29,7 +29,7 @@ partial void ProcessGithubCliLoginGithubCliLoginGetResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GithubCliLoginGithubCliLoginGetAsync( + public async global::System.Threading.Tasks.Task GithubCliLoginGithubCliLoginGetAsync( string loginId, global::System.Threading.CancellationToken cancellationToken = default) { @@ -84,7 +84,7 @@ partial void ProcessGithubCliLoginGithubCliLoginGetResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.GithubCliLoginGithubCliLoginGetResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GithubLoginGithubLoginGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GithubLoginGithubLoginGet.g.cs index b3256de..73e356e 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GithubLoginGithubLoginGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.GithubLoginGithubLoginGet.g.cs @@ -7,15 +7,15 @@ public partial class DeepInfraApi { partial void PrepareGithubLoginGithubLoginGetArguments( global::System.Net.Http.HttpClient httpClient, - ref string loginId, - ref string origin, - ref string deal); + ref string? loginId, + ref string? origin, + ref string? deal); partial void PrepareGithubLoginGithubLoginGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string loginId, - string origin, - string deal); + string? loginId, + string? origin, + string? deal); partial void ProcessGithubLoginGithubLoginGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -34,10 +34,10 @@ partial void ProcessGithubLoginGithubLoginGetResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task GithubLoginGithubLoginGetAsync( - string loginId, - string origin, - string deal, + public async global::System.Threading.Tasks.Task GithubLoginGithubLoginGetAsync( + string? loginId, + string? origin, + string? deal, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -95,7 +95,7 @@ partial void ProcessGithubLoginGithubLoginGetResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.GithubLoginGithubLoginGetResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.InferenceDeployV1InferenceDeployDeployIdPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.InferenceDeployV1InferenceDeployDeployIdPost.g.cs index db39139..9303ed3 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.InferenceDeployV1InferenceDeployDeployIdPost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.InferenceDeployV1InferenceDeployDeployIdPost.g.cs @@ -8,14 +8,14 @@ public partial class DeepInfraApi partial void PrepareInferenceDeployV1InferenceDeployDeployIdPostArguments( global::System.Net.Http.HttpClient httpClient, ref string deployId, - ref string xDeepinfraSource, - ref string userAgent); + ref string? xDeepinfraSource, + ref string? userAgent); partial void PrepareInferenceDeployV1InferenceDeployDeployIdPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string deployId, - string xDeepinfraSource, - string userAgent); + string? xDeepinfraSource, + string? userAgent); partial void ProcessInferenceDeployV1InferenceDeployDeployIdPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -33,10 +33,10 @@ partial void ProcessInferenceDeployV1InferenceDeployDeployIdPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task InferenceDeployV1InferenceDeployDeployIdPostAsync( + public async global::System.Threading.Tasks.Task InferenceDeployV1InferenceDeployDeployIdPostAsync( string deployId, - string xDeepinfraSource, - string userAgent, + string? xDeepinfraSource, + string? userAgent, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -94,7 +94,7 @@ partial void ProcessInferenceDeployV1InferenceDeployDeployIdPostResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.InferenceDeployV1InferenceDeployDeployIdPostResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.InferenceModelV1InferenceModelNamePost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.InferenceModelV1InferenceModelNamePost.g.cs index 1239c63..e5918aa 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.InferenceModelV1InferenceModelNamePost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.InferenceModelV1InferenceModelNamePost.g.cs @@ -8,16 +8,16 @@ public partial class DeepInfraApi partial void PrepareInferenceModelV1InferenceModelNamePostArguments( global::System.Net.Http.HttpClient httpClient, ref string modelName, - ref string version, - ref string xDeepinfraSource, - ref string userAgent); + ref string? version, + ref string? xDeepinfraSource, + ref string? userAgent); partial void PrepareInferenceModelV1InferenceModelNamePostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string modelName, - string version, - string xDeepinfraSource, - string userAgent); + string? version, + string? xDeepinfraSource, + string? userAgent); partial void ProcessInferenceModelV1InferenceModelNamePostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -38,11 +38,11 @@ partial void ProcessInferenceModelV1InferenceModelNamePostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task InferenceModelV1InferenceModelNamePostAsync( + public async global::System.Threading.Tasks.Task InferenceModelV1InferenceModelNamePostAsync( string modelName, - string version, - string xDeepinfraSource, - string userAgent, + string? version, + string? xDeepinfraSource, + string? userAgent, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -102,7 +102,7 @@ partial void ProcessInferenceModelV1InferenceModelNamePostResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.InferenceModelV1InferenceModelNamePostResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.LogsQueryV1LogsQueryGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.LogsQueryV1LogsQueryGet.g.cs index 6b1328c..6ed6118 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.LogsQueryV1LogsQueryGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.LogsQueryV1LogsQueryGet.g.cs @@ -8,15 +8,15 @@ public partial class DeepInfraApi partial void PrepareLogsQueryV1LogsQueryGetArguments( global::System.Net.Http.HttpClient httpClient, ref string deployId, - ref string from, - ref string to, + ref string? from, + ref string? to, ref int limit); partial void PrepareLogsQueryV1LogsQueryGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string deployId, - string from, - string to, + string? from, + string? to, int limit); partial void ProcessLogsQueryV1LogsQueryGetResponse( global::System.Net.Http.HttpClient httpClient, @@ -53,8 +53,8 @@ partial void ProcessLogsQueryV1LogsQueryGetResponseContent( /// public async global::System.Threading.Tasks.Task LogsQueryV1LogsQueryGetAsync( string deployId, - string from, - string to, + string? from, + string? to, int limit, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelDeleteModelsModelNameDelete.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelDeleteModelsModelNameDelete.g.cs index 7d219ca..64faa1e 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelDeleteModelsModelNameDelete.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelDeleteModelsModelNameDelete.g.cs @@ -32,7 +32,7 @@ partial void ProcessModelDeleteModelsModelNameDeleteResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ModelDeleteModelsModelNameDeleteAsync( + public async global::System.Threading.Tasks.Task ModelDeleteModelsModelNameDeleteAsync( string modelName, string version, global::System.Threading.CancellationToken cancellationToken = default) @@ -90,7 +90,7 @@ partial void ProcessModelDeleteModelsModelNameDeleteResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.ModelDeleteModelsModelNameDeleteResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } } diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelMetaUpdateModelsModelNameMetaPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelMetaUpdateModelsModelNameMetaPost.g.cs index 594e462..6703395 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelMetaUpdateModelsModelNameMetaPost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelMetaUpdateModelsModelNameMetaPost.g.cs @@ -30,7 +30,7 @@ partial void ProcessModelMetaUpdateModelsModelNameMetaPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ModelMetaUpdateModelsModelNameMetaPostAsync( + public async global::System.Threading.Tasks.Task ModelMetaUpdateModelsModelNameMetaPostAsync( string modelName, global::DeepInfra.ModelMetaIn request, global::System.Threading.CancellationToken cancellationToken = default) @@ -95,7 +95,7 @@ partial void ProcessModelMetaUpdateModelsModelNameMetaPostResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.ModelMetaUpdateModelsModelNameMetaPostResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } @@ -126,7 +126,7 @@ partial void ProcessModelMetaUpdateModelsModelNameMetaPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ModelMetaUpdateModelsModelNameMetaPostAsync( + public async global::System.Threading.Tasks.Task ModelMetaUpdateModelsModelNameMetaPostAsync( string modelName, string? description = default, string? githubUrl = default, diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelPublicityModelsModelNamePublicityPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelPublicityModelsModelNamePublicityPost.g.cs index 461cc68..24052b1 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelPublicityModelsModelNamePublicityPost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelPublicityModelsModelNamePublicityPost.g.cs @@ -30,7 +30,7 @@ partial void ProcessModelPublicityModelsModelNamePublicityPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ModelPublicityModelsModelNamePublicityPostAsync( + public async global::System.Threading.Tasks.Task ModelPublicityModelsModelNamePublicityPostAsync( string modelName, global::DeepInfra.ModelPublicityIn request, global::System.Threading.CancellationToken cancellationToken = default) @@ -95,7 +95,7 @@ partial void ProcessModelPublicityModelsModelNamePublicityPostResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.ModelPublicityModelsModelNamePublicityPostResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } @@ -108,7 +108,7 @@ partial void ProcessModelPublicityModelsModelNamePublicityPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task ModelPublicityModelsModelNamePublicityPostAsync( + public async global::System.Threading.Tasks.Task ModelPublicityModelsModelNamePublicityPostAsync( string modelName, bool @public, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelSchemaModelsModelNameSchemaVariantKeyGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelSchemaModelsModelNameSchemaVariantKeyGet.g.cs index 217355e..a880bdd 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelSchemaModelsModelNameSchemaVariantKeyGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelSchemaModelsModelNameSchemaVariantKeyGet.g.cs @@ -9,13 +9,13 @@ partial void PrepareModelSchemaModelsModelNameSchemaVariantKeyGetArguments( global::System.Net.Http.HttpClient httpClient, ref string modelName, ref global::DeepInfra.SchemaVariantKey variantKey, - ref string version); + ref string? version); partial void PrepareModelSchemaModelsModelNameSchemaVariantKeyGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string modelName, global::DeepInfra.SchemaVariantKey variantKey, - string version); + string? version); partial void ProcessModelSchemaModelsModelNameSchemaVariantKeyGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -38,7 +38,7 @@ partial void ProcessModelSchemaModelsModelNameSchemaVariantKeyGetResponseContent public async global::System.Threading.Tasks.Task ModelSchemaModelsModelNameSchemaVariantKeyGetAsync( string modelName, global::DeepInfra.SchemaVariantKey variantKey, - string version, + string? version, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelsInfoModelsModelNameGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelsInfoModelsModelNameGet.g.cs index 01bc25e..f65a661 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelsInfoModelsModelNameGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.ModelsInfoModelsModelNameGet.g.cs @@ -8,12 +8,12 @@ public partial class DeepInfraApi partial void PrepareModelsInfoModelsModelNameGetArguments( global::System.Net.Http.HttpClient httpClient, ref string modelName, - ref string version); + ref string? version); partial void PrepareModelsInfoModelsModelNameGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string modelName, - string version); + string? version); partial void ProcessModelsInfoModelsModelNameGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -32,7 +32,7 @@ partial void ProcessModelsInfoModelsModelNameGetResponseContent( /// public async global::System.Threading.Tasks.Task ModelsInfoModelsModelNameGetAsync( string modelName, - string version, + string? version, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiAudioSpeechV1OpenaiAudioSpeechPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiAudioSpeechV1OpenaiAudioSpeechPost.g.cs index e498005..e3c0180 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiAudioSpeechV1OpenaiAudioSpeechPost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiAudioSpeechV1OpenaiAudioSpeechPost.g.cs @@ -7,12 +7,12 @@ public partial class DeepInfraApi { partial void PrepareOpenaiAudioSpeechV1OpenaiAudioSpeechPostArguments( global::System.Net.Http.HttpClient httpClient, - ref string xDeepinfraSource, + ref string? xDeepinfraSource, global::DeepInfra.OpenAITextToSpeechIn request); partial void PrepareOpenaiAudioSpeechV1OpenaiAudioSpeechPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string xDeepinfraSource, + string? xDeepinfraSource, global::DeepInfra.OpenAITextToSpeechIn request); partial void ProcessOpenaiAudioSpeechV1OpenaiAudioSpeechPostResponse( global::System.Net.Http.HttpClient httpClient, @@ -30,8 +30,8 @@ partial void ProcessOpenaiAudioSpeechV1OpenaiAudioSpeechPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task OpenaiAudioSpeechV1OpenaiAudioSpeechPostAsync( - string xDeepinfraSource, + public async global::System.Threading.Tasks.Task OpenaiAudioSpeechV1OpenaiAudioSpeechPostAsync( + string? xDeepinfraSource, global::DeepInfra.OpenAITextToSpeechIn request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -95,7 +95,7 @@ partial void ProcessOpenaiAudioSpeechV1OpenaiAudioSpeechPostResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.OpenaiAudioSpeechV1OpenaiAudioSpeechPostResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } @@ -103,16 +103,16 @@ partial void ProcessOpenaiAudioSpeechV1OpenaiAudioSpeechPostResponseContent( /// Openai Audio Speech /// /// - /// - /// The webhook to call when inference is done, by default you will get the output in the response of your inference request - /// /// /// model name
/// Example: deepinfra/tts /// /// - /// text to convert to speech
- /// Example: Hello, how are you? + /// Text to convert to speech
+ /// Example: I'm beginnin' to feel like a Rap God, Rap God
+ /// All my people from the front to the back nod, back nod
+ /// Now, who thinks their arms are long enough to slap box, slap box?
+ /// They said I rap like a robot, so call me Rap-bot /// /// /// Preset voices to use for the speech. @@ -126,11 +126,10 @@ partial void ProcessOpenaiAudioSpeechV1OpenaiAudioSpeechPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task OpenaiAudioSpeechV1OpenaiAudioSpeechPostAsync( + public async global::System.Threading.Tasks.Task OpenaiAudioSpeechV1OpenaiAudioSpeechPostAsync( string model, string input, - string xDeepinfraSource = default, - string? webhook = default, + string? xDeepinfraSource = default, global::System.AllOf? voice = default, global::System.AllOf? responseFormat = default, double speed = 1, @@ -138,7 +137,6 @@ partial void ProcessOpenaiAudioSpeechV1OpenaiAudioSpeechPostResponseContent( { var request = new global::DeepInfra.OpenAITextToSpeechIn { - Webhook = webhook, Model = model, Input = input, Voice = voice, diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiChatCompletionsV1OpenaiChatCompletionsPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiChatCompletionsV1OpenaiChatCompletionsPost.g.cs index db26ee4..94aae55 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiChatCompletionsV1OpenaiChatCompletionsPost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiChatCompletionsV1OpenaiChatCompletionsPost.g.cs @@ -7,14 +7,14 @@ public partial class DeepInfraApi { partial void PrepareOpenaiChatCompletionsV1OpenaiChatCompletionsPostArguments( global::System.Net.Http.HttpClient httpClient, - ref string xDeepinfraSource, - ref string userAgent, + ref string? xDeepinfraSource, + ref string? userAgent, global::DeepInfra.OpenAIChatCompletionsIn request); partial void PrepareOpenaiChatCompletionsV1OpenaiChatCompletionsPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string xDeepinfraSource, - string userAgent, + string? xDeepinfraSource, + string? userAgent, global::DeepInfra.OpenAIChatCompletionsIn request); partial void ProcessOpenaiChatCompletionsV1OpenaiChatCompletionsPostResponse( global::System.Net.Http.HttpClient httpClient, @@ -33,9 +33,9 @@ partial void ProcessOpenaiChatCompletionsV1OpenaiChatCompletionsPostResponseCont /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task OpenaiChatCompletionsV1OpenaiChatCompletionsPostAsync( - string xDeepinfraSource, - string userAgent, + public async global::System.Threading.Tasks.Task OpenaiChatCompletionsV1OpenaiChatCompletionsPostAsync( + string? xDeepinfraSource, + string? userAgent, global::DeepInfra.OpenAIChatCompletionsIn request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -101,7 +101,7 @@ partial void ProcessOpenaiChatCompletionsV1OpenaiChatCompletionsPostResponseCont } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.OpenaiChatCompletionsV1OpenaiChatCompletionsPostResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } @@ -167,23 +167,23 @@ partial void ProcessOpenaiChatCompletionsV1OpenaiChatCompletionsPostResponseCont /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task OpenaiChatCompletionsV1OpenaiChatCompletionsPostAsync( + public async global::System.Threading.Tasks.Task OpenaiChatCompletionsV1OpenaiChatCompletionsPostAsync( string model, global::System.Collections.Generic.IList> messages, - string xDeepinfraSource = default, - string userAgent = default, + string? xDeepinfraSource = default, + string? userAgent = default, bool stream = false, double temperature = 1, double topP = 1, int topK = 0, int maxTokens = 512, - global::System.AnyOf?>? stop = default, + global::System.AnyOf?>? stop = default, int n = 1, double presencePenalty = 0, double frequencyPenalty = 0, global::System.Collections.Generic.IList? tools = default, string? toolChoice = default, - global::System.AllOf? responseFormat = default, + global::System.AllOf? responseFormat = default, double repetitionPenalty = 1, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiCompletionsV1OpenaiCompletionsPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiCompletionsV1OpenaiCompletionsPost.g.cs index 183a082..8e24fa5 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiCompletionsV1OpenaiCompletionsPost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiCompletionsV1OpenaiCompletionsPost.g.cs @@ -7,14 +7,14 @@ public partial class DeepInfraApi { partial void PrepareOpenaiCompletionsV1OpenaiCompletionsPostArguments( global::System.Net.Http.HttpClient httpClient, - ref string xDeepinfraSource, - ref string userAgent, + ref string? xDeepinfraSource, + ref string? userAgent, global::DeepInfra.OpenAICompletionsIn request); partial void PrepareOpenaiCompletionsV1OpenaiCompletionsPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string xDeepinfraSource, - string userAgent, + string? xDeepinfraSource, + string? userAgent, global::DeepInfra.OpenAICompletionsIn request); partial void ProcessOpenaiCompletionsV1OpenaiCompletionsPostResponse( global::System.Net.Http.HttpClient httpClient, @@ -33,9 +33,9 @@ partial void ProcessOpenaiCompletionsV1OpenaiCompletionsPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task OpenaiCompletionsV1OpenaiCompletionsPostAsync( - string xDeepinfraSource, - string userAgent, + public async global::System.Threading.Tasks.Task OpenaiCompletionsV1OpenaiCompletionsPostAsync( + string? xDeepinfraSource, + string? userAgent, global::DeepInfra.OpenAICompletionsIn request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -101,7 +101,7 @@ partial void ProcessOpenaiCompletionsV1OpenaiCompletionsPostResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.OpenaiCompletionsV1OpenaiCompletionsPostResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } @@ -167,11 +167,11 @@ partial void ProcessOpenaiCompletionsV1OpenaiCompletionsPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task OpenaiCompletionsV1OpenaiCompletionsPostAsync( + public async global::System.Threading.Tasks.Task OpenaiCompletionsV1OpenaiCompletionsPostAsync( string model, string prompt, - string xDeepinfraSource = default, - string userAgent = default, + string? xDeepinfraSource = default, + string? userAgent = default, int maxTokens = 512, double temperature = 1, double topP = 1, @@ -180,10 +180,10 @@ partial void ProcessOpenaiCompletionsV1OpenaiCompletionsPostResponseContent( bool stream = false, int logprobs = default, bool echo = default, - global::System.AnyOf?>? stop = default, + global::System.AnyOf?>? stop = default, double presencePenalty = 0, double frequencyPenalty = 0, - global::System.AllOf? responseFormat = default, + global::System.AllOf? responseFormat = default, double repetitionPenalty = 1, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiEmbeddingsV1OpenaiEmbeddingsPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiEmbeddingsV1OpenaiEmbeddingsPost.g.cs index 03682a7..a55ea89 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiEmbeddingsV1OpenaiEmbeddingsPost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.OpenaiEmbeddingsV1OpenaiEmbeddingsPost.g.cs @@ -7,14 +7,14 @@ public partial class DeepInfraApi { partial void PrepareOpenaiEmbeddingsV1OpenaiEmbeddingsPostArguments( global::System.Net.Http.HttpClient httpClient, - ref string xDeepinfraSource, - ref string userAgent, + ref string? xDeepinfraSource, + ref string? userAgent, global::DeepInfra.OpenAIEmbeddingsIn request); partial void PrepareOpenaiEmbeddingsV1OpenaiEmbeddingsPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string xDeepinfraSource, - string userAgent, + string? xDeepinfraSource, + string? userAgent, global::DeepInfra.OpenAIEmbeddingsIn request); partial void ProcessOpenaiEmbeddingsV1OpenaiEmbeddingsPostResponse( global::System.Net.Http.HttpClient httpClient, @@ -33,9 +33,9 @@ partial void ProcessOpenaiEmbeddingsV1OpenaiEmbeddingsPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task OpenaiEmbeddingsV1OpenaiEmbeddingsPostAsync( - string xDeepinfraSource, - string userAgent, + public async global::System.Threading.Tasks.Task OpenaiEmbeddingsV1OpenaiEmbeddingsPostAsync( + string? xDeepinfraSource, + string? userAgent, global::DeepInfra.OpenAIEmbeddingsIn request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -101,7 +101,7 @@ partial void ProcessOpenaiEmbeddingsV1OpenaiEmbeddingsPostResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.OpenaiEmbeddingsV1OpenaiEmbeddingsPostResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } @@ -124,11 +124,11 @@ partial void ProcessOpenaiEmbeddingsV1OpenaiEmbeddingsPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task OpenaiEmbeddingsV1OpenaiEmbeddingsPostAsync( + public async global::System.Threading.Tasks.Task OpenaiEmbeddingsV1OpenaiEmbeddingsPostAsync( string model, - global::System.AnyOf, string> input, - string xDeepinfraSource = default, - string userAgent = default, + global::System.AnyOf?, string?> input, + string? xDeepinfraSource = default, + string? userAgent = default, global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? encodingFormat = global::DeepInfra.OpenAIEmbeddingsInEncodingFormat.Float, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.RequestRateLimitIncreaseV1MeRateLimitRequestPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.RequestRateLimitIncreaseV1MeRateLimitRequestPost.g.cs index 10905c3..3d3f039 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.RequestRateLimitIncreaseV1MeRateLimitRequestPost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.RequestRateLimitIncreaseV1MeRateLimitRequestPost.g.cs @@ -27,7 +27,7 @@ partial void ProcessRequestRateLimitIncreaseV1MeRateLimitRequestPostResponseCont /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task RequestRateLimitIncreaseV1MeRateLimitRequestPostAsync( + public async global::System.Threading.Tasks.Task RequestRateLimitIncreaseV1MeRateLimitRequestPostAsync( global::DeepInfra.RateLimitRequestIn request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -89,7 +89,7 @@ partial void ProcessRequestRateLimitIncreaseV1MeRateLimitRequestPostResponseCont } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.RequestRateLimitIncreaseV1MeRateLimitRequestPostResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } @@ -100,7 +100,7 @@ partial void ProcessRequestRateLimitIncreaseV1MeRateLimitRequestPostResponseCont /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task RequestRateLimitIncreaseV1MeRateLimitRequestPostAsync( + public async global::System.Threading.Tasks.Task RequestRateLimitIncreaseV1MeRateLimitRequestPostAsync( int rateLimit, string reason, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.SetConfigPaymentConfigPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.SetConfigPaymentConfigPost.g.cs index b0cfdfb..578c79c 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.SetConfigPaymentConfigPost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.SetConfigPaymentConfigPost.g.cs @@ -7,12 +7,12 @@ public partial class DeepInfraApi { partial void PrepareSetConfigPaymentConfigPostArguments( global::System.Net.Http.HttpClient httpClient, - ref string session, + ref string? session, global::DeepInfra.ConfigIn request); partial void PrepareSetConfigPaymentConfigPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, - string session, + string? session, global::DeepInfra.ConfigIn request); partial void ProcessSetConfigPaymentConfigPostResponse( global::System.Net.Http.HttpClient httpClient, @@ -31,7 +31,7 @@ partial void ProcessSetConfigPaymentConfigPostResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task SetConfigPaymentConfigPostAsync( - string session, + string? session, global::DeepInfra.ConfigIn request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -109,7 +109,7 @@ partial void ProcessSetConfigPaymentConfigPostResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task SetConfigPaymentConfigPostAsync( - string session = default, + string? session = default, double limit = default, global::System.Threading.CancellationToken cancellationToken = default) { diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.SubmitFeedbackV1FeedbackPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.SubmitFeedbackV1FeedbackPost.g.cs index 550408a..a89e221 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.SubmitFeedbackV1FeedbackPost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.SubmitFeedbackV1FeedbackPost.g.cs @@ -28,7 +28,7 @@ partial void ProcessSubmitFeedbackV1FeedbackPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task SubmitFeedbackV1FeedbackPostAsync( + public async global::System.Threading.Tasks.Task SubmitFeedbackV1FeedbackPostAsync( global::DeepInfra.FeedbackIn request, global::System.Threading.CancellationToken cancellationToken = default) { @@ -90,7 +90,7 @@ partial void ProcessSubmitFeedbackV1FeedbackPostResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Object) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.SubmitFeedbackV1FeedbackPostResponse) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } @@ -106,7 +106,7 @@ partial void ProcessSubmitFeedbackV1FeedbackPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task SubmitFeedbackV1FeedbackPostAsync( + public async global::System.Threading.Tasks.Task SubmitFeedbackV1FeedbackPostAsync( string message, string? contactEmail = default, global::System.Threading.CancellationToken cancellationToken = default) diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPost.g.cs new file mode 100644 index 0000000..02f11db --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPost.g.cs @@ -0,0 +1,157 @@ + +#nullable enable + +namespace DeepInfra +{ + public partial class DeepInfraApi + { + partial void PrepareTextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostArguments( + global::System.Net.Http.HttpClient httpClient, + ref string voiceId, + ref string? xDeepinfraSource, + global::DeepInfra.ElevenLabsTextToSpeechIn request); + partial void PrepareTextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostRequest( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpRequestMessage httpRequestMessage, + string voiceId, + string? xDeepinfraSource, + global::DeepInfra.ElevenLabsTextToSpeechIn request); + partial void ProcessTextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostResponse( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage); + + partial void ProcessTextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostResponseContent( + global::System.Net.Http.HttpClient httpClient, + global::System.Net.Http.HttpResponseMessage httpResponseMessage, + ref string content); + + /// + /// Text To Speech + /// + /// + /// + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostAsync( + string voiceId, + string? xDeepinfraSource, + global::DeepInfra.ElevenLabsTextToSpeechIn request, + global::System.Threading.CancellationToken cancellationToken = default) + { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + + PrepareArguments( + client: _httpClient); + PrepareTextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostArguments( + httpClient: _httpClient, + voiceId: ref voiceId, + xDeepinfraSource: ref xDeepinfraSource, + request: request); + + using var httpRequest = new global::System.Net.Http.HttpRequestMessage( + method: global::System.Net.Http.HttpMethod.Post, + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1/elevenlabs/v1/text-to-speech/{voiceId}", global::System.UriKind.RelativeOrAbsolute)); + var __httpRequestContent = new global::System.Net.Http.StringContent( + content: global::System.Text.Json.JsonSerializer.Serialize(request, global::DeepInfra.SourceGenerationContext.Default.ElevenLabsTextToSpeechIn), + encoding: global::System.Text.Encoding.UTF8, + mediaType: "application/json"); + httpRequest.Content = __httpRequestContent; + + PrepareRequest( + client: _httpClient, + request: httpRequest); + PrepareTextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostRequest( + httpClient: _httpClient, + httpRequestMessage: httpRequest, + voiceId: voiceId, + xDeepinfraSource: xDeepinfraSource, + request: request); + + using var response = await _httpClient.SendAsync( + request: httpRequest, + completionOption: global::System.Net.Http.HttpCompletionOption.ResponseContentRead, + cancellationToken: cancellationToken).ConfigureAwait(false); + + ProcessResponse( + client: _httpClient, + response: response); + ProcessTextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostResponse( + httpClient: _httpClient, + httpResponseMessage: response); + + var __content = await response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false); + + ProcessResponseContent( + client: _httpClient, + response: response, + content: ref __content); + ProcessTextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostResponseContent( + httpClient: _httpClient, + httpResponseMessage: response, + content: ref __content); + + try + { + response.EnsureSuccessStatusCode(); + } + catch (global::System.Net.Http.HttpRequestException ex) + { + throw new global::System.InvalidOperationException(__content, ex); + } + + return + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostResponse) ?? + throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + } + + /// + /// Text To Speech + /// + /// + /// + /// + /// Text to convert to speech
+ /// Example: I'm beginnin' to feel like a Rap God, Rap God
+ /// All my people from the front to the back nod, back nod
+ /// Now, who thinks their arms are long enough to slap box, slap box?
+ /// They said I rap like a robot, so call me Rap-bot + /// + /// + /// Model ID to use for the conversion
+ /// Default Value: deepinfra/tts + /// + /// + /// Output format for the speech
+ /// Default Value: wav + /// + /// + /// ISO 639-1, 2 letter language code + /// + /// The token to cancel the operation with + /// + public async global::System.Threading.Tasks.Task TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostAsync( + string voiceId, + string text, + string? xDeepinfraSource = default, + global::System.AllOf? modelId = default, + global::System.AllOf? outputFormat = default, + string? languageCode = default, + global::System.Threading.CancellationToken cancellationToken = default) + { + var request = new global::DeepInfra.ElevenLabsTextToSpeechIn + { + Text = text, + ModelId = modelId, + OutputFormat = outputFormat, + LanguageCode = languageCode, + }; + + return await TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostAsync( + voiceId: voiceId, + xDeepinfraSource: xDeepinfraSource, + request: request, + cancellationToken: cancellationToken).ConfigureAwait(false); + } + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UpdateVoiceV1VoicesVoiceIdEditPost.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPost.g.cs similarity index 82% rename from src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UpdateVoiceV1VoicesVoiceIdEditPost.g.cs rename to src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPost.g.cs index 72a9894..db47444 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UpdateVoiceV1VoicesVoiceIdEditPost.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPost.g.cs @@ -5,20 +5,20 @@ namespace DeepInfra { public partial class DeepInfraApi { - partial void PrepareUpdateVoiceV1VoicesVoiceIdEditPostArguments( + partial void PrepareUpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPostArguments( global::System.Net.Http.HttpClient httpClient, ref string voiceId, global::DeepInfra.UpdateVoiceIn request); - partial void PrepareUpdateVoiceV1VoicesVoiceIdEditPostRequest( + partial void PrepareUpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPostRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string voiceId, global::DeepInfra.UpdateVoiceIn request); - partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponse( + partial void ProcessUpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPostResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); - partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent( + partial void ProcessUpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPostResponseContent( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage, ref string content); @@ -30,7 +30,7 @@ partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UpdateVoiceV1VoicesVoiceIdEditPostAsync( + public async global::System.Threading.Tasks.Task UpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPostAsync( string voiceId, global::DeepInfra.UpdateVoiceIn request, global::System.Threading.CancellationToken cancellationToken = default) @@ -39,14 +39,14 @@ partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent( PrepareArguments( client: _httpClient); - PrepareUpdateVoiceV1VoicesVoiceIdEditPostArguments( + PrepareUpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPostArguments( httpClient: _httpClient, voiceId: ref voiceId, request: request); using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Post, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1/voices/{voiceId}/edit", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/v1/elevenlabs/v1/voices/{voiceId}/edit", global::System.UriKind.RelativeOrAbsolute)); var __httpRequestContent = new global::System.Net.Http.StringContent( content: global::System.Text.Json.JsonSerializer.Serialize(request, global::DeepInfra.SourceGenerationContext.Default.UpdateVoiceIn), encoding: global::System.Text.Encoding.UTF8, @@ -56,7 +56,7 @@ partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent( PrepareRequest( client: _httpClient, request: httpRequest); - PrepareUpdateVoiceV1VoicesVoiceIdEditPostRequest( + PrepareUpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPostRequest( httpClient: _httpClient, httpRequestMessage: httpRequest, voiceId: voiceId, @@ -70,7 +70,7 @@ partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent( ProcessResponse( client: _httpClient, response: response); - ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponse( + ProcessUpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPostResponse( httpClient: _httpClient, httpResponseMessage: response); @@ -80,7 +80,7 @@ partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent( client: _httpClient, response: response, content: ref __content); - ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent( + ProcessUpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPostResponseContent( httpClient: _httpClient, httpResponseMessage: response, content: ref __content); @@ -95,7 +95,7 @@ partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent( } return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Voice) ?? + global::System.Text.Json.JsonSerializer.Deserialize(__content, global::DeepInfra.SourceGenerationContext.Default.Voice2) ?? throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); } @@ -107,7 +107,7 @@ partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent( /// /// The token to cancel the operation with /// - public async global::System.Threading.Tasks.Task UpdateVoiceV1VoicesVoiceIdEditPostAsync( + public async global::System.Threading.Tasks.Task UpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPostAsync( string voiceId, string name, string description, @@ -119,7 +119,7 @@ partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent( Description = description, }; - return await UpdateVoiceV1VoicesVoiceIdEditPostAsync( + return await UpdateVoiceV1ElevenlabsV1VoicesVoiceIdEditPostAsync( voiceId: voiceId, request: request, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UsagePaymentUsageGet.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UsagePaymentUsageGet.g.cs index 5a31f83..c0a16b5 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UsagePaymentUsageGet.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.DeepInfraApi.UsagePaymentUsageGet.g.cs @@ -8,14 +8,14 @@ public partial class DeepInfraApi partial void PrepareUsagePaymentUsageGetArguments( global::System.Net.Http.HttpClient httpClient, ref string from, - ref string to, - ref string session); + ref string? to, + ref string? session); partial void PrepareUsagePaymentUsageGetRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, string from, - string to, - string session); + string? to, + string? session); partial void ProcessUsagePaymentUsageGetResponse( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpResponseMessage httpResponseMessage); @@ -39,8 +39,8 @@ partial void ProcessUsagePaymentUsageGetResponseContent( /// public async global::System.Threading.Tasks.Task UsagePaymentUsageGetAsync( string from, - string to, - string session, + string? to, + string? session, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.AccountUpdateDetailsV1MePatchResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.AccountUpdateDetailsV1MePatchResponse.g.cs new file mode 100644 index 0000000..c1649d1 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.AccountUpdateDetailsV1MePatchResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class AccountUpdateDetailsV1MePatchResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatCompletionMessageToolCall.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatCompletionMessageToolCall.g.cs index 09f4aaa..0c05182 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatCompletionMessageToolCall.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatCompletionMessageToolCall.g.cs @@ -30,7 +30,7 @@ public sealed partial class ChatCompletionMessageToolCall [global::System.Text.Json.Serialization.JsonPropertyName("function")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.AllOf Function { get; set; } + public required global::System.AllOf Function { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatCompletionUserMessage.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatCompletionUserMessage.g.cs index 44f176c..86f5441 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatCompletionUserMessage.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ChatCompletionUserMessage.g.cs @@ -24,7 +24,7 @@ public sealed partial class ChatCompletionUserMessage [global::System.Text.Json.Serialization.JsonPropertyName("content")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.AnyOf>> Content { get; set; } + public required global::System.AnyOf>?> Content { get; set; } /// /// diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.CliVersionCliVersionGetResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.CliVersionCliVersionGetResponse.g.cs new file mode 100644 index 0000000..14eb061 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.CliVersionCliVersionGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class CliVersionCliVersionGetResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.DeleteApiTokenV1ApiTokensApiTokenDeleteResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.DeleteApiTokenV1ApiTokensApiTokenDeleteResponse.g.cs new file mode 100644 index 0000000..48877b1 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.DeleteApiTokenV1ApiTokensApiTokenDeleteResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class DeleteApiTokenV1ApiTokensApiTokenDeleteResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponse.g.cs new file mode 100644 index 0000000..afd9708 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.DeployLLMConfigGpu.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.DeployLLMConfigGpu.g.cs deleted file mode 100644 index 4ba4db6..0000000 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.DeployLLMConfigGpu.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace DeepInfra -{ - /// - /// An enumeration. - /// - public enum DeployLLMConfigGpu - { - /// - /// - /// - A10080GB, - /// - /// - /// - H10080GB, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class DeployLLMConfigGpuExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this DeployLLMConfigGpu value) - { - return value switch - { - DeployLLMConfigGpu.A10080GB => "A100-80GB", - DeployLLMConfigGpu.H10080GB => "H100-80GB", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static DeployLLMConfigGpu? ToEnum(string value) - { - return value switch - { - "A100-80GB" => DeployLLMConfigGpu.A10080GB, - "H100-80GB" => DeployLLMConfigGpu.H10080GB, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.DeployLLMInGpu.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.DeployLLMInGpu.g.cs deleted file mode 100644 index fb3b3da..0000000 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.DeployLLMInGpu.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace DeepInfra -{ - /// - /// An enumeration. - /// - public enum DeployLLMInGpu - { - /// - /// - /// - A10080GB, - /// - /// - /// - H10080GB, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class DeployLLMInGpuExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this DeployLLMInGpu value) - { - return value switch - { - DeployLLMInGpu.A10080GB => "A100-80GB", - DeployLLMInGpu.H10080GB => "H100-80GB", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static DeployLLMInGpu? ToEnum(string value) - { - return value switch - { - "A100-80GB" => DeployLLMInGpu.A10080GB, - "H100-80GB" => DeployLLMInGpu.H10080GB, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.DeployModelInProvider.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.DeployModelInProvider.g.cs deleted file mode 100644 index aa4fe96..0000000 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.DeployModelInProvider.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace DeepInfra -{ - /// - /// An enumeration. - /// - public enum DeployModelInProvider - { - /// - /// - /// - Huggingface, - /// - /// - /// - Deepinfra, - /// - /// - /// - Cnt, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class DeployModelInProviderExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this DeployModelInProvider value) - { - return value switch - { - DeployModelInProvider.Huggingface => "huggingface", - DeployModelInProvider.Deepinfra => "deepinfra", - DeployModelInProvider.Cnt => "cnt", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static DeployModelInProvider? ToEnum(string value) - { - return value switch - { - "huggingface" => DeployModelInProvider.Huggingface, - "deepinfra" => DeployModelInProvider.Deepinfra, - "cnt" => DeployModelInProvider.Cnt, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentLogQueryOut.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentLogQueryOut.g.cs index 6803890..9a89af7 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentLogQueryOut.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentLogQueryOut.g.cs @@ -12,7 +12,7 @@ public sealed partial class DeploymentLogQueryOut /// mapping of pod names to log lines ordered by increasing timestamp /// [global::System.Text.Json.Serialization.JsonPropertyName("entries")] - public object? Entries { get; set; } + public global::DeepInfra.DeploymentLogQueryOutEntries? Entries { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentLogQueryOutEntries.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentLogQueryOutEntries.g.cs new file mode 100644 index 0000000..c8625ed --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentLogQueryOutEntries.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// mapping of pod names to log lines ordered by increasing timestamp + /// + public sealed partial class DeploymentLogQueryOutEntries + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentOutType.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentOutType.g.cs deleted file mode 100644 index eeb6e0e..0000000 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.DeploymentOutType.g.cs +++ /dev/null @@ -1,51 +0,0 @@ - -#nullable enable - -namespace DeepInfra -{ - /// - /// An enumeration. - /// - public enum DeploymentOutType - { - /// - /// - /// - Legacy, - /// - /// - /// - Llm, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class DeploymentOutTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this DeploymentOutType value) - { - return value switch - { - DeploymentOutType.Legacy => "legacy", - DeploymentOutType.Llm => "llm", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static DeploymentOutType? ToEnum(string value) - { - return value switch - { - "legacy" => DeploymentOutType.Legacy, - "llm" => DeploymentOutType.Llm, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ElevenLabsTextToSpeechIn.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ElevenLabsTextToSpeechIn.g.cs new file mode 100644 index 0000000..3cc7cf2 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ElevenLabsTextToSpeechIn.g.cs @@ -0,0 +1,52 @@ + +#pragma warning disable CS0618 // Type or member is obsolete + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class ElevenLabsTextToSpeechIn + { + /// + /// Text to convert to speech
+ /// Example: I'm beginnin' to feel like a Rap God, Rap God
+ /// All my people from the front to the back nod, back nod
+ /// Now, who thinks their arms are long enough to slap box, slap box?
+ /// They said I rap like a robot, so call me Rap-bot + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("text")] + [global::System.Text.Json.Serialization.JsonRequired] + public required string Text { get; set; } + + /// + /// Model ID to use for the conversion
+ /// Default Value: deepinfra/tts + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("model_id")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))] + public global::System.AllOf? ModelId { get; set; } = global::DeepInfra.TtsModel.DeepinfraTts; + + /// + /// Output format for the speech
+ /// Default Value: wav + ///
+ [global::System.Text.Json.Serialization.JsonPropertyName("output_format")] + [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))] + public global::System.AllOf? OutputFormat { get; set; } = global::DeepInfra.TtsResponseFormat.Wav; + + /// + /// ISO 639-1, 2 letter language code + /// + [global::System.Text.Json.Serialization.JsonPropertyName("language_code")] + public string? LanguageCode { 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.Function.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.Function2.g.cs similarity index 96% rename from src/libs/DeepInfra/Generated/DeepInfra.Models.Function.g.cs rename to src/libs/DeepInfra/Generated/DeepInfra.Models.Function2.g.cs index a5eb1d0..0b5e13c 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.Function.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.Function2.g.cs @@ -6,7 +6,7 @@ namespace DeepInfra /// /// /// - public sealed partial class Function + public sealed partial class Function2 { /// /// the name of the function to call diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.FunctionDefinition.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.FunctionDefinition.g.cs index b5aac82..e335be2 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.FunctionDefinition.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.FunctionDefinition.g.cs @@ -26,7 +26,7 @@ public sealed partial class FunctionDefinition /// /// [global::System.Text.Json.Serialization.JsonPropertyName("parameters")] - public object? Parameters { get; set; } + public global::DeepInfra.FunctionDefinitionParameters? Parameters { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.FunctionDefinitionParameters.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.FunctionDefinitionParameters.g.cs new file mode 100644 index 0000000..23cec2d --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.FunctionDefinitionParameters.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class FunctionDefinitionParameters + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.GetVoicesOut.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.GetVoicesOut.g.cs index f5b81c9..e2e813d 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.GetVoicesOut.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.GetVoicesOut.g.cs @@ -12,7 +12,7 @@ public sealed partial class GetVoicesOut /// /// [global::System.Text.Json.Serialization.JsonPropertyName("voices")] - public global::System.Collections.Generic.IList? Voices { get; set; } + public global::System.Collections.Generic.IList? Voices { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.GithubCliLoginGithubCliLoginGetResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.GithubCliLoginGithubCliLoginGetResponse.g.cs new file mode 100644 index 0000000..dc02bbe --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.GithubCliLoginGithubCliLoginGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class GithubCliLoginGithubCliLoginGetResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.GithubLoginGithubLoginGetResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.GithubLoginGithubLoginGetResponse.g.cs new file mode 100644 index 0000000..84a7eb6 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.GithubLoginGithubLoginGetResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class GithubLoginGithubLoginGetResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.InferenceDeployV1InferenceDeployDeployIdPostResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.InferenceDeployV1InferenceDeployDeployIdPostResponse.g.cs new file mode 100644 index 0000000..dfe142f --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.InferenceDeployV1InferenceDeployDeployIdPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class InferenceDeployV1InferenceDeployDeployIdPostResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.InferenceModelV1InferenceModelNamePostResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.InferenceModelV1InferenceModelNamePostResponse.g.cs new file mode 100644 index 0000000..82363cf --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.InferenceModelV1InferenceModelNamePostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class InferenceModelV1InferenceModelNamePostResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.LogQueryOut.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.LogQueryOut.g.cs index 3417bd8..7095005 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.LogQueryOut.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.LogQueryOut.g.cs @@ -12,7 +12,7 @@ public sealed partial class LogQueryOut /// list of log lines ordered by increasing timestamp /// [global::System.Text.Json.Serialization.JsonPropertyName("entries")] - public global::System.Collections.Generic.IList?>? Entries { get; set; } + public global::System.Collections.Generic.IList>? Entries { get; set; } /// /// Additional properties that are not explicitly defined in the schema diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.LogQueryOutEntrieItem.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.LogQueryOutEntrieItem.g.cs new file mode 100644 index 0000000..caff15f --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.LogQueryOutEntrieItem.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class LogQueryOutEntrieItem + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelDeleteModelsModelNameDeleteResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelDeleteModelsModelNameDeleteResponse.g.cs new file mode 100644 index 0000000..6677658 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelDeleteModelsModelNameDeleteResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class ModelDeleteModelsModelNameDeleteResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfo.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfo.g.cs index 8c11cda..8d1fd8d 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfo.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfo.g.cs @@ -38,19 +38,19 @@ public sealed partial class ModelFieldInfo /// /// [global::System.Text.Json.Serialization.JsonPropertyName("allowed")] - public global::System.Collections.Generic.IList? Allowed { get; set; } + public global::System.Collections.Generic.IList? Allowed { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("default")] - public object? Default { get; set; } + public global::DeepInfra.ModelFieldInfoDefault? Default { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("examples")] - public global::System.Collections.Generic.IList? Examples { get; set; } + public global::System.Collections.Generic.IList? Examples { get; set; } /// /// diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfoAllowedItem.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfoAllowedItem.g.cs new file mode 100644 index 0000000..d161d07 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfoAllowedItem.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class ModelFieldInfoAllowedItem + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfoDefault.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfoDefault.g.cs new file mode 100644 index 0000000..c333e6f --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfoDefault.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class ModelFieldInfoDefault + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfoExample.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfoExample.g.cs new file mode 100644 index 0000000..480f266 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelFieldInfoExample.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class ModelFieldInfoExample + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOut.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOut.g.cs index 6ebc5c5..d3ea994 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOut.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOut.g.cs @@ -116,13 +116,13 @@ public sealed partial class ModelInfoOut /// /// [global::System.Text.Json.Serialization.JsonPropertyName("in_schema")] - public object? InSchema { get; set; } + public global::DeepInfra.ModelInfoOutInSchema? InSchema { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("out_schema")] - public object? OutSchema { get; set; } + public global::DeepInfra.ModelInfoOutOutSchema? OutSchema { get; set; } /// /// @@ -155,7 +155,7 @@ public sealed partial class ModelInfoOut /// /// [global::System.Text.Json.Serialization.JsonPropertyName("meta")] - public object? Meta { get; set; } + public global::DeepInfra.ModelInfoOutMeta? Meta { get; set; } /// /// diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOutInSchema.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOutInSchema.g.cs new file mode 100644 index 0000000..80cf664 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOutInSchema.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class ModelInfoOutInSchema + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOutMeta.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOutMeta.g.cs new file mode 100644 index 0000000..7dd714a --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOutMeta.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class ModelInfoOutMeta + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOutOutSchema.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOutOutSchema.g.cs new file mode 100644 index 0000000..e69500c --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelInfoOutOutSchema.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class ModelInfoOutOutSchema + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelMetaInReportedType.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelMetaInReportedType.g.cs deleted file mode 100644 index 32a645d..0000000 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelMetaInReportedType.g.cs +++ /dev/null @@ -1,129 +0,0 @@ - -#nullable enable - -namespace DeepInfra -{ - /// - /// An enumeration. - /// - public enum ModelMetaInReportedType - { - /// - /// - /// - AutomaticSpeechRecognition, - /// - /// - /// - ImageClassification, - /// - /// - /// - QuestionAnswering, - /// - /// - /// - TokenClassification, - /// - /// - /// - TextToImage, - /// - /// - /// - FillMask, - /// - /// - /// - ZeroShotImageClassification, - /// - /// - /// - Text2textGeneration, - /// - /// - /// - TextGeneration, - /// - /// - /// - TextClassification, - /// - /// - /// - ObjectDetection, - /// - /// - /// - Embeddings, - /// - /// - /// - Dreambooth, - /// - /// - /// - Custom, - /// - /// - /// - TextToSpeech, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ModelMetaInReportedTypeExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ModelMetaInReportedType value) - { - return value switch - { - ModelMetaInReportedType.AutomaticSpeechRecognition => "automatic-speech-recognition", - ModelMetaInReportedType.ImageClassification => "image-classification", - ModelMetaInReportedType.QuestionAnswering => "question-answering", - ModelMetaInReportedType.TokenClassification => "token-classification", - ModelMetaInReportedType.TextToImage => "text-to-image", - ModelMetaInReportedType.FillMask => "fill-mask", - ModelMetaInReportedType.ZeroShotImageClassification => "zero-shot-image-classification", - ModelMetaInReportedType.Text2textGeneration => "text2text-generation", - ModelMetaInReportedType.TextGeneration => "text-generation", - ModelMetaInReportedType.TextClassification => "text-classification", - ModelMetaInReportedType.ObjectDetection => "object-detection", - ModelMetaInReportedType.Embeddings => "embeddings", - ModelMetaInReportedType.Dreambooth => "dreambooth", - ModelMetaInReportedType.Custom => "custom", - ModelMetaInReportedType.TextToSpeech => "text-to-speech", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ModelMetaInReportedType? ToEnum(string value) - { - return value switch - { - "automatic-speech-recognition" => ModelMetaInReportedType.AutomaticSpeechRecognition, - "image-classification" => ModelMetaInReportedType.ImageClassification, - "question-answering" => ModelMetaInReportedType.QuestionAnswering, - "token-classification" => ModelMetaInReportedType.TokenClassification, - "text-to-image" => ModelMetaInReportedType.TextToImage, - "fill-mask" => ModelMetaInReportedType.FillMask, - "zero-shot-image-classification" => ModelMetaInReportedType.ZeroShotImageClassification, - "text2text-generation" => ModelMetaInReportedType.Text2textGeneration, - "text-generation" => ModelMetaInReportedType.TextGeneration, - "text-classification" => ModelMetaInReportedType.TextClassification, - "object-detection" => ModelMetaInReportedType.ObjectDetection, - "embeddings" => ModelMetaInReportedType.Embeddings, - "dreambooth" => ModelMetaInReportedType.Dreambooth, - "custom" => ModelMetaInReportedType.Custom, - "text-to-speech" => ModelMetaInReportedType.TextToSpeech, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelMetaUpdateModelsModelNameMetaPostResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelMetaUpdateModelsModelNameMetaPostResponse.g.cs new file mode 100644 index 0000000..834f71b --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelMetaUpdateModelsModelNameMetaPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class ModelMetaUpdateModelsModelNameMetaPostResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelOut.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelOut.g.cs index 7f1da64..3278262 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelOut.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelOut.g.cs @@ -51,7 +51,7 @@ public sealed partial class ModelOut /// list of tags /// [global::System.Text.Json.Serialization.JsonPropertyName("tags")] - public global::System.Collections.Generic.IList? Tags { get; set; } + public global::System.Collections.Generic.IList? Tags { get; set; } /// /// The pricing type and cost for this model diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelPublicityModelsModelNamePublicityPostResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelPublicityModelsModelNamePublicityPostResponse.g.cs new file mode 100644 index 0000000..2533a30 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelPublicityModelsModelNamePublicityPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class ModelPublicityModelsModelNamePublicityPostResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.g.cs deleted file mode 100644 index 6e8f622..0000000 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.g.cs +++ /dev/null @@ -1,63 +0,0 @@ - -#nullable enable - -namespace DeepInfra -{ - /// - /// An enumeration. - /// - public enum ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey - { - /// - /// - /// - Default, - /// - /// - /// - OpenaiCompletions, - /// - /// - /// - OpenaiChatCompletions, - /// - /// - /// - OpenaiEmbeddings, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKeyExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey value) - { - return value switch - { - ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.Default => "default", - ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.OpenaiCompletions => "openai-completions", - ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.OpenaiChatCompletions => "openai-chat-completions", - ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.OpenaiEmbeddings => "openai-embeddings", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey? ToEnum(string value) - { - return value switch - { - "default" => ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.Default, - "openai-completions" => ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.OpenaiCompletions, - "openai-chat-completions" => ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.OpenaiChatCompletions, - "openai-embeddings" => ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.OpenaiEmbeddings, - _ => 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 f7ad38b..3a0ad18 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIChatCompletionsIn.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIChatCompletionsIn.g.cs @@ -65,7 +65,7 @@ public sealed partial class OpenAIChatCompletionsIn /// [global::System.Text.Json.Serialization.JsonPropertyName("stop")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))] - public global::System.AnyOf?>? Stop { get; set; } + public global::System.AnyOf?>? Stop { get; set; } /// /// number of sequences to return. n != 1 incompatible with streaming
@@ -105,7 +105,7 @@ public sealed partial class OpenAIChatCompletionsIn ///
[global::System.Text.Json.Serialization.JsonPropertyName("response_format")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))] - public global::System.AllOf? ResponseFormat { get; set; } + public global::System.AllOf? ResponseFormat { get; set; } /// /// Alternative penalty for repetition, but multiplicative instead of additive (> 1 penalize, < 1 encourage)
diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAICompletionsIn.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAICompletionsIn.g.cs index 22fded6..55b618c 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAICompletionsIn.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAICompletionsIn.g.cs @@ -84,7 +84,7 @@ public sealed partial class OpenAICompletionsIn ///
[global::System.Text.Json.Serialization.JsonPropertyName("stop")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))] - public global::System.AnyOf?>? Stop { get; set; } + public global::System.AnyOf?>? Stop { get; set; } /// /// Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics.
@@ -105,7 +105,7 @@ public sealed partial class OpenAICompletionsIn ///
[global::System.Text.Json.Serialization.JsonPropertyName("response_format")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AllOfJsonConverterFactory1))] - public global::System.AllOf? ResponseFormat { get; set; } + public global::System.AllOf? ResponseFormat { get; set; } /// /// Alternative penalty for repetition, but multiplicative instead of additive (> 1 penalize, < 1 encourage)
diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIEmbeddingsIn.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIEmbeddingsIn.g.cs index e69edf9..b4e5d81 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIEmbeddingsIn.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAIEmbeddingsIn.g.cs @@ -25,7 +25,7 @@ public sealed partial class OpenAIEmbeddingsIn [global::System.Text.Json.Serialization.JsonPropertyName("input")] [global::System.Text.Json.Serialization.JsonConverter(typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2))] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.AnyOf, string> Input { get; set; } + public required global::System.AnyOf?, string?> Input { get; set; } /// /// format used when encoding
diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAITextToSpeechIn.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAITextToSpeechIn.g.cs index 653679e..0a877aa 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAITextToSpeechIn.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAITextToSpeechIn.g.cs @@ -10,12 +10,6 @@ namespace DeepInfra ///
public sealed partial class OpenAITextToSpeechIn { - /// - /// The webhook to call when inference is done, by default you will get the output in the response of your inference request - /// - [global::System.Text.Json.Serialization.JsonPropertyName("webhook")] - public string? Webhook { get; set; } - /// /// model name
/// Example: deepinfra/tts @@ -25,8 +19,11 @@ public sealed partial class OpenAITextToSpeechIn public required string Model { get; set; } /// - /// text to convert to speech
- /// Example: Hello, how are you? + /// Text to convert to speech
+ /// Example: I'm beginnin' to feel like a Rap God, Rap God
+ /// All my people from the front to the back nod, back nod
+ /// Now, who thinks their arms are long enough to slap box, slap box?
+ /// They said I rap like a robot, so call me Rap-bot ///
[global::System.Text.Json.Serialization.JsonPropertyName("input")] [global::System.Text.Json.Serialization.JsonRequired] diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAITextToSpeechInVoice.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAITextToSpeechInVoice.g.cs deleted file mode 100644 index cc6bce1..0000000 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAITextToSpeechInVoice.g.cs +++ /dev/null @@ -1,57 +0,0 @@ - -#nullable enable - -namespace DeepInfra -{ - /// - /// An enumeration. - /// - public enum OpenAITextToSpeechInVoice - { - /// - /// - /// - Luna, - /// - /// - /// - Aura, - /// - /// - /// - Quartz, - } - - /// - /// Enum extensions to do fast conversions without the reflection. - /// - public static class OpenAITextToSpeechInVoiceExtensions - { - /// - /// Converts an enum to a string. - /// - public static string ToValueString(this OpenAITextToSpeechInVoice value) - { - return value switch - { - OpenAITextToSpeechInVoice.Luna => "luna", - OpenAITextToSpeechInVoice.Aura => "aura", - OpenAITextToSpeechInVoice.Quartz => "quartz", - _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), - }; - } - /// - /// Converts an string to a enum. - /// - public static OpenAITextToSpeechInVoice? ToEnum(string value) - { - return value switch - { - "luna" => OpenAITextToSpeechInVoice.Luna, - "aura" => OpenAITextToSpeechInVoice.Aura, - "quartz" => OpenAITextToSpeechInVoice.Quartz, - _ => null, - }; - } - } -} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiAudioSpeechV1OpenaiAudioSpeechPostResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiAudioSpeechV1OpenaiAudioSpeechPostResponse.g.cs new file mode 100644 index 0000000..4600fb3 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiAudioSpeechV1OpenaiAudioSpeechPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class OpenaiAudioSpeechV1OpenaiAudioSpeechPostResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiChatCompletionsV1OpenaiChatCompletionsPostResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiChatCompletionsV1OpenaiChatCompletionsPostResponse.g.cs new file mode 100644 index 0000000..b39159f --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiChatCompletionsV1OpenaiChatCompletionsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class OpenaiChatCompletionsV1OpenaiChatCompletionsPostResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiCompletionsV1OpenaiCompletionsPostResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiCompletionsV1OpenaiCompletionsPostResponse.g.cs new file mode 100644 index 0000000..fc9cbd6 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiCompletionsV1OpenaiCompletionsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class OpenaiCompletionsV1OpenaiCompletionsPostResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiEmbeddingsV1OpenaiEmbeddingsPostResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiEmbeddingsV1OpenaiEmbeddingsPostResponse.g.cs new file mode 100644 index 0000000..647926f --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenaiEmbeddingsV1OpenaiEmbeddingsPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class OpenaiEmbeddingsV1OpenaiEmbeddingsPostResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.RequestRateLimitIncreaseV1MeRateLimitRequestPostResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.RequestRateLimitIncreaseV1MeRateLimitRequestPostResponse.g.cs new file mode 100644 index 0000000..fa274c8 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.RequestRateLimitIncreaseV1MeRateLimitRequestPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class RequestRateLimitIncreaseV1MeRateLimitRequestPostResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ResponseFormat.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ResponseFormat4.g.cs similarity index 95% rename from src/libs/DeepInfra/Generated/DeepInfra.Models.ResponseFormat.g.cs rename to src/libs/DeepInfra/Generated/DeepInfra.Models.ResponseFormat4.g.cs index cd96a97..190bd97 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.ResponseFormat.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ResponseFormat4.g.cs @@ -6,7 +6,7 @@ namespace DeepInfra /// /// /// - public sealed partial class ResponseFormat + public sealed partial class ResponseFormat4 { /// /// Response type, such as JSON mode
diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOut.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOut.g.cs index 0869232..2742362 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOut.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOut.g.cs @@ -38,19 +38,19 @@ public sealed partial class SchemaFieldOut /// ///
[global::System.Text.Json.Serialization.JsonPropertyName("allowed")] - public global::System.Collections.Generic.IList? Allowed { get; set; } + public global::System.Collections.Generic.IList? Allowed { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("default")] - public object? Default { get; set; } + public global::DeepInfra.SchemaFieldOutDefault? Default { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("examples")] - public global::System.Collections.Generic.IList? Examples { get; set; } + public global::System.Collections.Generic.IList? Examples { get; set; } /// /// diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOutAllowedItem.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOutAllowedItem.g.cs new file mode 100644 index 0000000..62f9941 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOutAllowedItem.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class SchemaFieldOutAllowedItem + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOutDefault.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOutDefault.g.cs new file mode 100644 index 0000000..b51a16a --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOutDefault.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class SchemaFieldOutDefault + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOutExample.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOutExample.g.cs new file mode 100644 index 0000000..fc5e22b --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaFieldOutExample.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class SchemaFieldOutExample + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOut.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOut.g.cs index b4d6bb7..24c9474 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOut.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOut.g.cs @@ -19,19 +19,19 @@ public sealed partial class SchemaOut /// /// [global::System.Text.Json.Serialization.JsonPropertyName("schema_in")] - public object? SchemaIn { get; set; } + public global::DeepInfra.SchemaOutSchemaIn? SchemaIn { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("schema_out")] - public object? SchemaOut1 { get; set; } + public global::DeepInfra.SchemaOutSchemaOut1? SchemaOut1 { get; set; } /// /// /// [global::System.Text.Json.Serialization.JsonPropertyName("schema_stream")] - public object? SchemaStream { get; set; } + public global::DeepInfra.SchemaOutSchemaStream? SchemaStream { get; set; } /// /// diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOutSchemaIn.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOutSchemaIn.g.cs new file mode 100644 index 0000000..1d36cd3 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOutSchemaIn.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class SchemaOutSchemaIn + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOutSchemaOut1.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOutSchemaOut1.g.cs new file mode 100644 index 0000000..aebbed2 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOutSchemaOut1.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class SchemaOutSchemaOut1 + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOutSchemaStream.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOutSchemaStream.g.cs new file mode 100644 index 0000000..77b289c --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.SchemaOutSchemaStream.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class SchemaOutSchemaStream + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.SubmitFeedbackV1FeedbackPostResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.SubmitFeedbackV1FeedbackPostResponse.g.cs new file mode 100644 index 0000000..aee490c --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.SubmitFeedbackV1FeedbackPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class SubmitFeedbackV1FeedbackPostResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostResponse.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostResponse.g.cs new file mode 100644 index 0000000..5179c25 --- /dev/null +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostResponse.g.cs @@ -0,0 +1,18 @@ + +#nullable enable + +namespace DeepInfra +{ + /// + /// + /// + public sealed partial class TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostResponse + { + + /// + /// 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(); + } +} \ No newline at end of file diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAITextToSpeechInResponseFormat.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.TtsModel.g.cs similarity index 63% rename from src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAITextToSpeechInResponseFormat.g.cs rename to src/libs/DeepInfra/Generated/DeepInfra.Models.TtsModel.g.cs index 9b0c035..73b2e19 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.OpenAITextToSpeechInResponseFormat.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.TtsModel.g.cs @@ -6,38 +6,38 @@ namespace DeepInfra /// /// An enumeration. /// - public enum OpenAITextToSpeechInResponseFormat + public enum TtsModel { /// /// /// - Wav, + DeepinfraTts, } /// /// Enum extensions to do fast conversions without the reflection. /// - public static class OpenAITextToSpeechInResponseFormatExtensions + public static class TtsModelExtensions { /// /// Converts an enum to a string. /// - public static string ToValueString(this OpenAITextToSpeechInResponseFormat value) + public static string ToValueString(this TtsModel value) { return value switch { - OpenAITextToSpeechInResponseFormat.Wav => "wav", + TtsModel.DeepinfraTts => "deepinfra/tts", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } /// /// Converts an string to a enum. /// - public static OpenAITextToSpeechInResponseFormat? ToEnum(string value) + public static TtsModel? ToEnum(string value) { return value switch { - "wav" => OpenAITextToSpeechInResponseFormat.Wav, + "deepinfra/tts" => TtsModel.DeepinfraTts, _ => null, }; } diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.ValidationError.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.ValidationError.g.cs index d481c72..aff76dd 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.ValidationError.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.ValidationError.g.cs @@ -15,7 +15,7 @@ public sealed partial class ValidationError /// [global::System.Text.Json.Serialization.JsonPropertyName("loc")] [global::System.Text.Json.Serialization.JsonRequired] - public required global::System.Collections.Generic.IList> Loc { get; set; } + public required global::System.Collections.Generic.IList> Loc { get; set; } /// /// diff --git a/src/libs/DeepInfra/Generated/DeepInfra.Models.Voice.g.cs b/src/libs/DeepInfra/Generated/DeepInfra.Models.Voice2.g.cs similarity index 97% rename from src/libs/DeepInfra/Generated/DeepInfra.Models.Voice.g.cs rename to src/libs/DeepInfra/Generated/DeepInfra.Models.Voice2.g.cs index 4f094cb..b015490 100644 --- a/src/libs/DeepInfra/Generated/DeepInfra.Models.Voice.g.cs +++ b/src/libs/DeepInfra/Generated/DeepInfra.Models.Voice2.g.cs @@ -6,7 +6,7 @@ namespace DeepInfra /// /// /// - public sealed partial class Voice + public sealed partial class Voice2 { /// /// diff --git a/src/libs/DeepInfra/Generated/JsonConverters.DeployLLMConfigGpu.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.DeployLLMConfigGpu.g.cs deleted file mode 100644 index b6b798d..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.DeployLLMConfigGpu.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class DeployLLMConfigGpuJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.DeployLLMConfigGpu 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.DeployLLMConfigGpuExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.DeployLLMConfigGpu)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.DeployLLMConfigGpu value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::DeepInfra.DeployLLMConfigGpuExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.DeployLLMConfigGpuNullable.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.DeployLLMConfigGpuNullable.g.cs deleted file mode 100644 index db31444..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.DeployLLMConfigGpuNullable.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class DeployLLMConfigGpuNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.DeployLLMConfigGpu? 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.DeployLLMConfigGpuExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.DeployLLMConfigGpu)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.DeployLLMConfigGpu? 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.DeployLLMConfigGpuExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.DeployModelInProvider.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.DeployModelInProvider.g.cs deleted file mode 100644 index cbe10d2..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.DeployModelInProvider.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class DeployModelInProviderJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.DeployModelInProvider 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.DeployModelInProviderExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.DeployModelInProvider)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.DeployModelInProvider value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::DeepInfra.DeployModelInProviderExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.DeployModelInProviderNullable.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.DeployModelInProviderNullable.g.cs deleted file mode 100644 index b6566df..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.DeployModelInProviderNullable.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class DeployModelInProviderNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.DeployModelInProvider? 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.DeployModelInProviderExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.DeployModelInProvider)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.DeployModelInProvider? 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.DeployModelInProviderExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.DeploymentOutType.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.DeploymentOutType.g.cs deleted file mode 100644 index ce850c5..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.DeploymentOutType.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class DeploymentOutTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.DeploymentOutType 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.DeploymentOutTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.DeploymentOutType)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.DeploymentOutType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::DeepInfra.DeploymentOutTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.DeploymentOutTypeNullable.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.DeploymentOutTypeNullable.g.cs deleted file mode 100644 index c1fcc79..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.DeploymentOutTypeNullable.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class DeploymentOutTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.DeploymentOutType? 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.DeploymentOutTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.DeploymentOutType)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.DeploymentOutType? 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.DeploymentOutTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.ModelMetaInReportedType.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.ModelMetaInReportedType.g.cs deleted file mode 100644 index 14c5efe..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.ModelMetaInReportedType.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class ModelMetaInReportedTypeJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.ModelMetaInReportedType 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.ModelMetaInReportedTypeExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.ModelMetaInReportedType)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.ModelMetaInReportedType value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::DeepInfra.ModelMetaInReportedTypeExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.ModelMetaInReportedTypeNullable.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.ModelMetaInReportedTypeNullable.g.cs deleted file mode 100644 index a4961bb..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.ModelMetaInReportedTypeNullable.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class ModelMetaInReportedTypeNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.ModelMetaInReportedType? 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.ModelMetaInReportedTypeExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.ModelMetaInReportedType)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.ModelMetaInReportedType? 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.ModelMetaInReportedTypeExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.g.cs deleted file mode 100644 index 7b88e87..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKeyJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey 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.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKeyExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::DeepInfra.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKeyExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKeyNullable.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKeyNullable.g.cs deleted file mode 100644 index c8a68fb..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKeyNullable.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKeyNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey? 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.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKeyExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKey? 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.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKeyExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInResponseFormat.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInResponseFormat.g.cs deleted file mode 100644 index 9d2dec7..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInResponseFormat.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class OpenAITextToSpeechInResponseFormatJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.OpenAITextToSpeechInResponseFormat 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.OpenAITextToSpeechInResponseFormatExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.OpenAITextToSpeechInResponseFormat)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.OpenAITextToSpeechInResponseFormat value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::DeepInfra.OpenAITextToSpeechInResponseFormatExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInResponseFormatNullable.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInResponseFormatNullable.g.cs deleted file mode 100644 index 61d6878..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInResponseFormatNullable.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class OpenAITextToSpeechInResponseFormatNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.OpenAITextToSpeechInResponseFormat? 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.OpenAITextToSpeechInResponseFormatExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.OpenAITextToSpeechInResponseFormat)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.OpenAITextToSpeechInResponseFormat? 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.OpenAITextToSpeechInResponseFormatExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInVoice.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInVoice.g.cs deleted file mode 100644 index a0543ce..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInVoice.g.cs +++ /dev/null @@ -1,49 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class OpenAITextToSpeechInVoiceJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.OpenAITextToSpeechInVoice 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.OpenAITextToSpeechInVoiceExtensions.ToEnum(stringValue) ?? default; - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.OpenAITextToSpeechInVoice)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.OpenAITextToSpeechInVoice value, - global::System.Text.Json.JsonSerializerOptions options) - { - writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - - writer.WriteStringValue(global::DeepInfra.OpenAITextToSpeechInVoiceExtensions.ToValueString(value)); - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInVoiceNullable.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInVoiceNullable.g.cs deleted file mode 100644 index 4e2a800..0000000 --- a/src/libs/DeepInfra/Generated/JsonConverters.OpenAITextToSpeechInVoiceNullable.g.cs +++ /dev/null @@ -1,56 +0,0 @@ -#nullable enable - -namespace OpenApiGenerator.JsonConverters -{ - /// - public sealed class OpenAITextToSpeechInVoiceNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter - { - /// - public override global::DeepInfra.OpenAITextToSpeechInVoice? 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.OpenAITextToSpeechInVoiceExtensions.ToEnum(stringValue); - } - - break; - } - case global::System.Text.Json.JsonTokenType.Number: - { - var numValue = reader.GetInt32(); - return (global::DeepInfra.OpenAITextToSpeechInVoice)numValue; - } - default: - throw new global::System.ArgumentOutOfRangeException(nameof(reader)); - } - - return default; - } - - /// - public override void Write( - global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.OpenAITextToSpeechInVoice? 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.OpenAITextToSpeechInVoiceExtensions.ToValueString(value.Value)); - } - } - } -} diff --git a/src/libs/DeepInfra/Generated/JsonConverters.DeployLLMInGpu.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.TtsModel.g.cs similarity index 70% rename from src/libs/DeepInfra/Generated/JsonConverters.DeployLLMInGpu.g.cs rename to src/libs/DeepInfra/Generated/JsonConverters.TtsModel.g.cs index a7daba3..2038d07 100644 --- a/src/libs/DeepInfra/Generated/JsonConverters.DeployLLMInGpu.g.cs +++ b/src/libs/DeepInfra/Generated/JsonConverters.TtsModel.g.cs @@ -3,10 +3,10 @@ namespace OpenApiGenerator.JsonConverters { /// - public sealed class DeployLLMInGpuJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class TtsModelJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::DeepInfra.DeployLLMInGpu Read( + public override global::DeepInfra.TtsModel Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class DeployLLMInGpuJsonConverter : global::System.Text.Json.Seria var stringValue = reader.GetString(); if (stringValue != null) { - return global::DeepInfra.DeployLLMInGpuExtensions.ToEnum(stringValue) ?? default; + return global::DeepInfra.TtsModelExtensions.ToEnum(stringValue) ?? default; } break; @@ -26,7 +26,7 @@ public sealed class DeployLLMInGpuJsonConverter : global::System.Text.Json.Seria case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::DeepInfra.DeployLLMInGpu)numValue; + return (global::DeepInfra.TtsModel)numValue; } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -38,12 +38,12 @@ public sealed class DeployLLMInGpuJsonConverter : global::System.Text.Json.Seria /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.DeployLLMInGpu value, + global::DeepInfra.TtsModel value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); - writer.WriteStringValue(global::DeepInfra.DeployLLMInGpuExtensions.ToValueString(value)); + writer.WriteStringValue(global::DeepInfra.TtsModelExtensions.ToValueString(value)); } } } diff --git a/src/libs/DeepInfra/Generated/JsonConverters.DeployLLMInGpuNullable.g.cs b/src/libs/DeepInfra/Generated/JsonConverters.TtsModelNullable.g.cs similarity index 72% rename from src/libs/DeepInfra/Generated/JsonConverters.DeployLLMInGpuNullable.g.cs rename to src/libs/DeepInfra/Generated/JsonConverters.TtsModelNullable.g.cs index 392a620..a7ebe3d 100644 --- a/src/libs/DeepInfra/Generated/JsonConverters.DeployLLMInGpuNullable.g.cs +++ b/src/libs/DeepInfra/Generated/JsonConverters.TtsModelNullable.g.cs @@ -3,10 +3,10 @@ namespace OpenApiGenerator.JsonConverters { /// - public sealed class DeployLLMInGpuNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + public sealed class TtsModelNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter { /// - public override global::DeepInfra.DeployLLMInGpu? Read( + public override global::DeepInfra.TtsModel? Read( ref global::System.Text.Json.Utf8JsonReader reader, global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) @@ -18,7 +18,7 @@ public sealed class DeployLLMInGpuNullableJsonConverter : global::System.Text.Js var stringValue = reader.GetString(); if (stringValue != null) { - return global::DeepInfra.DeployLLMInGpuExtensions.ToEnum(stringValue); + return global::DeepInfra.TtsModelExtensions.ToEnum(stringValue); } break; @@ -26,7 +26,7 @@ public sealed class DeployLLMInGpuNullableJsonConverter : global::System.Text.Js case global::System.Text.Json.JsonTokenType.Number: { var numValue = reader.GetInt32(); - return (global::DeepInfra.DeployLLMInGpu)numValue; + return (global::DeepInfra.TtsModel)numValue; } default: throw new global::System.ArgumentOutOfRangeException(nameof(reader)); @@ -38,7 +38,7 @@ public sealed class DeployLLMInGpuNullableJsonConverter : global::System.Text.Js /// public override void Write( global::System.Text.Json.Utf8JsonWriter writer, - global::DeepInfra.DeployLLMInGpu? value, + global::DeepInfra.TtsModel? value, global::System.Text.Json.JsonSerializerOptions options) { writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); @@ -49,7 +49,7 @@ public override void Write( } else { - writer.WriteStringValue(global::DeepInfra.DeployLLMInGpuExtensions.ToValueString(value.Value)); + writer.WriteStringValue(global::DeepInfra.TtsModelExtensions.ToValueString(value.Value)); } } } diff --git a/src/libs/DeepInfra/Generated/JsonSerializerContext.g.cs b/src/libs/DeepInfra/Generated/JsonSerializerContext.g.cs index 10a637a..e909666 100644 --- a/src/libs/DeepInfra/Generated/JsonSerializerContext.g.cs +++ b/src/libs/DeepInfra/Generated/JsonSerializerContext.g.cs @@ -16,6 +16,8 @@ namespace DeepInfra typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionAssistantMessageRoleNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionContentPartImageTypeJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionContentPartImageTypeNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ImageURLDetailJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ImageURLDetailNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionContentPartTextTypeJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionContentPartTextTypeNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionSystemMessageRoleJsonConverter), @@ -26,42 +28,26 @@ namespace DeepInfra typeof(global::OpenApiGenerator.JsonConverters.ChatCompletionUserMessageRoleNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.DeployGPUsJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.DeployGPUsNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.DeployLLMConfigGpuJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.DeployLLMConfigGpuNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.DeployLLMInGpuJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.DeployLLMInGpuNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.DeployModelInProviderJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.DeployModelInProviderNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ModelProviderJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ModelProviderNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.DeployTypeJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.DeployTypeNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.DeploymentOutTypeJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.DeploymentOutTypeNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.TtsModelJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.TtsModelNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.TtsResponseFormatJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.TtsResponseFormatNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.HFTasksEJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.HFTasksENullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.ImageURLDetailJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.ImageURLDetailNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ModelDocBlockKeyJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.ModelDocBlockKeyNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.ModelMetaInReportedTypeJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.ModelMetaInReportedTypeNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.ModelProviderJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.ModelProviderNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.OpenAIEmbeddingsInEncodingFormatJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.OpenAIEmbeddingsInEncodingFormatNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.OpenAITextToSpeechInVoiceJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.OpenAITextToSpeechInVoiceNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.OpenAITextToSpeechInResponseFormatJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.OpenAITextToSpeechInResponseFormatNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.ResponseFormatTypeJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.ResponseFormatTypeNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.SchemaVariantKeyJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.SchemaVariantKeyNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.TtsResponseFormatJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.TtsResponseFormatNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ResponseFormatTypeJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.ResponseFormatTypeNullableJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.OpenAIEmbeddingsInEncodingFormatJsonConverter), + typeof(global::OpenApiGenerator.JsonConverters.OpenAIEmbeddingsInEncodingFormatNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.TtsVoiceJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.TtsVoiceNullableJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKeyJsonConverter), - typeof(global::OpenApiGenerator.JsonConverters.ModelSchemaModelsModelNameSchemaVariantKeyGetVariantKeyNullableJsonConverter), typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory2), typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory6), typeof(global::OpenApiGenerator.JsonConverters.AnyOfJsonConverterFactory4), diff --git a/src/libs/DeepInfra/Generated/JsonSerializerContextTypes.g.cs b/src/libs/DeepInfra/Generated/JsonSerializerContextTypes.g.cs index 9d67fb5..d975374 100644 --- a/src/libs/DeepInfra/Generated/JsonSerializerContextTypes.g.cs +++ b/src/libs/DeepInfra/Generated/JsonSerializerContextTypes.g.cs @@ -13,442 +13,774 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public string? Type0 { get; set; } + public global::DeepInfra.BillingPortalOut? Type0 { get; set; } /// /// /// - public bool? Type1 { get; set; } + public string? Type1 { get; set; } /// /// /// - public double? Type2 { get; set; } + public global::DeepInfra.Checklist? Type2 { get; set; } /// /// /// - public int? Type3 { get; set; } + public bool? Type3 { get; set; } /// /// /// - public global::DeepInfra.SuspendReason? Type4 { get; set; } + public double? Type4 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type5 { get; set; } + public int? Type5 { get; set; } /// /// /// - public long? Type6 { get; set; } + public global::DeepInfra.SuspendReason? Type6 { get; set; } /// /// /// - public global::DeepInfra.ModelMeta? Type7 { get; set; } + public global::DeepInfra.ConfigIn? Type7 { get; set; } /// /// /// - public global::System.AllOf? Type8 { get; set; } + public global::DeepInfra.ConfigOut? Type8 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type9 { get; set; } + public global::DeepInfra.DeepStartApplicationIn? Type9 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type10 { get; set; } + public global::DeepInfra.DeepStartApplicationOut? Type10 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type11 { get; set; } + public global::DeepInfra.HTTPValidationError? Type11 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionAssistantMessageRole? Type12 { get; set; } + public global::System.Collections.Generic.IList? Type12 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type13 { get; set; } + public global::DeepInfra.ValidationError? Type13 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionContentPartImageType? Type14 { get; set; } + public global::System.Collections.Generic.IList>? Type14 { get; set; } /// /// /// - public global::DeepInfra.ImageURL? Type15 { get; set; } + public global::System.AnyOf? Type15 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionContentPartTextType? Type16 { get; set; } + public global::DeepInfra.ModelMeta? Type16 { get; set; } /// /// /// - public global::System.AllOf? Type17 { get; set; } + public global::DeepInfra.TimeInterval? Type17 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionSystemMessageRole? Type18 { get; set; } + public long? Type18 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionToolMessageRole? Type19 { get; set; } + public global::DeepInfra.UsageItem? Type19 { get; set; } /// /// /// - public global::DeepInfra.ChatCompletionUserMessageRole? Type20 { get; set; } + public global::System.AllOf? Type20 { get; set; } /// /// /// - public global::System.AnyOf>>? Type21 { get; set; } + public global::DeepInfra.UsageMonth? Type21 { get; set; } /// /// /// - public global::DeepInfra.FunctionDefinition? Type22 { get; set; } + public global::System.Collections.Generic.IList? Type22 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type23 { get; set; } + public global::DeepInfra.UsageOut? Type23 { get; set; } /// /// /// - public global::System.AllOf? Type24 { get; set; } + public global::System.Collections.Generic.IList? Type24 { get; set; } /// /// /// - public global::System.AllOf? Type25 { get; set; } + public global::DeepInfra.ApiToken? Type25 { get; set; } /// /// /// - public global::DeepInfra.HFWeights? Type26 { get; set; } + public global::DeepInfra.ApiTokenIn? Type26 { get; set; } /// /// /// - public global::DeepInfra.ScaleSettings? Type27 { get; set; } + public global::DeepInfra.ChatCompletionAssistantMessage? Type27 { get; set; } /// /// /// - public global::System.AllOf? Type28 { get; set; } + public global::DeepInfra.ChatCompletionAssistantMessageRole? Type28 { get; set; } /// /// /// - public object? Type29 { get; set; } + public global::System.Collections.Generic.IList? Type29 { get; set; } /// /// /// - public global::System.AllOf? Type30 { get; set; } + public global::DeepInfra.ChatCompletionMessageToolCall? Type30 { get; set; } /// /// /// - public global::System.DateTime? Type31 { get; set; } + public global::System.AllOf? Type31 { get; set; } /// /// /// - public global::System.AllOf? Type32 { get; set; } + public global::DeepInfra.Function2? Type32 { get; set; } /// /// /// - public global::System.AllOf? Type33 { get; set; } + public global::DeepInfra.ChatCompletionContentPartImage? Type33 { get; set; } /// /// /// - public global::System.AllOf? Type34 { get; set; } + public global::DeepInfra.ChatCompletionContentPartImageType? Type34 { get; set; } /// /// /// - public global::System.AllOf? Type35 { get; set; } + public global::DeepInfra.ImageURL? Type35 { get; set; } /// /// /// - public global::System.AllOf? Type36 { get; set; } + public global::DeepInfra.ImageURLDetail? Type36 { get; set; } /// /// /// - public global::System.AllOf? Type37 { get; set; } + public global::DeepInfra.ChatCompletionContentPartText? Type37 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type38 { get; set; } + public global::DeepInfra.ChatCompletionContentPartTextType? Type38 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type39 { get; set; } + public global::DeepInfra.ChatCompletionSystemMessage? Type39 { get; set; } /// /// /// - public global::DeepInfra.ImageURLDetail? Type40 { get; set; } + public global::DeepInfra.ChatCompletionSystemMessageRole? Type40 { get; set; } /// /// /// - public global::System.Collections.Generic.IList?>? Type41 { get; set; } + public global::DeepInfra.ChatCompletionToolMessage? Type41 { get; set; } /// /// /// - public global::DeepInfra.ModelDocBlockKey? Type42 { get; set; } + public global::DeepInfra.ChatCompletionToolMessageRole? Type42 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type43 { get; set; } + public global::DeepInfra.ChatCompletionUserMessage? Type43 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type44 { get; set; } + public global::DeepInfra.ChatCompletionUserMessageRole? Type44 { get; set; } /// /// /// - public global::System.AnyOf? Type45 { get; set; } + public global::System.AnyOf>?>? Type45 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type46 { get; set; } + public global::System.Collections.Generic.IList>? Type46 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type47 { get; set; } + public global::System.AnyOf? Type47 { get; set; } /// /// /// - public global::System.AllOf? Type48 { get; set; } + public global::DeepInfra.ChatTools? Type48 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type49 { get; set; } + public global::DeepInfra.FunctionDefinition? Type49 { get; set; } /// /// /// - public global::System.AnyOf? Type50 { get; set; } + public global::DeepInfra.FunctionDefinitionParameters? Type50 { get; set; } /// /// /// - public global::System.Collections.Generic.IList>? Type51 { get; set; } + public global::DeepInfra.DeepError? Type51 { get; set; } /// /// /// - public global::System.AnyOf?>? Type52 { get; set; } + public global::DeepInfra.DeployDelete? Type52 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type53 { get; set; } + public global::DeepInfra.DeployGPUAvailability? Type53 { get; set; } /// /// /// - public global::System.AllOf? Type54 { get; set; } + public global::System.Collections.Generic.IList? Type54 { get; set; } /// /// /// - public global::System.AnyOf, string>? Type55 { get; set; } + public global::DeepInfra.GPUAvailabilityInfo? Type55 { get; set; } /// /// /// - public global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? Type56 { get; set; } + public global::DeepInfra.DeployGPUs? Type56 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type57 { get; set; } + public global::DeepInfra.DeployInstances? Type57 { get; set; } /// /// /// - public global::System.AllOf? Type58 { get; set; } + public global::DeepInfra.DeployLLMConfig? Type58 { get; set; } /// /// /// - public global::System.AllOf? Type59 { get; set; } + public global::System.AllOf? Type59 { get; set; } /// /// /// - public global::DeepInfra.ResponseFormatType? Type60 { get; set; } + public global::System.AllOf? Type60 { get; set; } /// /// /// - public global::DeepInfra.SchemaVariant? Type61 { get; set; } + public global::DeepInfra.HFWeights? Type61 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type62 { get; set; } + public global::DeepInfra.DeployLLMIn? Type62 { get; set; } /// /// /// - public global::DeepInfra.SchemaVariantKey? Type63 { get; set; } + public global::DeepInfra.ScaleSettings? Type63 { get; set; } /// /// /// - public global::DeepInfra.HTTPValidationError? Type64 { get; set; } + public global::DeepInfra.DeployLLMUpdateIn? Type64 { get; set; } /// /// /// - public global::DeepInfra.Me? Type65 { get; set; } + public global::DeepInfra.DeployModelIn? Type65 { get; set; } /// /// /// - public global::DeepInfra.MeIn? Type66 { get; set; } + public global::System.AllOf? Type66 { get; set; } /// /// /// - public global::DeepInfra.DeepError? Type67 { get; set; } + public global::DeepInfra.ModelProvider? Type67 { get; set; } /// /// /// - public global::DeepInfra.EmailsOut? Type68 { get; set; } + public global::DeepInfra.DeployResult? Type68 { get; set; } /// /// /// - public global::DeepInfra.RateLimitOut? Type69 { get; set; } + public global::DeepInfra.DeployStatusOut? Type69 { get; set; } /// /// /// - public global::DeepInfra.RateLimitRequestIn? Type70 { get; set; } + public global::DeepInfra.DeployType? Type70 { get; set; } /// /// /// - public global::DeepInfra.DeployModelIn? Type71 { get; set; } + public global::DeepInfra.DeploymentLogEntry? Type71 { get; set; } /// /// /// - public global::DeepInfra.DeployResult? Type72 { get; set; } + public global::DeepInfra.DeploymentLogQueryOut? Type72 { get; set; } /// /// /// - public global::DeepInfra.HFModel? Type73 { get; set; } + public global::DeepInfra.DeploymentLogQueryOutEntries? Type73 { get; set; } /// /// /// - public global::DeepInfra.DeployGPUAvailability? Type74 { get; set; } + public global::DeepInfra.DeploymentOut? Type74 { get; set; } /// /// /// - public global::DeepInfra.DeployLLMIn? Type75 { get; set; } + public global::System.AllOf? Type75 { get; set; } /// /// /// - public global::DeepInfra.DeploymentOut? Type76 { get; set; } + public global::System.DateTime? Type76 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type77 { get; set; } + public global::System.AllOf? Type77 { get; set; } /// /// /// - public global::DeepInfra.DeployLLMUpdateIn? Type78 { get; set; } + public global::System.AllOf? Type78 { get; set; } /// /// /// - public global::DeepInfra.DeployStatusOut? Type79 { get; set; } + public global::System.AllOf? Type79 { get; set; } /// /// /// - public global::DeepInfra.DeployDelete? Type80 { get; set; } + public global::DeepInfra.DeploymentStatsOut? Type80 { get; set; } /// /// /// - public global::DeepInfra.DeploymentStatsOut? Type81 { get; set; } + public global::DeepInfra.DetailedDeploymentStatsOut? Type81 { get; set; } /// /// /// - public global::DeepInfra.DetailedDeploymentStatsOut? Type82 { get; set; } + public global::System.AllOf? Type82 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type83 { get; set; } + public global::DeepInfra.LLMDeploymentStatsOut? Type83 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type84 { get; set; } + public global::System.AllOf? Type84 { get; set; } /// /// /// - public global::DeepInfra.ModelPublicityIn? Type85 { get; set; } + public global::DeepInfra.EmbeddingsDeploymentStatsOut? Type85 { get; set; } /// /// /// - public global::DeepInfra.ModelMetaIn? Type86 { get; set; } + public global::System.AllOf? Type86 { get; set; } /// /// /// - public global::DeepInfra.ModelInfoOut? Type87 { get; set; } + public global::DeepInfra.TimeDeploymentStatsOut? Type87 { get; set; } /// /// /// - public global::DeepInfra.SchemaOut? Type88 { get; set; } + public global::DeepInfra.ElevenLabsTextToSpeechIn? Type88 { get; set; } /// /// /// - public global::DeepInfra.OpenAICompletionsIn? Type89 { get; set; } + public global::System.AllOf? Type89 { get; set; } /// /// /// - public global::DeepInfra.OpenAIChatCompletionsIn? Type90 { get; set; } + public global::DeepInfra.TtsModel? Type90 { get; set; } /// /// /// - public global::DeepInfra.OpenAIEmbeddingsIn? Type91 { get; set; } + public global::System.AllOf? Type91 { get; set; } /// /// /// - public global::DeepInfra.OpenAIModelsOut? Type92 { get; set; } + public global::DeepInfra.TtsResponseFormat? Type92 { get; set; } /// /// /// - public global::DeepInfra.FeedbackIn? Type93 { get; set; } + public global::DeepInfra.EmailsOut? Type93 { get; set; } /// /// /// - public global::DeepInfra.OpenAITextToSpeechIn? Type94 { get; set; } + public global::System.Collections.Generic.IList? Type94 { get; set; } /// /// /// - public global::DeepInfra.LogQueryOut? Type95 { get; set; } + public global::DeepInfra.FeedbackIn? Type95 { get; set; } /// /// /// - public global::DeepInfra.DeploymentLogQueryOut? Type96 { get; set; } + public global::DeepInfra.GetVoicesOut? Type96 { get; set; } /// /// /// - public global::DeepInfra.GetVoicesOut? Type97 { get; set; } + public global::System.Collections.Generic.IList? Type97 { get; set; } /// /// /// - public global::DeepInfra.Voice? Type98 { get; set; } + public global::DeepInfra.Voice2? Type98 { get; set; } /// /// /// - public global::DeepInfra.UpdateVoiceIn? Type99 { get; set; } + public global::DeepInfra.HFModel? Type99 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type100 { get; set; } + public global::DeepInfra.HFTasksE? Type100 { get; set; } /// /// /// - public global::DeepInfra.ApiTokenIn? Type101 { get; set; } + public global::DeepInfra.LogEntry? Type101 { get; set; } /// /// /// - public global::DeepInfra.ApiToken? Type102 { get; set; } + public global::DeepInfra.LogQueryOut? Type102 { get; set; } /// /// /// - public global::DeepInfra.Checklist? Type103 { get; set; } + public global::System.Collections.Generic.IList>? Type103 { get; set; } /// /// /// - public global::DeepInfra.ConfigOut? Type104 { get; set; } + public global::System.Collections.Generic.IList? Type104 { get; set; } /// /// /// - public global::DeepInfra.ConfigIn? Type105 { get; set; } + public global::DeepInfra.LogQueryOutEntrieItem? Type105 { get; set; } /// /// /// - public global::DeepInfra.BillingPortalOut? Type106 { get; set; } + public global::DeepInfra.Me? Type106 { get; set; } /// /// /// - public global::DeepInfra.UsageOut? Type107 { get; set; } + public global::DeepInfra.MeIn? Type107 { get; set; } /// /// /// - public global::DeepInfra.DeepStartApplicationIn? Type108 { get; set; } + public global::DeepInfra.ModelDocBlock? Type108 { get; set; } /// /// /// - public global::DeepInfra.DeepStartApplicationOut? Type109 { get; set; } + public global::DeepInfra.ModelDocBlockKey? Type109 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelFieldInfo? Type110 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type111 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelFieldInfoAllowedItem? Type112 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelFieldInfoDefault? Type113 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type114 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelFieldInfoExample? Type115 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelInfoOut? Type116 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelInfoOutInSchema? Type117 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelInfoOutOutSchema? Type118 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type119 { get; set; } + /// + /// + /// + public global::System.AnyOf? Type120 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelPricingTime? Type121 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelPricingUptime? Type122 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelPricingTokens? Type123 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelPricingInputLength? Type124 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelPricingInputTokens? Type125 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelPricingInputCharacterLength? Type126 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type127 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type128 { get; set; } + /// + /// + /// + public global::DeepInfra.SchemaVariant? Type129 { get; set; } + /// + /// + /// + public global::DeepInfra.SchemaVariantKey? Type130 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelInfoOutMeta? Type131 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelMetaIn? Type132 { get; set; } + /// + /// + /// + public global::System.AllOf? Type133 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelOut? Type134 { get; set; } + /// + /// + /// + public global::System.AnyOf? Type135 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelPublicityIn? Type136 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelVersionOut? Type137 { get; set; } + /// + /// + /// + public global::DeepInfra.OpenAIChatCompletionsIn? Type138 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList>? Type139 { get; set; } + /// + /// + /// + public global::System.AnyOf? Type140 { get; set; } + /// + /// + /// + public global::System.AnyOf?>? Type141 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type142 { get; set; } + /// + /// + /// + public global::System.AllOf? Type143 { get; set; } + /// + /// + /// + public global::DeepInfra.ResponseFormat4? Type144 { get; set; } + /// + /// + /// + public global::DeepInfra.ResponseFormatType? Type145 { get; set; } + /// + /// + /// + public global::DeepInfra.OpenAICompletionsIn? Type146 { get; set; } + /// + /// + /// + public global::DeepInfra.OpenAIEmbeddingsIn? Type147 { get; set; } + /// + /// + /// + public global::System.AnyOf?, string?>? Type148 { get; set; } + /// + /// + /// + public global::DeepInfra.OpenAIEmbeddingsInEncodingFormat? Type149 { get; set; } + /// + /// + /// + public global::DeepInfra.OpenAIModelOut? Type150 { get; set; } + /// + /// + /// + public object? Type151 { get; set; } + /// + /// + /// + public global::DeepInfra.OpenAIModelsOut? Type152 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type153 { get; set; } + /// + /// + /// + public global::DeepInfra.OpenAITextToSpeechIn? Type154 { get; set; } + /// + /// + /// + public global::System.AllOf? Type155 { get; set; } + /// + /// + /// + public global::DeepInfra.TtsVoice? Type156 { get; set; } + /// + /// + /// + public global::DeepInfra.RateLimitOut? Type157 { get; set; } + /// + /// + /// + public global::DeepInfra.RateLimitRequestIn? Type158 { get; set; } + /// + /// + /// + public global::DeepInfra.SchemaFieldOut? Type159 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type160 { get; set; } + /// + /// + /// + public global::DeepInfra.SchemaFieldOutAllowedItem? Type161 { get; set; } + /// + /// + /// + public global::DeepInfra.SchemaFieldOutDefault? Type162 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type163 { get; set; } + /// + /// + /// + public global::DeepInfra.SchemaFieldOutExample? Type164 { get; set; } + /// + /// + /// + public global::DeepInfra.SchemaOut? Type165 { get; set; } + /// + /// + /// + public global::DeepInfra.SchemaOutSchemaIn? Type166 { get; set; } + /// + /// + /// + public global::DeepInfra.SchemaOutSchemaOut1? Type167 { get; set; } + /// + /// + /// + public global::DeepInfra.SchemaOutSchemaStream? Type168 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type169 { get; set; } + /// + /// + /// + public global::DeepInfra.UpdateVoiceIn? Type170 { get; set; } + /// + /// + /// + public global::DeepInfra.CliVersionCliVersionGetResponse? Type171 { get; set; } + /// + /// + /// + public global::DeepInfra.AccountUpdateDetailsV1MePatchResponse? Type172 { get; set; } + /// + /// + /// + public global::DeepInfra.RequestRateLimitIncreaseV1MeRateLimitRequestPostResponse? Type173 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type174 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type175 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type176 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelPublicityModelsModelNamePublicityPostResponse? Type177 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelMetaUpdateModelsModelNameMetaPostResponse? Type178 { get; set; } + /// + /// + /// + public global::DeepInfra.ModelDeleteModelsModelNameDeleteResponse? Type179 { get; set; } + /// + /// + /// + public global::DeepInfra.InferenceDeployV1InferenceDeployDeployIdPostResponse? Type180 { get; set; } + /// + /// + /// + public global::DeepInfra.InferenceModelV1InferenceModelNamePostResponse? Type181 { get; set; } + /// + /// + /// + public global::DeepInfra.OpenaiCompletionsV1OpenaiCompletionsPostResponse? Type182 { get; set; } + /// + /// + /// + public global::DeepInfra.OpenaiChatCompletionsV1OpenaiChatCompletionsPostResponse? Type183 { get; set; } + /// + /// + /// + public global::DeepInfra.OpenaiEmbeddingsV1OpenaiEmbeddingsPostResponse? Type184 { get; set; } + /// + /// + /// + public global::DeepInfra.SubmitFeedbackV1FeedbackPostResponse? Type185 { get; set; } + /// + /// + /// + public global::DeepInfra.OpenaiAudioSpeechV1OpenaiAudioSpeechPostResponse? Type186 { get; set; } + /// + /// + /// + public global::DeepInfra.TextToSpeechV1ElevenlabsV1TextToSpeechVoiceIdPostResponse? Type187 { get; set; } + /// + /// + /// + public global::DeepInfra.DeleteVoiceV1ElevenlabsV1VoicesVoiceIdDeleteResponse? Type188 { get; set; } + /// + /// + /// + public global::DeepInfra.GithubLoginGithubLoginGetResponse? Type189 { get; set; } + /// + /// + /// + public global::DeepInfra.GithubCliLoginGithubCliLoginGetResponse? Type190 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type191 { get; set; } + /// + /// + /// + public global::DeepInfra.DeleteApiTokenV1ApiTokensApiTokenDeleteResponse? Type192 { get; set; } } } \ No newline at end of file diff --git a/src/libs/DeepInfra/openapi.yaml b/src/libs/DeepInfra/openapi.yaml index 0242102..089b487 100644 --- a/src/libs/DeepInfra/openapi.yaml +++ b/src/libs/DeepInfra/openapi.yaml @@ -1309,11 +1309,11 @@ paths: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [ ] - /v1/voices: + /v1/elevenlabs/v1/voices: get: summary: Get Voices description: Get available voices for a given user - operationId: get_voices_v1_voices_get + operationId: get_voices_v1_elevenlabs_v1_voices_get responses: '200': description: Successful Response @@ -1329,11 +1329,47 @@ paths: $ref: '#/components/schemas/DeepError' security: - HTTPBearer: [ ] - '/v1/voices/{voice_id}': + '/v1/elevenlabs/v1/text-to-speech/{voice_id}': + post: + summary: Text To Speech + operationId: text_to_speech_v1_elevenlabs_v1_text_to_speech__voice_id__post + parameters: + - name: voice_id + in: path + required: true + schema: + title: Voice Id + type: string + - name: x-deepinfra-source + in: header + schema: + title: X-Deepinfra-Source + type: string + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ElevenLabsTextToSpeechIn' + required: true + responses: + '200': + description: Successful Response + content: + application/json: + schema: { } + '422': + description: Validation Error + content: + application/json: + schema: + $ref: '#/components/schemas/HTTPValidationError' + security: + - HTTPBearer: [ ] + '/v1/elevenlabs/v1/voices/{voice_id}': get: summary: Get Voice description: Get a voice by its id - operationId: get_voice_v1_voices__voice_id__get + operationId: get_voice_v1_elevenlabs_v1_voices__voice_id__get parameters: - name: voice_id in: path @@ -1364,7 +1400,7 @@ paths: - HTTPBearer: [ ] delete: summary: Delete Voice - operationId: delete_voice_v1_voices__voice_id__delete + operationId: delete_voice_v1_elevenlabs_v1_voices__voice_id__delete parameters: - name: voice_id in: path @@ -1398,11 +1434,11 @@ paths: $ref: '#/components/schemas/HTTPValidationError' security: - HTTPBearer: [ ] - /v1/voices/add: + /v1/elevenlabs/v1/voices/add: post: summary: Create Voice description: Create a new voice - operationId: create_voice_v1_voices_add_post + operationId: create_voice_v1_elevenlabs_v1_voices_add_post responses: '200': description: Successful Response @@ -1418,10 +1454,10 @@ paths: $ref: '#/components/schemas/DeepError' security: - HTTPBearer: [ ] - '/v1/voices/{voice_id}/edit': + '/v1/elevenlabs/v1/voices/{voice_id}/edit': post: summary: Update Voice - operationId: update_voice_v1_voices__voice_id__edit_post + operationId: update_voice_v1_elevenlabs_v1_voices__voice_id__edit_post parameters: - name: voice_id in: path @@ -2631,6 +2667,31 @@ components: allOf: - $ref: '#/components/schemas/TimeDeploymentStatsOut' description: Time based Deployment Stats + ElevenLabsTextToSpeechIn: + title: ElevenLabsTextToSpeechIn + required: + - text + type: object + properties: + text: + title: Text + type: string + description: Text to convert to speech + example: "I'm beginnin' to feel like a Rap God, Rap God\nAll my people from the front to the back nod, back nod\nNow, who thinks their arms are long enough to slap box, slap box?\nThey said I rap like a robot, so call me Rap-bot" + model_id: + allOf: + - $ref: '#/components/schemas/TtsModel' + description: Model ID to use for the conversion + default: deepinfra/tts + output_format: + allOf: + - $ref: '#/components/schemas/TtsResponseFormat' + description: Output format for the speech + default: wav + language_code: + title: Language Code + type: string + description: 'ISO 639-1, 2 letter language code' EmailsOut: title: EmailsOut required: @@ -3659,13 +3720,6 @@ components: - input type: object properties: - webhook: - title: Webhook - maxLength: 2083 - minLength: 1 - type: string - description: 'The webhook to call when inference is done, by default you will get the output in the response of your inference request' - format: uri model: title: Model type: string @@ -3674,8 +3728,8 @@ components: input: title: Input type: string - description: text to convert to speech - example: 'Hello, how are you?' + description: Text to convert to speech + example: "I'm beginnin' to feel like a Rap God, Rap God\nAll my people from the front to the back nod, back nod\nNow, who thinks their arms are long enough to slap box, slap box?\nThey said I rap like a robot, so call me Rap-bot" voice: allOf: - $ref: '#/components/schemas/TtsVoice' @@ -3866,6 +3920,12 @@ components: title: Errors type: integer description: number of errors + TtsModel: + title: TtsModel + enum: + - deepinfra/tts + type: string + description: An enumeration. TtsResponseFormat: title: TtsResponseFormat enum: