diff --git a/src/libs/Predibase/Generated/Predibase.AdaptersClient.CancelAdapter.g.cs b/src/libs/Predibase/Generated/Predibase.AdaptersClient.CancelAdapter.g.cs
index 94aefa3..89f17b6 100644
--- a/src/libs/Predibase/Generated/Predibase.AdaptersClient.CancelAdapter.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.AdaptersClient.CancelAdapter.g.cs
@@ -125,13 +125,6 @@ partial void ProcessCancelAdapterResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Predibase/Generated/Predibase.AdaptersClient.DeleteAdapter.g.cs b/src/libs/Predibase/Generated/Predibase.AdaptersClient.DeleteAdapter.g.cs
index b4907c9..1461b33 100644
--- a/src/libs/Predibase/Generated/Predibase.AdaptersClient.DeleteAdapter.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.AdaptersClient.DeleteAdapter.g.cs
@@ -125,13 +125,6 @@ partial void ProcessDeleteAdapterResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Predibase/Generated/Predibase.AdaptersClient.GetAdapter.g.cs b/src/libs/Predibase/Generated/Predibase.AdaptersClient.GetAdapter.g.cs
index 1c3b7ee..403734d 100644
--- a/src/libs/Predibase/Generated/Predibase.AdaptersClient.GetAdapter.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.AdaptersClient.GetAdapter.g.cs
@@ -137,7 +137,6 @@ partial void ProcessGetAdapterResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.AdaptersClient.ListAdapters.g.cs b/src/libs/Predibase/Generated/Predibase.AdaptersClient.ListAdapters.g.cs
index 182fafa..23202a4 100644
--- a/src/libs/Predibase/Generated/Predibase.AdaptersClient.ListAdapters.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.AdaptersClient.ListAdapters.g.cs
@@ -131,7 +131,6 @@ partial void ProcessListAdaptersResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.DatasetsClient.DeleteDataset.g.cs b/src/libs/Predibase/Generated/Predibase.DatasetsClient.DeleteDataset.g.cs
index 44b75f0..1876549 100644
--- a/src/libs/Predibase/Generated/Predibase.DatasetsClient.DeleteDataset.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.DatasetsClient.DeleteDataset.g.cs
@@ -119,13 +119,6 @@ partial void ProcessDeleteDatasetResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Predibase/Generated/Predibase.DatasetsClient.GetDataset.g.cs b/src/libs/Predibase/Generated/Predibase.DatasetsClient.GetDataset.g.cs
index d7356f5..3470e0d 100644
--- a/src/libs/Predibase/Generated/Predibase.DatasetsClient.GetDataset.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.DatasetsClient.GetDataset.g.cs
@@ -131,7 +131,6 @@ partial void ProcessGetDatasetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.DatasetsClient.ListDatasets.g.cs b/src/libs/Predibase/Generated/Predibase.DatasetsClient.ListDatasets.g.cs
index ca7545d..3ec0be0 100644
--- a/src/libs/Predibase/Generated/Predibase.DatasetsClient.ListDatasets.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.DatasetsClient.ListDatasets.g.cs
@@ -125,7 +125,6 @@ partial void ProcessListDatasetsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.DeploymentsClient.CreateDeployment.g.cs b/src/libs/Predibase/Generated/Predibase.DeploymentsClient.CreateDeployment.g.cs
index 93c9db0..7afc25b 100644
--- a/src/libs/Predibase/Generated/Predibase.DeploymentsClient.CreateDeployment.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.DeploymentsClient.CreateDeployment.g.cs
@@ -140,7 +140,6 @@ partial void ProcessCreateDeploymentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.DeploymentsClient.DeleteDeployment.g.cs b/src/libs/Predibase/Generated/Predibase.DeploymentsClient.DeleteDeployment.g.cs
index da48f89..556b320 100644
--- a/src/libs/Predibase/Generated/Predibase.DeploymentsClient.DeleteDeployment.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.DeploymentsClient.DeleteDeployment.g.cs
@@ -119,13 +119,6 @@ partial void ProcessDeleteDeploymentResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Predibase/Generated/Predibase.DeploymentsClient.GetDeployment.g.cs b/src/libs/Predibase/Generated/Predibase.DeploymentsClient.GetDeployment.g.cs
index 27f33d6..a832619 100644
--- a/src/libs/Predibase/Generated/Predibase.DeploymentsClient.GetDeployment.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.DeploymentsClient.GetDeployment.g.cs
@@ -131,7 +131,6 @@ partial void ProcessGetDeploymentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.DeploymentsClient.ListDeployments.g.cs b/src/libs/Predibase/Generated/Predibase.DeploymentsClient.ListDeployments.g.cs
index 261dbe5..6cca1e0 100644
--- a/src/libs/Predibase/Generated/Predibase.DeploymentsClient.ListDeployments.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.DeploymentsClient.ListDeployments.g.cs
@@ -125,7 +125,6 @@ partial void ProcessListDeploymentsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.DeploymentsClient.UpdateDeployment.g.cs b/src/libs/Predibase/Generated/Predibase.DeploymentsClient.UpdateDeployment.g.cs
index b9fc899..e6ad808 100644
--- a/src/libs/Predibase/Generated/Predibase.DeploymentsClient.UpdateDeployment.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.DeploymentsClient.UpdateDeployment.g.cs
@@ -146,7 +146,6 @@ partial void ProcessUpdateDeploymentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.FineTuningClient.CancelFinetuningJob.g.cs b/src/libs/Predibase/Generated/Predibase.FineTuningClient.CancelFinetuningJob.g.cs
index 699da82..6798985 100644
--- a/src/libs/Predibase/Generated/Predibase.FineTuningClient.CancelFinetuningJob.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.FineTuningClient.CancelFinetuningJob.g.cs
@@ -119,13 +119,6 @@ partial void ProcessCancelFinetuningJobResponse(
try
{
__response.EnsureSuccessStatusCode();
-
- using var __content = await __response.Content.ReadAsStreamAsync(
-#if NET5_0_OR_GREATER
- cancellationToken
-#endif
- ).ConfigureAwait(false);
-
}
catch (global::System.Exception __ex)
{
diff --git a/src/libs/Predibase/Generated/Predibase.FineTuningClient.CreateFinetuningJob.g.cs b/src/libs/Predibase/Generated/Predibase.FineTuningClient.CreateFinetuningJob.g.cs
index e04d8cf..6c4bc1c 100644
--- a/src/libs/Predibase/Generated/Predibase.FineTuningClient.CreateFinetuningJob.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.FineTuningClient.CreateFinetuningJob.g.cs
@@ -142,7 +142,6 @@ partial void ProcessCreateFinetuningJobResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.FineTuningClient.GetFinetuningJob.g.cs b/src/libs/Predibase/Generated/Predibase.FineTuningClient.GetFinetuningJob.g.cs
index da970eb..7eeb50e 100644
--- a/src/libs/Predibase/Generated/Predibase.FineTuningClient.GetFinetuningJob.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.FineTuningClient.GetFinetuningJob.g.cs
@@ -131,7 +131,6 @@ partial void ProcessGetFinetuningJobResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.FineTuningClient.ListFinetuningJobs.g.cs b/src/libs/Predibase/Generated/Predibase.FineTuningClient.ListFinetuningJobs.g.cs
index b3ad934..eda8d24 100644
--- a/src/libs/Predibase/Generated/Predibase.FineTuningClient.ListFinetuningJobs.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.FineTuningClient.ListFinetuningJobs.g.cs
@@ -125,7 +125,6 @@ partial void ProcessListFinetuningJobsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.InferenceClient.ChatCompletion.g.cs b/src/libs/Predibase/Generated/Predibase.InferenceClient.ChatCompletion.g.cs
index 5896b84..936667b 100644
--- a/src/libs/Predibase/Generated/Predibase.InferenceClient.ChatCompletion.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.InferenceClient.ChatCompletion.g.cs
@@ -223,7 +223,6 @@ partial void ProcessChatCompletionResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.InferenceClient.Classify.g.cs b/src/libs/Predibase/Generated/Predibase.InferenceClient.Classify.g.cs
index 2b16ae0..265f8ba 100644
--- a/src/libs/Predibase/Generated/Predibase.InferenceClient.Classify.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.InferenceClient.Classify.g.cs
@@ -184,7 +184,6 @@ partial void ProcessClassifyResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.InferenceClient.Completion.g.cs b/src/libs/Predibase/Generated/Predibase.InferenceClient.Completion.g.cs
index 3f362af..967c3e2 100644
--- a/src/libs/Predibase/Generated/Predibase.InferenceClient.Completion.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.InferenceClient.Completion.g.cs
@@ -222,7 +222,6 @@ partial void ProcessCompletionResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.InferenceClient.Generate.g.cs b/src/libs/Predibase/Generated/Predibase.InferenceClient.Generate.g.cs
index 1f322c3..cfaf1bd 100644
--- a/src/libs/Predibase/Generated/Predibase.InferenceClient.Generate.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.InferenceClient.Generate.g.cs
@@ -223,7 +223,6 @@ partial void ProcessGenerateResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.InferenceClient.GetDeploymentHealth.g.cs b/src/libs/Predibase/Generated/Predibase.InferenceClient.GetDeploymentHealth.g.cs
index 9c58b49..524d88a 100644
--- a/src/libs/Predibase/Generated/Predibase.InferenceClient.GetDeploymentHealth.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.InferenceClient.GetDeploymentHealth.g.cs
@@ -131,7 +131,6 @@ partial void ProcessGetDeploymentHealthResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.InferenceClient.GetDeploymentInfo.g.cs b/src/libs/Predibase/Generated/Predibase.InferenceClient.GetDeploymentInfo.g.cs
index 78325f3..08b8fb5 100644
--- a/src/libs/Predibase/Generated/Predibase.InferenceClient.GetDeploymentInfo.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.InferenceClient.GetDeploymentInfo.g.cs
@@ -131,7 +131,6 @@ partial void ProcessGetDeploymentInfoResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.Polyfills.g.cs b/src/libs/Predibase/Generated/Predibase.Polyfills.g.cs
index 02784aa..dbd6c7b 100644
--- a/src/libs/Predibase/Generated/Predibase.Polyfills.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.Polyfills.g.cs
@@ -1,5 +1,4 @@
-#if !NET6_0_OR_GREATER
#nullable enable
namespace Predibase
@@ -9,6 +8,7 @@ namespace Predibase
///
public static partial class AutoSdkPolyfills
{
+#if !NET6_0_OR_GREATER
///
///
///
@@ -48,6 +48,128 @@ public static partial class AutoSdkPolyfills
content = content ?? throw new global::System.ArgumentNullException(nameof(content));
return content.ReadAsByteArrayAsync();
}
+#endif
+
+ ///
+ /// Creates a JSON request content instance.
+ ///
+ public static global::System.Net.Http.HttpContent CreateJsonContent(
+ T inputValue,
+ string mediaType,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions)
+ {
+ if (string.IsNullOrWhiteSpace(mediaType))
+ {
+ throw new global::System.ArgumentException("Media type is required.", nameof(mediaType));
+ }
+
+#if NET5_0_OR_GREATER
+ return global::System.Net.Http.Json.JsonContent.Create(
+ inputValue: inputValue,
+ mediaType: new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType),
+ options: jsonSerializerOptions);
+#else
+ var json = global::System.Text.Json.JsonSerializer.Serialize(inputValue, jsonSerializerOptions);
+ var stringContent = new global::System.Net.Http.StringContent(
+ content: json,
+ encoding: global::System.Text.Encoding.UTF8);
+ stringContent.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType)
+ {
+ CharSet = global::System.Text.Encoding.UTF8.WebName,
+ };
+ return stringContent;
+#endif
+ }
+
+ ///
+ /// Creates a JSON request content instance using a source-generated serializer context.
+ ///
+ public static global::System.Net.Http.HttpContent CreateJsonContent(
+ object? inputValue,
+ global::System.Type inputType,
+ string mediaType,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext)
+ {
+ inputType = inputType ?? throw new global::System.ArgumentNullException(nameof(inputType));
+ jsonSerializerContext = jsonSerializerContext ?? throw new global::System.ArgumentNullException(nameof(jsonSerializerContext));
+
+ if (string.IsNullOrWhiteSpace(mediaType))
+ {
+ throw new global::System.ArgumentException("Media type is required.", nameof(mediaType));
+ }
+
+#if NET5_0_OR_GREATER
+ var jsonTypeInfo = jsonSerializerContext.GetTypeInfo(inputType) ??
+ throw new global::System.InvalidOperationException($"No JsonTypeInfo registered for '{inputType}'.");
+ return global::System.Net.Http.Json.JsonContent.Create(
+ inputValue: inputValue,
+ jsonTypeInfo: jsonTypeInfo,
+ mediaType: new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType));
+#else
+ var json = global::System.Text.Json.JsonSerializer.Serialize(
+ value: inputValue,
+ inputType: inputType,
+ jsonSerializerContext);
+ var stringContent = new global::System.Net.Http.StringContent(
+ content: json,
+ encoding: global::System.Text.Encoding.UTF8);
+ stringContent.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(mediaType)
+ {
+ CharSet = global::System.Text.Encoding.UTF8.WebName,
+ };
+ return stringContent;
+#endif
+ }
+
+ ///
+ /// Reads JSON content into the specified type using serializer options.
+ ///
+ public static async global::System.Threading.Tasks.Task ReadFromJsonAsync(
+ this global::System.Net.Http.HttpContent content,
+ global::System.Text.Json.JsonSerializerOptions? jsonSerializerOptions,
+ global::System.Threading.CancellationToken cancellationToken)
+ {
+ content = content ?? throw new global::System.ArgumentNullException(nameof(content));
+
+#if NET5_0_OR_GREATER
+ return await global::System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync(
+ content,
+ jsonSerializerOptions,
+ cancellationToken).ConfigureAwait(false);
+#else
+ using var stream = await AutoSdkPolyfills.ReadAsStreamAsync(content, cancellationToken).ConfigureAwait(false);
+ return await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ utf8Json: stream,
+ options: jsonSerializerOptions,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+#endif
+ }
+
+ ///
+ /// Reads JSON content into the specified type using a source-generated serializer context.
+ ///
+ public static async global::System.Threading.Tasks.Task ReadFromJsonAsync(
+ this global::System.Net.Http.HttpContent content,
+ global::System.Text.Json.Serialization.JsonSerializerContext jsonSerializerContext,
+ global::System.Threading.CancellationToken cancellationToken)
+ {
+ content = content ?? throw new global::System.ArgumentNullException(nameof(content));
+ jsonSerializerContext = jsonSerializerContext ?? throw new global::System.ArgumentNullException(nameof(jsonSerializerContext));
+
+#if NET5_0_OR_GREATER
+ return (T?)await global::System.Net.Http.Json.HttpContentJsonExtensions.ReadFromJsonAsync(
+ content,
+ typeof(T),
+ jsonSerializerContext,
+ cancellationToken).ConfigureAwait(false);
+#else
+ using var stream = await AutoSdkPolyfills.ReadAsStreamAsync(content, cancellationToken).ConfigureAwait(false);
+ return (T?)await global::System.Text.Json.JsonSerializer.DeserializeAsync(
+ utf8Json: stream,
+ returnType: typeof(T),
+ jsonSerializerContext,
+ cancellationToken: cancellationToken).ConfigureAwait(false);
+#endif
+ }
}
}
-#endif
\ No newline at end of file
diff --git a/src/libs/Predibase/Generated/Predibase.RepositoriesClient.CreateRepository.g.cs b/src/libs/Predibase/Generated/Predibase.RepositoriesClient.CreateRepository.g.cs
index 41514c4..22ceeb2 100644
--- a/src/libs/Predibase/Generated/Predibase.RepositoriesClient.CreateRepository.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.RepositoriesClient.CreateRepository.g.cs
@@ -140,7 +140,6 @@ partial void ProcessCreateRepositoryResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.RepositoriesClient.GetRepository.g.cs b/src/libs/Predibase/Generated/Predibase.RepositoriesClient.GetRepository.g.cs
index a8539fb..c422709 100644
--- a/src/libs/Predibase/Generated/Predibase.RepositoriesClient.GetRepository.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.RepositoriesClient.GetRepository.g.cs
@@ -131,7 +131,6 @@ partial void ProcessGetRepositoryResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Predibase/Generated/Predibase.RepositoriesClient.ListRepositories.g.cs b/src/libs/Predibase/Generated/Predibase.RepositoriesClient.ListRepositories.g.cs
index 008c421..62805b0 100644
--- a/src/libs/Predibase/Generated/Predibase.RepositoriesClient.ListRepositories.g.cs
+++ b/src/libs/Predibase/Generated/Predibase.RepositoriesClient.ListRepositories.g.cs
@@ -136,7 +136,6 @@ partial void ProcessListRepositoriesResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken