diff --git a/src/libs/Ideogram/Generated/Ideogram.BatchClient.GetMaybeBatchResults.g.cs b/src/libs/Ideogram/Generated/Ideogram.BatchClient.GetMaybeBatchResults.g.cs
index 40dd45a..333fc79 100644
--- a/src/libs/Ideogram/Generated/Ideogram.BatchClient.GetMaybeBatchResults.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.BatchClient.GetMaybeBatchResults.g.cs
@@ -263,7 +263,6 @@ partial void ProcessGetMaybeBatchResultsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.BatchClient.PostBatch.g.cs b/src/libs/Ideogram/Generated/Ideogram.BatchClient.PostBatch.g.cs
index 94fb8d9..d1302ad 100644
--- a/src/libs/Ideogram/Generated/Ideogram.BatchClient.PostBatch.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.BatchClient.PostBatch.g.cs
@@ -273,7 +273,6 @@ partial void ProcessPostBatchResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.CreateDataset.g.cs b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.CreateDataset.g.cs
index 7e0d722..46a4b3e 100644
--- a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.CreateDataset.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.CreateDataset.g.cs
@@ -206,7 +206,6 @@ partial void ProcessCreateDatasetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.ListDatasets.g.cs b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.ListDatasets.g.cs
index aefb31d..6d318e9 100644
--- a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.ListDatasets.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.ListDatasets.g.cs
@@ -158,7 +158,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/Ideogram/Generated/Ideogram.DatasetsClient.TrainDatasetModel.g.cs b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.TrainDatasetModel.g.cs
index f201d94..2d4ec9e 100644
--- a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.TrainDatasetModel.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.TrainDatasetModel.g.cs
@@ -245,7 +245,6 @@ partial void ProcessTrainDatasetModelResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.UploadDatasetAssets.g.cs b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.UploadDatasetAssets.g.cs
index b27d754..3314ce2 100644
--- a/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.UploadDatasetAssets.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.DatasetsClient.UploadDatasetAssets.g.cs
@@ -256,7 +256,6 @@ partial void ProcessUploadDatasetAssetsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs
index ac11b5e..3d80b35 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImage.g.cs
@@ -328,7 +328,6 @@ partial void ProcessPostEditImageResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImageV3.g.cs
index cac1e7a..e3c6bdd 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostEditImageV3.g.cs
@@ -408,7 +408,6 @@ partial void ProcessPostEditImageV3ResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateDesignV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateDesignV3.g.cs
index 4cfcf2c..61314cb 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateDesignV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateDesignV3.g.cs
@@ -474,7 +474,6 @@ partial void ProcessPostGenerateDesignV3ResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImage.g.cs
index 9bd37ee..1ce3e10 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImage.g.cs
@@ -278,7 +278,6 @@ partial void ProcessPostGenerateImageResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs
index f8b7e3e..e8b496d 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3.g.cs
@@ -409,7 +409,6 @@ partial void ProcessPostGenerateImageV3ResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3Transparent.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3Transparent.g.cs
index 7331c0e..ebd0fc1 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3Transparent.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV3Transparent.g.cs
@@ -336,7 +336,6 @@ partial void ProcessPostGenerateImageV3TransparentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV4.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV4.g.cs
index c56a436..130a542 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV4.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostGenerateImageV4.g.cs
@@ -284,7 +284,6 @@ partial void ProcessPostGenerateImageV4ResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostLayerizeDesignV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostLayerizeDesignV3.g.cs
index 3d37ddc..06b9ff5 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostLayerizeDesignV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostLayerizeDesignV3.g.cs
@@ -357,7 +357,6 @@ partial void ProcessPostLayerizeDesignV3ResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImage.g.cs
index dbcd4c6..e240736 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImage.g.cs
@@ -310,7 +310,6 @@ partial void ProcessPostReframeImageResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImageV3.g.cs
index eaf33db..3974aa5 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReframeImageV3.g.cs
@@ -344,7 +344,6 @@ partial void ProcessPostReframeImageV3ResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImage.g.cs
index 135d5e1..a50ada1 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImage.g.cs
@@ -288,7 +288,6 @@ partial void ProcessPostRemixImageResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImageV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImageV3.g.cs
index 74b464d..bf7e558 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImageV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostRemixImageV3.g.cs
@@ -427,7 +427,6 @@ partial void ProcessPostRemixImageV3ResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReplaceBackgroundV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReplaceBackgroundV3.g.cs
index aee14a1..be57bdf 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReplaceBackgroundV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostReplaceBackgroundV3.g.cs
@@ -353,7 +353,6 @@ partial void ProcessPostReplaceBackgroundV3ResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostTryOnV3.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostTryOnV3.g.cs
index 5deb0c7..34274fc 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostTryOnV3.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostTryOnV3.g.cs
@@ -347,7 +347,6 @@ partial void ProcessPostTryOnV3ResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostUpscaleImage.g.cs b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostUpscaleImage.g.cs
index 7bf6828..4f3bd72 100644
--- a/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostUpscaleImage.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.GenerateClient.PostUpscaleImage.g.cs
@@ -287,7 +287,6 @@ partial void ProcessPostUpscaleImageResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.InternalTestingClient.PostInternalTesting.g.cs b/src/libs/Ideogram/Generated/Ideogram.InternalTestingClient.PostInternalTesting.g.cs
index 22c0fd6..f366fff 100644
--- a/src/libs/Ideogram/Generated/Ideogram.InternalTestingClient.PostInternalTesting.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.InternalTestingClient.PostInternalTesting.g.cs
@@ -264,7 +264,6 @@ partial void ProcessPostInternalTestingResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.AddOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.AddOrganizationMembers.g.cs
index c1a315b..438b89f 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.AddOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.AddOrganizationMembers.g.cs
@@ -280,7 +280,6 @@ partial void ProcessAddOrganizationMembersResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.CreateApiKey.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.CreateApiKey.g.cs
index e897b00..9fac580 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.CreateApiKey.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.CreateApiKey.g.cs
@@ -190,7 +190,6 @@ partial void ProcessCreateApiKeyResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.CreateApiKeyV2.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.CreateApiKeyV2.g.cs
index cb72d87..c3afbc5 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.CreateApiKeyV2.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.CreateApiKeyV2.g.cs
@@ -232,7 +232,6 @@ partial void ProcessCreateApiKeyV2ResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.DeactivateOrganizationApiKey.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.DeactivateOrganizationApiKey.g.cs
index 720f685..0d90d9c 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.DeactivateOrganizationApiKey.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.DeactivateOrganizationApiKey.g.cs
@@ -253,13 +253,6 @@ partial void ProcessDeactivateOrganizationApiKeyResponse(
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/Ideogram/Generated/Ideogram.ManageClient.DeleteSingleApiKey.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.DeleteSingleApiKey.g.cs
index 590ec78..7bc1cec 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.DeleteSingleApiKey.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.DeleteSingleApiKey.g.cs
@@ -184,13 +184,6 @@ partial void ProcessDeleteSingleApiKeyResponse(
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/Ideogram/Generated/Ideogram.ManageClient.GetApiKeys.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeys.g.cs
index ec7dd3f..83e1f80 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeys.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeys.g.cs
@@ -190,7 +190,6 @@ partial void ProcessGetApiKeysResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeysV2.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeysV2.g.cs
index 90eddd2..92ba1e3 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeysV2.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiKeysV2.g.cs
@@ -232,7 +232,6 @@ partial void ProcessGetApiKeysV2ResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiOrganizationUserSuggestions.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiOrganizationUserSuggestions.g.cs
index a40c755..c60daf5 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiOrganizationUserSuggestions.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiOrganizationUserSuggestions.g.cs
@@ -248,7 +248,6 @@ partial void ProcessGetApiOrganizationUserSuggestionsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiProfiles.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiProfiles.g.cs
index 17168f0..9b6bfb1 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiProfiles.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiProfiles.g.cs
@@ -190,7 +190,6 @@ partial void ProcessGetApiProfilesResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiStripeSubscription.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiStripeSubscription.g.cs
index a5c65a6..cff9e04 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiStripeSubscription.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiStripeSubscription.g.cs
@@ -199,7 +199,6 @@ partial void ProcessGetApiStripeSubscriptionResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiSubscription.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiSubscription.g.cs
index e9af290..00163a5 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiSubscription.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiSubscription.g.cs
@@ -190,7 +190,6 @@ partial void ProcessGetApiSubscriptionResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiTerms.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiTerms.g.cs
index d813eaf..b696b09 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiTerms.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetApiTerms.g.cs
@@ -190,7 +190,6 @@ partial void ProcessGetApiTermsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetOrganizationMembers.g.cs
index 6ca0024..0ba0178 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetOrganizationMembers.g.cs
@@ -232,7 +232,6 @@ partial void ProcessGetOrganizationMembersResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUsageInfo.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUsageInfo.g.cs
index 8b93575..c720576 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUsageInfo.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUsageInfo.g.cs
@@ -269,7 +269,6 @@ partial void ProcessGetUsageInfoResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserCredits.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserCredits.g.cs
index 672c906..7128993 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserCredits.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserCredits.g.cs
@@ -213,7 +213,6 @@ partial void ProcessGetUserCreditsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserSpendCommitInfo.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserSpendCommitInfo.g.cs
index 7fb69b4..a962566 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserSpendCommitInfo.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.GetUserSpendCommitInfo.g.cs
@@ -206,7 +206,6 @@ partial void ProcessGetUserSpendCommitInfoResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.ListOrganizationInvoices.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.ListOrganizationInvoices.g.cs
index 21ba4ee..4a23ea5 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.ListOrganizationInvoices.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.ListOrganizationInvoices.g.cs
@@ -232,7 +232,6 @@ partial void ProcessListOrganizationInvoicesResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostAddCreditsForApi.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostAddCreditsForApi.g.cs
index 88d815b..a293bc1 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostAddCreditsForApi.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostAddCreditsForApi.g.cs
@@ -243,7 +243,6 @@ partial void ProcessPostAddCreditsForApiResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiSubscription.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiSubscription.g.cs
index 2dc4163..b42dc7c 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiSubscription.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiSubscription.g.cs
@@ -243,7 +243,6 @@ partial void ProcessPostApiSubscriptionResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiTerms.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiTerms.g.cs
index efdde37..bb03a65 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiTerms.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PostApiTerms.g.cs
@@ -226,13 +226,6 @@ partial void ProcessPostApiTermsResponse(
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/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationMembers.g.cs
index 6119f03..273d835 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.PromoteOrganizationMembers.g.cs
@@ -280,7 +280,6 @@ partial void ProcessPromoteOrganizationMembersResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.ReactivateSubscription.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.ReactivateSubscription.g.cs
index 6e6b0ea..483d2c3 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.ReactivateSubscription.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.ReactivateSubscription.g.cs
@@ -223,7 +223,6 @@ partial void ProcessReactivateSubscriptionResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ManageClient.RemoveOrganizationMembers.g.cs b/src/libs/Ideogram/Generated/Ideogram.ManageClient.RemoveOrganizationMembers.g.cs
index 9a45f64..5e7f2d4 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ManageClient.RemoveOrganizationMembers.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ManageClient.RemoveOrganizationMembers.g.cs
@@ -280,7 +280,6 @@ partial void ProcessRemoveOrganizationMembersResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ModelsClient.GetCustomModel.g.cs b/src/libs/Ideogram/Generated/Ideogram.ModelsClient.GetCustomModel.g.cs
index 6785759..c54d56d 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ModelsClient.GetCustomModel.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ModelsClient.GetCustomModel.g.cs
@@ -197,7 +197,6 @@ partial void ProcessGetCustomModelResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.ModelsClient.ListCustomModels.g.cs b/src/libs/Ideogram/Generated/Ideogram.ModelsClient.ListCustomModels.g.cs
index bb5181a..a5edc6d 100644
--- a/src/libs/Ideogram/Generated/Ideogram.ModelsClient.ListCustomModels.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.ModelsClient.ListCustomModels.g.cs
@@ -176,7 +176,6 @@ partial void ProcessListCustomModelsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.Polyfills.g.cs b/src/libs/Ideogram/Generated/Ideogram.Polyfills.g.cs
index ac222d4..a2021e3 100644
--- a/src/libs/Ideogram/Generated/Ideogram.Polyfills.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.Polyfills.g.cs
@@ -1,5 +1,4 @@
-#if !NET6_0_OR_GREATER
#nullable enable
namespace Ideogram
@@ -9,6 +8,7 @@ namespace Ideogram
///
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/Ideogram/Generated/Ideogram.PromptClient.PostMagicPrompt.g.cs b/src/libs/Ideogram/Generated/Ideogram.PromptClient.PostMagicPrompt.g.cs
index e6a9209..35d871f 100644
--- a/src/libs/Ideogram/Generated/Ideogram.PromptClient.PostMagicPrompt.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.PromptClient.PostMagicPrompt.g.cs
@@ -314,7 +314,6 @@ partial void ProcessPostMagicPromptResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Ideogram/Generated/Ideogram.VisionClient.PostDescribe.g.cs b/src/libs/Ideogram/Generated/Ideogram.VisionClient.PostDescribe.g.cs
index a078499..f787559 100644
--- a/src/libs/Ideogram/Generated/Ideogram.VisionClient.PostDescribe.g.cs
+++ b/src/libs/Ideogram/Generated/Ideogram.VisionClient.PostDescribe.g.cs
@@ -257,7 +257,6 @@ partial void ProcessPostDescribeResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken