From afa9b53bf8e8c770da7f987a06e5fefe5e758eff Mon Sep 17 00:00:00 2001 From: HavenDV Date: Sun, 3 Nov 2024 01:26:35 +0400 Subject: [PATCH] fix: Removed default headers for Multipart form data. --- src/libs/AutoSDK/Sources/Sources.Methods.cs | 8 +------- ....DatasetsClient.V1UploadDataset.g.verified.cs | 8 +------- ...anagementClient.V1LibraryUpload.g.verified.cs | 8 +------- ....DatasetsClient.V1UploadDataset.g.verified.cs | 8 +------- ...anagementClient.V1LibraryUpload.g.verified.cs | 8 +------- ...#G.DatasetsClient.CreateDataset.g.verified.cs | 16 ++-------------- ...#G.DatasetsClient.CreateDataset.g.verified.cs | 16 ++-------------- ...DatasetsClient.UploadCsvDataset.g.verified.cs | 8 +------- ...G.ExamplesClient.UploadExamples.g.verified.cs | 8 +------- ...DatasetsClient.UploadCsvDataset.g.verified.cs | 8 +------- ...G.ExamplesClient.UploadExamples.g.verified.cs | 8 +------- ...dClient.CreateGcpServiceAccount.g.verified.cs | 8 +------- .../_#G.FilesClient.Create.g.verified.cs | 8 +------- .../_#G.PipelinesClient.PatchImage.g.verified.cs | 8 +------- ...dClient.CreateGcpServiceAccount.g.verified.cs | 8 +------- .../_#G.FilesClient.Create.g.verified.cs | 8 +------- .../_#G.PipelinesClient.PatchImage.g.verified.cs | 8 +------- ...AudioClient.CreateTranscription.g.verified.cs | 8 +------- ...G.AudioClient.CreateTranslation.g.verified.cs | 8 +------- .../_#G.FilesClient.CreateFile.g.verified.cs | 8 +------- ...#G.ImagesClient.CreateImageEdit.g.verified.cs | 16 ++-------------- ...agesClient.CreateImageVariation.g.verified.cs | 8 +------- ..._#G.UploadsClient.AddUploadPart.g.verified.cs | 8 +------- ...AudioClient.CreateTranscription.g.verified.cs | 8 +------- ...G.AudioClient.CreateTranslation.g.verified.cs | 8 +------- .../_#G.FilesClient.CreateFile.g.verified.cs | 8 +------- ...#G.ImagesClient.CreateImageEdit.g.verified.cs | 16 ++-------------- ...agesClient.CreateImageVariation.g.verified.cs | 8 +------- ..._#G.UploadsClient.AddUploadPart.g.verified.cs | 8 +------- ...tionClient.CreateAudioIsolation.g.verified.cs | 8 +------- ...ient.CreateAudioIsolationStream.g.verified.cs | 8 +------- ...oNativeClient.CreateAudioNative.g.verified.cs | 8 +------- ..._#G.DubbingClient.CreateDubbing.g.verified.cs | 8 +------- ...rojectsClient.CreateProjectsAdd.g.verified.cs | 8 +------- ...nciationDictionariesAddFromFile.g.verified.cs | 8 +------- ...t.CreateSpeechToSpeechByVoiceId.g.verified.cs | 8 +------- ...teSpeechToSpeechByVoiceIdStream.g.verified.cs | 8 +------- ...oicesClient.CreateSimilarVoices.g.verified.cs | 8 +------- ...tionClient.CreateAudioIsolation.g.verified.cs | 8 +------- ...ient.CreateAudioIsolationStream.g.verified.cs | 8 +------- ...oNativeClient.CreateAudioNative.g.verified.cs | 8 +------- ..._#G.DubbingClient.CreateDubbing.g.verified.cs | 8 +------- ...rojectsClient.CreateProjectsAdd.g.verified.cs | 8 +------- ...nciationDictionariesAddFromFile.g.verified.cs | 8 +------- ...t.CreateSpeechToSpeechByVoiceId.g.verified.cs | 8 +------- ...teSpeechToSpeechByVoiceIdStream.g.verified.cs | 8 +------- ...oicesClient.CreateSimilarVoices.g.verified.cs | 8 +------- ...G.GenerateClient.PostRemixImage.g.verified.cs | 8 +------- ...GenerateClient.PostUpscaleImage.g.verified.cs | 8 +------- .../_#G.VisionClient.PostDescribe.g.verified.cs | 8 +------- ...G.GenerateClient.PostRemixImage.g.verified.cs | 8 +------- ...GenerateClient.PostUpscaleImage.g.verified.cs | 8 +------- .../_#G.VisionClient.PostDescribe.g.verified.cs | 8 +------- ...lkEmbeddingV1BulkEmbeddingsPost.g.verified.cs | 8 +------- ...lkEmbeddingV1BulkEmbeddingsPost.g.verified.cs | 8 +------- ...Client.FilesApiRoutesUploadFile.g.verified.cs | 8 +------- ...Client.FilesApiRoutesUploadFile.g.verified.cs | 8 +------- .../_#G.ImageClient.ClarityUpscale.g.verified.cs | 8 +------- ...G.ImageClient.GenerativeUpscale.g.verified.cs | 8 +------- ...#G.ImageClient.RemoveBackground.g.verified.cs | 8 +------- .../_#G.ImageClient.VectorizeImage.g.verified.cs | 8 +------- .../_#G.ImageClient.ClarityUpscale.g.verified.cs | 8 +------- ...G.ImageClient.GenerativeUpscale.g.verified.cs | 8 +------- ...#G.ImageClient.RemoveBackground.g.verified.cs | 8 +------- .../_#G.ImageClient.VectorizeImage.g.verified.cs | 8 +------- .../_#G.UploadClient.UploadFile.g.verified.cs | 8 +------- .../_#G.UploadClient.UploadFile.g.verified.cs | 8 +------- 67 files changed, 71 insertions(+), 497 deletions(-) diff --git a/src/libs/AutoSDK/Sources/Sources.Methods.cs b/src/libs/AutoSDK/Sources/Sources.Methods.cs index abe5987e4f..06173f6be2 100644 --- a/src/libs/AutoSDK/Sources/Sources.Methods.cs +++ b/src/libs/AutoSDK/Sources/Sources.Methods.cs @@ -389,13 +389,7 @@ public static string GenerateRequestData( { var add = x.Type.IsBinary ? @$" __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.{x.Name} ?? global::System.Array.Empty()) - {{ - Headers = - {{ - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse(""{endPoint.RequestMediaType}""), - }}, - }}, + content: new global::System.Net.Http.ByteArrayContent(request.{x.Name} ?? global::System.Array.Empty()), name: ""{x.Id}"", fileName: request.{x.Name + "name"} ?? string.Empty); " : @$" diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.DatasetsClient.V1UploadDataset.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.DatasetsClient.V1UploadDataset.g.verified.cs index 1042799be1..446d195596 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.DatasetsClient.V1UploadDataset.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.DatasetsClient.V1UploadDataset.g.verified.cs @@ -65,13 +65,7 @@ partial void ProcessV1UploadDatasetResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.DatasetFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.DatasetFile ?? global::System.Array.Empty()), name: "dataset_file", fileName: request.DatasetFilename ?? string.Empty); __httpRequestContent.Add( diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.LibraryManagementClient.V1LibraryUpload.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.LibraryManagementClient.V1LibraryUpload.g.verified.cs index 8ae046e031..a53ca09bec 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.LibraryManagementClient.V1LibraryUpload.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/NewtonsoftJson/_#G.LibraryManagementClient.V1LibraryUpload.g.verified.cs @@ -71,13 +71,7 @@ partial void ProcessV1LibraryUploadResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); if (request.Path != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.DatasetsClient.V1UploadDataset.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.DatasetsClient.V1UploadDataset.g.verified.cs index e581e17aac..c267100932 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.DatasetsClient.V1UploadDataset.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.DatasetsClient.V1UploadDataset.g.verified.cs @@ -65,13 +65,7 @@ partial void ProcessV1UploadDatasetResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.DatasetFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.DatasetFile ?? global::System.Array.Empty()), name: "dataset_file", fileName: request.DatasetFilename ?? string.Empty); __httpRequestContent.Add( diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.LibraryManagementClient.V1LibraryUpload.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.LibraryManagementClient.V1LibraryUpload.g.verified.cs index b971155f6a..4010821cf5 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.LibraryManagementClient.V1LibraryUpload.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Ai21/SystemTextJson/_#G.LibraryManagementClient.V1LibraryUpload.g.verified.cs @@ -71,13 +71,7 @@ partial void ProcessV1LibraryUploadResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); if (request.Path != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/NewtonsoftJson/_#G.DatasetsClient.CreateDataset.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/NewtonsoftJson/_#G.DatasetsClient.CreateDataset.g.verified.cs index aa8205425c..1a56565f65 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/NewtonsoftJson/_#G.DatasetsClient.CreateDataset.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/NewtonsoftJson/_#G.DatasetsClient.CreateDataset.g.verified.cs @@ -189,25 +189,13 @@ partial void ProcessCreateDatasetResponseContent( name: "X-Client-Name"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Data ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Data ?? global::System.Array.Empty()), name: "data", fileName: request.Dataname ?? string.Empty); if (request.EvalData != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.EvalData ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.EvalData ?? global::System.Array.Empty()), name: "eval_data", fileName: request.EvalDataname ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.DatasetsClient.CreateDataset.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.DatasetsClient.CreateDataset.g.verified.cs index 9ea96781db..31274563ec 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.DatasetsClient.CreateDataset.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Cohere/SystemTextJson/_#G.DatasetsClient.CreateDataset.g.verified.cs @@ -177,25 +177,13 @@ partial void ProcessCreateDatasetResponseContent( name: "X-Client-Name"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Data ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Data ?? global::System.Array.Empty()), name: "data", fileName: request.Dataname ?? string.Empty); if (request.EvalData != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.EvalData ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.EvalData ?? global::System.Array.Empty()), name: "eval_data", fileName: request.EvalDataname ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.DatasetsClient.UploadCsvDataset.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.DatasetsClient.UploadCsvDataset.g.verified.cs index 0de4268a6d..e56c8864a6 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.DatasetsClient.UploadCsvDataset.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.DatasetsClient.UploadCsvDataset.g.verified.cs @@ -66,13 +66,7 @@ partial void ProcessUploadCsvDatasetResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); __httpRequestContent.Add( diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.ExamplesClient.UploadExamples.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.ExamplesClient.UploadExamples.g.verified.cs index 50bdaade43..c36df4f83c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.ExamplesClient.UploadExamples.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/NewtonsoftJson/_#G.ExamplesClient.UploadExamples.g.verified.cs @@ -74,13 +74,7 @@ partial void ProcessUploadExamplesResponseContent( content: new global::System.Net.Http.StringContent($"{datasetId}"), name: "dataset_id"); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); __httpRequestContent.Add( diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.DatasetsClient.UploadCsvDataset.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.DatasetsClient.UploadCsvDataset.g.verified.cs index 482824bbc2..8e419621df 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.DatasetsClient.UploadCsvDataset.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.DatasetsClient.UploadCsvDataset.g.verified.cs @@ -66,13 +66,7 @@ partial void ProcessUploadCsvDatasetResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); __httpRequestContent.Add( diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.ExamplesClient.UploadExamples.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.ExamplesClient.UploadExamples.g.verified.cs index 6c4487a0d8..aa57984f45 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.ExamplesClient.UploadExamples.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/LangSmith/SystemTextJson/_#G.ExamplesClient.UploadExamples.g.verified.cs @@ -74,13 +74,7 @@ partial void ProcessUploadExamplesResponseContent( content: new global::System.Net.Http.StringContent($"{datasetId}"), name: "dataset_id"); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); __httpRequestContent.Add( diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/NewtonsoftJson/_#G.CloudClient.CreateGcpServiceAccount.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/NewtonsoftJson/_#G.CloudClient.CreateGcpServiceAccount.g.verified.cs index 8c194fdb42..d8ca34ae61 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/NewtonsoftJson/_#G.CloudClient.CreateGcpServiceAccount.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/NewtonsoftJson/_#G.CloudClient.CreateGcpServiceAccount.g.verified.cs @@ -71,13 +71,7 @@ partial void ProcessCreateGcpServiceAccountResponseContent( name: "credential_id"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.ServiceAccountFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.ServiceAccountFile ?? global::System.Array.Empty()), name: "service_account_file", fileName: request.ServiceAccountFilename ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/NewtonsoftJson/_#G.FilesClient.Create.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/NewtonsoftJson/_#G.FilesClient.Create.g.verified.cs index 6edd57e392..b82f96e2c6 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/NewtonsoftJson/_#G.FilesClient.Create.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/NewtonsoftJson/_#G.FilesClient.Create.g.verified.cs @@ -66,13 +66,7 @@ partial void ProcessCreateResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Pfile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Pfile ?? global::System.Array.Empty()), name: "pfile", fileName: request.Pfilename ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/NewtonsoftJson/_#G.PipelinesClient.PatchImage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/NewtonsoftJson/_#G.PipelinesClient.PatchImage.g.verified.cs index 2bbb35e5cc..b22d16eabb 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/NewtonsoftJson/_#G.PipelinesClient.PatchImage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/NewtonsoftJson/_#G.PipelinesClient.PatchImage.g.verified.cs @@ -101,13 +101,7 @@ partial void ProcessPatchImageResponseContent( name: "pipeline_id_or_pointer"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()), name: "image_file", fileName: request.ImageFilename ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.CloudClient.CreateGcpServiceAccount.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.CloudClient.CreateGcpServiceAccount.g.verified.cs index 189aab7fa2..fdf935734d 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.CloudClient.CreateGcpServiceAccount.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.CloudClient.CreateGcpServiceAccount.g.verified.cs @@ -71,13 +71,7 @@ partial void ProcessCreateGcpServiceAccountResponseContent( name: "credential_id"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.ServiceAccountFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.ServiceAccountFile ?? global::System.Array.Empty()), name: "service_account_file", fileName: request.ServiceAccountFilename ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.FilesClient.Create.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.FilesClient.Create.g.verified.cs index bb5d51c220..c5341a62b2 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.FilesClient.Create.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.FilesClient.Create.g.verified.cs @@ -66,13 +66,7 @@ partial void ProcessCreateResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Pfile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Pfile ?? global::System.Array.Empty()), name: "pfile", fileName: request.Pfilename ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.PipelinesClient.PatchImage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.PipelinesClient.PatchImage.g.verified.cs index 8668278ecb..78f71371eb 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.PipelinesClient.PatchImage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/Mystic/SystemTextJson/_#G.PipelinesClient.PatchImage.g.verified.cs @@ -101,13 +101,7 @@ partial void ProcessPatchImageResponseContent( name: "pipeline_id_or_pointer"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()), name: "image_file", fileName: request.ImageFilename ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.AudioClient.CreateTranscription.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.AudioClient.CreateTranscription.g.verified.cs index 2da9caa1fa..df2aa06005 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.AudioClient.CreateTranscription.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.AudioClient.CreateTranscription.g.verified.cs @@ -65,13 +65,7 @@ partial void ProcessCreateTranscriptionResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); __httpRequestContent.Add( diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.AudioClient.CreateTranslation.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.AudioClient.CreateTranslation.g.verified.cs index d173e0fffb..50b764c755 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.AudioClient.CreateTranslation.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.AudioClient.CreateTranslation.g.verified.cs @@ -65,13 +65,7 @@ partial void ProcessCreateTranslationResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); __httpRequestContent.Add( diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.FilesClient.CreateFile.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.FilesClient.CreateFile.g.verified.cs index f13e382479..cc93b89178 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.FilesClient.CreateFile.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.FilesClient.CreateFile.g.verified.cs @@ -69,13 +69,7 @@ partial void ProcessCreateFileResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); __httpRequestContent.Add( diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.ImagesClient.CreateImageEdit.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.ImagesClient.CreateImageEdit.g.verified.cs index b6e5644043..4330d03c57 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.ImagesClient.CreateImageEdit.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.ImagesClient.CreateImageEdit.g.verified.cs @@ -65,13 +65,7 @@ partial void ProcessCreateImageEditResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()), name: "image", fileName: request.Imagename ?? string.Empty); __httpRequestContent.Add( @@ -80,13 +74,7 @@ partial void ProcessCreateImageEditResponseContent( if (request.Mask != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Mask ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Mask ?? global::System.Array.Empty()), name: "mask", fileName: request.Maskname ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.ImagesClient.CreateImageVariation.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.ImagesClient.CreateImageVariation.g.verified.cs index f7a1d0b561..63d6db2f9e 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.ImagesClient.CreateImageVariation.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.ImagesClient.CreateImageVariation.g.verified.cs @@ -65,13 +65,7 @@ partial void ProcessCreateImageVariationResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()), name: "image", fileName: request.Imagename ?? string.Empty); if (request.Model != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.UploadsClient.AddUploadPart.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.UploadsClient.AddUploadPart.g.verified.cs index 4deb9c1ac5..1615a51d5b 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.UploadsClient.AddUploadPart.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/NewtonsoftJson/_#G.UploadsClient.AddUploadPart.g.verified.cs @@ -77,13 +77,7 @@ partial void ProcessAddUploadPartResponseContent( content: new global::System.Net.Http.StringContent($"{uploadId}"), name: "upload_id"); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Data ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Data ?? global::System.Array.Empty()), name: "data", fileName: request.Dataname ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.AudioClient.CreateTranscription.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.AudioClient.CreateTranscription.g.verified.cs index d16ae4c64b..368b9d116b 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.AudioClient.CreateTranscription.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.AudioClient.CreateTranscription.g.verified.cs @@ -65,13 +65,7 @@ partial void ProcessCreateTranscriptionResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); __httpRequestContent.Add( diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.AudioClient.CreateTranslation.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.AudioClient.CreateTranslation.g.verified.cs index 029292a275..dbbf067a50 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.AudioClient.CreateTranslation.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.AudioClient.CreateTranslation.g.verified.cs @@ -65,13 +65,7 @@ partial void ProcessCreateTranslationResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); __httpRequestContent.Add( diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.FilesClient.CreateFile.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.FilesClient.CreateFile.g.verified.cs index 980260cb52..e997c6aa26 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.FilesClient.CreateFile.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.FilesClient.CreateFile.g.verified.cs @@ -69,13 +69,7 @@ partial void ProcessCreateFileResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); __httpRequestContent.Add( diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.ImagesClient.CreateImageEdit.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.ImagesClient.CreateImageEdit.g.verified.cs index 535d6bb14f..4f8bb3e228 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.ImagesClient.CreateImageEdit.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.ImagesClient.CreateImageEdit.g.verified.cs @@ -65,13 +65,7 @@ partial void ProcessCreateImageEditResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()), name: "image", fileName: request.Imagename ?? string.Empty); __httpRequestContent.Add( @@ -80,13 +74,7 @@ partial void ProcessCreateImageEditResponseContent( if (request.Mask != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Mask ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Mask ?? global::System.Array.Empty()), name: "mask", fileName: request.Maskname ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.ImagesClient.CreateImageVariation.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.ImagesClient.CreateImageVariation.g.verified.cs index ac88641da6..e7ee428bf0 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.ImagesClient.CreateImageVariation.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.ImagesClient.CreateImageVariation.g.verified.cs @@ -65,13 +65,7 @@ partial void ProcessCreateImageVariationResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()), name: "image", fileName: request.Imagename ?? string.Empty); if (request.Model != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.UploadsClient.AddUploadPart.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.UploadsClient.AddUploadPart.g.verified.cs index 0c445cba20..9b71f65be6 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.UploadsClient.AddUploadPart.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/OpenAi/SystemTextJson/_#G.UploadsClient.AddUploadPart.g.verified.cs @@ -77,13 +77,7 @@ partial void ProcessAddUploadPartResponseContent( content: new global::System.Net.Http.StringContent($"{uploadId}"), name: "upload_id"); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Data ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Data ?? global::System.Array.Empty()), name: "data", fileName: request.Dataname ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioIsolationClient.CreateAudioIsolation.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioIsolationClient.CreateAudioIsolation.g.verified.cs index 44a7781f47..6de07441fc 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioIsolationClient.CreateAudioIsolation.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioIsolationClient.CreateAudioIsolation.g.verified.cs @@ -69,13 +69,7 @@ partial void ProcessCreateAudioIsolationResponseContent( name: "xi-api-key"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()), name: "audio", fileName: request.Audioname ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioIsolationClient.CreateAudioIsolationStream.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioIsolationClient.CreateAudioIsolationStream.g.verified.cs index 7cb6a816c5..b52eefb141 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioIsolationClient.CreateAudioIsolationStream.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioIsolationClient.CreateAudioIsolationStream.g.verified.cs @@ -69,13 +69,7 @@ partial void ProcessCreateAudioIsolationStreamResponseContent( name: "xi-api-key"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()), name: "audio", fileName: request.Audioname ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioNativeClient.CreateAudioNative.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioNativeClient.CreateAudioNative.g.verified.cs index 07ad42f574..ca1f237209 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioNativeClient.CreateAudioNative.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.AudioNativeClient.CreateAudioNative.g.verified.cs @@ -128,13 +128,7 @@ partial void ProcessCreateAudioNativeResponseContent( if (request.File != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.DubbingClient.CreateDubbing.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.DubbingClient.CreateDubbing.g.verified.cs index b170ee0ddf..484f82d206 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.DubbingClient.CreateDubbing.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.DubbingClient.CreateDubbing.g.verified.cs @@ -71,13 +71,7 @@ partial void ProcessCreateDubbingResponseContent( if (request.File != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.ProjectsClient.CreateProjectsAdd.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.ProjectsClient.CreateProjectsAdd.g.verified.cs index 3a83f41d83..2f099fded9 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.ProjectsClient.CreateProjectsAdd.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.ProjectsClient.CreateProjectsAdd.g.verified.cs @@ -89,13 +89,7 @@ partial void ProcessCreateProjectsAddResponseContent( if (request.FromDocument != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.FromDocument ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.FromDocument ?? global::System.Array.Empty()), name: "from_document", fileName: request.FromDocumentname ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.PronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.PronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.verified.cs index 9f0765fb10..ce7545cc78 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.PronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.PronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.verified.cs @@ -74,13 +74,7 @@ partial void ProcessCreatePronunciationDictionariesAddFromFileResponseContent( if (request.File != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.verified.cs index 6c3028504c..9573eaea9f 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.verified.cs @@ -142,13 +142,7 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdResponseContent( name: "xi-api-key"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()), name: "audio", fileName: request.Audioname ?? string.Empty); if (request.ModelId != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.verified.cs index ed35b2e530..9f86def495 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.verified.cs @@ -142,13 +142,7 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdStreamResponseContent( name: "xi-api-key"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()), name: "audio", fileName: request.Audioname ?? string.Empty); if (request.ModelId != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.VoicesClient.CreateSimilarVoices.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.VoicesClient.CreateSimilarVoices.g.verified.cs index 5a971e0e75..74f63307cd 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.VoicesClient.CreateSimilarVoices.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/NewtonsoftJson/_#G.VoicesClient.CreateSimilarVoices.g.verified.cs @@ -71,13 +71,7 @@ partial void ProcessCreateSimilarVoicesResponseContent( if (request.AudioFile != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.AudioFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.AudioFile ?? global::System.Array.Empty()), name: "audio_file", fileName: request.AudioFilename ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.AudioIsolationClient.CreateAudioIsolation.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.AudioIsolationClient.CreateAudioIsolation.g.verified.cs index 8f7349612e..6834c42f85 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.AudioIsolationClient.CreateAudioIsolation.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.AudioIsolationClient.CreateAudioIsolation.g.verified.cs @@ -69,13 +69,7 @@ partial void ProcessCreateAudioIsolationResponseContent( name: "xi-api-key"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()), name: "audio", fileName: request.Audioname ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.AudioIsolationClient.CreateAudioIsolationStream.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.AudioIsolationClient.CreateAudioIsolationStream.g.verified.cs index 84b8b71a20..c982e83328 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.AudioIsolationClient.CreateAudioIsolationStream.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.AudioIsolationClient.CreateAudioIsolationStream.g.verified.cs @@ -69,13 +69,7 @@ partial void ProcessCreateAudioIsolationStreamResponseContent( name: "xi-api-key"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()), name: "audio", fileName: request.Audioname ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.AudioNativeClient.CreateAudioNative.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.AudioNativeClient.CreateAudioNative.g.verified.cs index 49b3fddaac..22dc4efe06 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.AudioNativeClient.CreateAudioNative.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.AudioNativeClient.CreateAudioNative.g.verified.cs @@ -128,13 +128,7 @@ partial void ProcessCreateAudioNativeResponseContent( if (request.File != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.DubbingClient.CreateDubbing.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.DubbingClient.CreateDubbing.g.verified.cs index c86c385bc1..c9c88278ce 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.DubbingClient.CreateDubbing.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.DubbingClient.CreateDubbing.g.verified.cs @@ -71,13 +71,7 @@ partial void ProcessCreateDubbingResponseContent( if (request.File != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.ProjectsClient.CreateProjectsAdd.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.ProjectsClient.CreateProjectsAdd.g.verified.cs index 38496d8b51..37d1c222c8 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.ProjectsClient.CreateProjectsAdd.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.ProjectsClient.CreateProjectsAdd.g.verified.cs @@ -89,13 +89,7 @@ partial void ProcessCreateProjectsAddResponseContent( if (request.FromDocument != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.FromDocument ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.FromDocument ?? global::System.Array.Empty()), name: "from_document", fileName: request.FromDocumentname ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.PronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.PronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.verified.cs index 638117fe86..932a05ee2c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.PronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.PronunciationDictionaryClient.CreatePronunciationDictionariesAddFromFile.g.verified.cs @@ -74,13 +74,7 @@ partial void ProcessCreatePronunciationDictionariesAddFromFileResponseContent( if (request.File != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.verified.cs index bc03294273..db95749dfe 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceId.g.verified.cs @@ -142,13 +142,7 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdResponseContent( name: "xi-api-key"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()), name: "audio", fileName: request.Audioname ?? string.Empty); if (request.ModelId != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.verified.cs index 25ed7b9088..160eccc49b 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.SpeechToSpeechClient.CreateSpeechToSpeechByVoiceIdStream.g.verified.cs @@ -142,13 +142,7 @@ partial void ProcessCreateSpeechToSpeechByVoiceIdStreamResponseContent( name: "xi-api-key"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Audio ?? global::System.Array.Empty()), name: "audio", fileName: request.Audioname ?? string.Empty); if (request.ModelId != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.VoicesClient.CreateSimilarVoices.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.VoicesClient.CreateSimilarVoices.g.verified.cs index 245337a1a5..cec06175cc 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.VoicesClient.CreateSimilarVoices.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/elevenlabs/SystemTextJson/_#G.VoicesClient.CreateSimilarVoices.g.verified.cs @@ -71,13 +71,7 @@ partial void ProcessCreateSimilarVoicesResponseContent( if (request.AudioFile != default) { __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.AudioFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.AudioFile ?? global::System.Array.Empty()), name: "audio_file", fileName: request.AudioFilename ?? string.Empty); } diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/NewtonsoftJson/_#G.GenerateClient.PostRemixImage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/NewtonsoftJson/_#G.GenerateClient.PostRemixImage.g.verified.cs index c1bf507e57..f890da5108 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/NewtonsoftJson/_#G.GenerateClient.PostRemixImage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/NewtonsoftJson/_#G.GenerateClient.PostRemixImage.g.verified.cs @@ -71,13 +71,7 @@ partial void ProcessPostRemixImageResponseContent( content: new global::System.Net.Http.StringContent($"{request.ImageRequest}"), name: "image_request"); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()), name: "image_file", fileName: request.ImageFilename ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/NewtonsoftJson/_#G.GenerateClient.PostUpscaleImage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/NewtonsoftJson/_#G.GenerateClient.PostUpscaleImage.g.verified.cs index 861fb70a95..980bef97be 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/NewtonsoftJson/_#G.GenerateClient.PostUpscaleImage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/NewtonsoftJson/_#G.GenerateClient.PostUpscaleImage.g.verified.cs @@ -70,13 +70,7 @@ partial void ProcessPostUpscaleImageResponseContent( content: new global::System.Net.Http.StringContent($"{request.ImageRequest}"), name: "image_request"); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()), name: "image_file", fileName: request.ImageFilename ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/NewtonsoftJson/_#G.VisionClient.PostDescribe.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/NewtonsoftJson/_#G.VisionClient.PostDescribe.g.verified.cs index cf9e49a10f..91e0919e22 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/NewtonsoftJson/_#G.VisionClient.PostDescribe.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/NewtonsoftJson/_#G.VisionClient.PostDescribe.g.verified.cs @@ -65,13 +65,7 @@ partial void ProcessPostDescribeResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()), name: "image_file", fileName: request.ImageFilename ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/SystemTextJson/_#G.GenerateClient.PostRemixImage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/SystemTextJson/_#G.GenerateClient.PostRemixImage.g.verified.cs index ab05fc6347..d48870c011 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/SystemTextJson/_#G.GenerateClient.PostRemixImage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/SystemTextJson/_#G.GenerateClient.PostRemixImage.g.verified.cs @@ -71,13 +71,7 @@ partial void ProcessPostRemixImageResponseContent( content: new global::System.Net.Http.StringContent($"{request.ImageRequest}"), name: "image_request"); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()), name: "image_file", fileName: request.ImageFilename ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/SystemTextJson/_#G.GenerateClient.PostUpscaleImage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/SystemTextJson/_#G.GenerateClient.PostUpscaleImage.g.verified.cs index c5c0e46fd5..e0ede3387f 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/SystemTextJson/_#G.GenerateClient.PostUpscaleImage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/SystemTextJson/_#G.GenerateClient.PostUpscaleImage.g.verified.cs @@ -70,13 +70,7 @@ partial void ProcessPostUpscaleImageResponseContent( content: new global::System.Net.Http.StringContent($"{request.ImageRequest}"), name: "image_request"); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()), name: "image_file", fileName: request.ImageFilename ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/SystemTextJson/_#G.VisionClient.PostDescribe.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/SystemTextJson/_#G.VisionClient.PostDescribe.g.verified.cs index b2e3d94fb8..1395a8cc1c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/SystemTextJson/_#G.VisionClient.PostDescribe.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/ideogram/SystemTextJson/_#G.VisionClient.PostDescribe.g.verified.cs @@ -65,13 +65,7 @@ partial void ProcessPostDescribeResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.ImageFile ?? global::System.Array.Empty()), name: "image_file", fileName: request.ImageFilename ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/NewtonsoftJson/_#G.BulkEmbeddingsClient.StartBulkEmbeddingV1BulkEmbeddingsPost.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/NewtonsoftJson/_#G.BulkEmbeddingsClient.StartBulkEmbeddingV1BulkEmbeddingsPost.g.verified.cs index 7b0da24a91..19a07ed06f 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/NewtonsoftJson/_#G.BulkEmbeddingsClient.StartBulkEmbeddingV1BulkEmbeddingsPost.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/NewtonsoftJson/_#G.BulkEmbeddingsClient.StartBulkEmbeddingV1BulkEmbeddingsPost.g.verified.cs @@ -66,13 +66,7 @@ partial void ProcessStartBulkEmbeddingV1BulkEmbeddingsPostResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); if (request.Email != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.BulkEmbeddingsClient.StartBulkEmbeddingV1BulkEmbeddingsPost.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.BulkEmbeddingsClient.StartBulkEmbeddingV1BulkEmbeddingsPost.g.verified.cs index aad978a0d0..916af7e57a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.BulkEmbeddingsClient.StartBulkEmbeddingV1BulkEmbeddingsPost.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/jina/SystemTextJson/_#G.BulkEmbeddingsClient.StartBulkEmbeddingV1BulkEmbeddingsPost.g.verified.cs @@ -66,13 +66,7 @@ partial void ProcessStartBulkEmbeddingV1BulkEmbeddingsPostResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); if (request.Email != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/NewtonsoftJson/_#G.FilesClient.FilesApiRoutesUploadFile.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/NewtonsoftJson/_#G.FilesClient.FilesApiRoutesUploadFile.g.verified.cs index 7464532bff..d5182e02a4 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/NewtonsoftJson/_#G.FilesClient.FilesApiRoutesUploadFile.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/NewtonsoftJson/_#G.FilesClient.FilesApiRoutesUploadFile.g.verified.cs @@ -68,13 +68,7 @@ partial void ProcessFilesApiRoutesUploadFileResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); if (request.Purpose != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.FilesClient.FilesApiRoutesUploadFile.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.FilesClient.FilesApiRoutesUploadFile.g.verified.cs index 70de8221fd..0313162053 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.FilesClient.FilesApiRoutesUploadFile.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/mistral/SystemTextJson/_#G.FilesClient.FilesApiRoutesUploadFile.g.verified.cs @@ -68,13 +68,7 @@ partial void ProcessFilesApiRoutesUploadFileResponseContent( } using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); if (request.Purpose != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.ClarityUpscale.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.ClarityUpscale.g.verified.cs index 958f7f332e..70c5e1d822 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.ClarityUpscale.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.ClarityUpscale.g.verified.cs @@ -49,13 +49,7 @@ partial void ProcessClarityUpscaleResponseContent( requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()), name: "image", fileName: request.Imagename ?? string.Empty); if (request.ResponseFormat != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.GenerativeUpscale.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.GenerativeUpscale.g.verified.cs index bf7b7cb774..47172b6c37 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.GenerativeUpscale.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.GenerativeUpscale.g.verified.cs @@ -49,13 +49,7 @@ partial void ProcessGenerativeUpscaleResponseContent( requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()), name: "image", fileName: request.Imagename ?? string.Empty); if (request.ResponseFormat != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.RemoveBackground.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.RemoveBackground.g.verified.cs index ba594a10a4..2f222b47f0 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.RemoveBackground.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.RemoveBackground.g.verified.cs @@ -49,13 +49,7 @@ partial void ProcessRemoveBackgroundResponseContent( requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()), name: "image", fileName: request.Imagename ?? string.Empty); if (request.ResponseFormat != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.VectorizeImage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.VectorizeImage.g.verified.cs index 40f96b2f87..008bb75afd 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.VectorizeImage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/NewtonsoftJson/_#G.ImageClient.VectorizeImage.g.verified.cs @@ -49,13 +49,7 @@ partial void ProcessVectorizeImageResponseContent( requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()), name: "image", fileName: request.Imagename ?? string.Empty); if (request.ResponseFormat != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.ClarityUpscale.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.ClarityUpscale.g.verified.cs index 89a66bde79..f11857528f 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.ClarityUpscale.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.ClarityUpscale.g.verified.cs @@ -49,13 +49,7 @@ partial void ProcessClarityUpscaleResponseContent( requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()), name: "image", fileName: request.Imagename ?? string.Empty); if (request.ResponseFormat != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.GenerativeUpscale.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.GenerativeUpscale.g.verified.cs index 74de0fc948..9ae07c987a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.GenerativeUpscale.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.GenerativeUpscale.g.verified.cs @@ -49,13 +49,7 @@ partial void ProcessGenerativeUpscaleResponseContent( requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()), name: "image", fileName: request.Imagename ?? string.Empty); if (request.ResponseFormat != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.RemoveBackground.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.RemoveBackground.g.verified.cs index e979dfc3a9..1fb59e934a 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.RemoveBackground.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.RemoveBackground.g.verified.cs @@ -49,13 +49,7 @@ partial void ProcessRemoveBackgroundResponseContent( requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()), name: "image", fileName: request.Imagename ?? string.Empty); if (request.ResponseFormat != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.VectorizeImage.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.VectorizeImage.g.verified.cs index ad774d263b..86eef8be5c 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.VectorizeImage.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/recraft/SystemTextJson/_#G.ImageClient.VectorizeImage.g.verified.cs @@ -49,13 +49,7 @@ partial void ProcessVectorizeImageResponseContent( requestUri: new global::System.Uri(__path, global::System.UriKind.RelativeOrAbsolute)); using var __httpRequestContent = new global::System.Net.Http.MultipartFormDataContent(); __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty()), name: "image", fileName: request.Imagename ?? string.Empty); if (request.ResponseFormat != default) diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/NewtonsoftJson/_#G.UploadClient.UploadFile.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/NewtonsoftJson/_#G.UploadClient.UploadFile.g.verified.cs index ab48c59b3a..e169fa7068 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/NewtonsoftJson/_#G.UploadClient.UploadFile.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/NewtonsoftJson/_#G.UploadClient.UploadFile.g.verified.cs @@ -126,13 +126,7 @@ partial void ProcessUploadFileResponseContent( name: "filename"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); __httpRequest.Content = __httpRequestContent; diff --git a/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#G.UploadClient.UploadFile.g.verified.cs b/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#G.UploadClient.UploadFile.g.verified.cs index 675cf4ad3f..f4ed0f3247 100644 --- a/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#G.UploadClient.UploadFile.g.verified.cs +++ b/src/tests/AutoSDK.SnapshotTests/Snapshots/vectara/SystemTextJson/_#G.UploadClient.UploadFile.g.verified.cs @@ -126,13 +126,7 @@ partial void ProcessUploadFileResponseContent( name: "filename"); } __httpRequestContent.Add( - content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()) - { - Headers = - { - ContentType = global::System.Net.Http.Headers.MediaTypeHeaderValue.Parse("multipart/form-data"), - }, - }, + content: new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty()), name: "file", fileName: request.Filename ?? string.Empty); __httpRequest.Content = __httpRequestContent;