Skip to content

Commit

Permalink
Merge pull request #54 from tryAGI/bot/update-openapi_202409200319
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Sep 20, 2024
2 parents f0e66f7 + 108aa7c commit cbea594
Show file tree
Hide file tree
Showing 4 changed files with 166 additions and 166 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ partial void PrepareUpdateVoiceV1VoicesVoiceIdEditPostArguments(
global::System.Net.Http.HttpClient httpClient,
ref string voiceId,
ref string? xiApiKey,
global::DeepInfra.UpdateVoiceIn request);
global::DeepInfra.BodyUpdateVoiceV1VoicesVoiceIdEditPost request);
partial void PrepareUpdateVoiceV1VoicesVoiceIdEditPostRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string voiceId,
string? xiApiKey,
global::DeepInfra.UpdateVoiceIn request);
global::DeepInfra.BodyUpdateVoiceV1VoicesVoiceIdEditPost request);
partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -35,7 +35,7 @@ partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent(
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::DeepInfra.Voice2> UpdateVoiceV1VoicesVoiceIdEditPostAsync(
string voiceId,
global::DeepInfra.UpdateVoiceIn request,
global::DeepInfra.BodyUpdateVoiceV1VoicesVoiceIdEditPost request,
string? xiApiKey = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand All @@ -52,11 +52,11 @@ partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent(
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));
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::DeepInfra.SourceGenerationContext.Default.UpdateVoiceIn);
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::DeepInfra.SourceGenerationContext.Default.BodyUpdateVoiceV1VoicesVoiceIdEditPost);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
mediaType: "application/json");
mediaType: "application/x-www-form-urlencoded");
httpRequest.Content = __httpRequestContent;

PrepareRequest(
Expand Down Expand Up @@ -122,7 +122,7 @@ partial void ProcessUpdateVoiceV1VoicesVoiceIdEditPostResponseContent(
string? xiApiKey = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::DeepInfra.UpdateVoiceIn
var request = new global::DeepInfra.BodyUpdateVoiceV1VoicesVoiceIdEditPost
{
Name = name,
Description = description,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace DeepInfra
/// <summary>
///
/// </summary>
public sealed partial class UpdateVoiceIn
public sealed partial class BodyUpdateVoiceV1VoicesVoiceIdEditPost
{
/// <summary>
///
Expand Down
Loading

0 comments on commit cbea594

Please sign in to comment.