diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesCancel.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesCancel.g.cs
index 6e01db3..155b570 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesCancel.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesCancel.g.cs
@@ -122,7 +122,6 @@ partial void ProcessBatchesCancelResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesDelete.g.cs
index 554fe70..6be242e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesDelete.g.cs
@@ -122,7 +122,6 @@ partial void ProcessBatchesDeleteResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesGet.g.cs
index 6e2d980..9b99ed0 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesGet.g.cs
@@ -122,7 +122,6 @@ partial void ProcessBatchesGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesList.g.cs
index 4d58a91..8dc90aa 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesList.g.cs
@@ -146,7 +146,6 @@ partial void ProcessBatchesListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs
index a68b114..dfe00fc 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateEmbedContentBatch.g.cs
@@ -146,7 +146,6 @@ partial void ProcessBatchesUpdateEmbedContentBatchResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs
index 88b9fee..9d1db2b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.BatchesUpdateGenerateContentBatch.g.cs
@@ -146,7 +146,6 @@ partial void ProcessBatchesUpdateGenerateContentBatchResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs
index 631a32d..0ecc5cc 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsCreate.g.cs
@@ -131,7 +131,6 @@ partial void ProcessCachedContentsCreateResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsDelete.g.cs
index 910d2a4..87e8fa8 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsDelete.g.cs
@@ -122,7 +122,6 @@ partial void ProcessCachedContentsDeleteResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsGet.g.cs
index 835cca1..864c3ac 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsGet.g.cs
@@ -122,7 +122,6 @@ partial void ProcessCachedContentsGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsList.g.cs
index e214ea2..ea071dd 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsList.g.cs
@@ -132,7 +132,6 @@ partial void ProcessCachedContentsListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs
index efe9036..65ec448 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CachedContentsPatch.g.cs
@@ -146,7 +146,6 @@ partial void ProcessCachedContentsPatchResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaCreate.g.cs
index c78aade..d717b80 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaCreate.g.cs
@@ -131,7 +131,6 @@ partial void ProcessCorporaCreateResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaDelete.g.cs
index 9e681e8..0c510fc 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaDelete.g.cs
@@ -131,7 +131,6 @@ partial void ProcessCorporaDeleteResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaGet.g.cs
index 21b72a2..fb1c328 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaGet.g.cs
@@ -122,7 +122,6 @@ partial void ProcessCorporaGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaList.g.cs
index 8dfa40f..7f9f0d8 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaList.g.cs
@@ -132,7 +132,6 @@ partial void ProcessCorporaListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaOperationsGet.g.cs
index 23f2f51..42d7a85 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaOperationsGet.g.cs
@@ -128,7 +128,6 @@ partial void ProcessCorporaOperationsGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs
index 0975c4f..cadc486 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsCreate.g.cs
@@ -137,7 +137,6 @@ partial void ProcessCorporaPermissionsCreateResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsDelete.g.cs
index 4e8c3fb..8084f1b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsDelete.g.cs
@@ -128,7 +128,6 @@ partial void ProcessCorporaPermissionsDeleteResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsGet.g.cs
index 7a0c5e6..71be479 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsGet.g.cs
@@ -128,7 +128,6 @@ partial void ProcessCorporaPermissionsGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsList.g.cs
index 0ea504a..9a735af 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsList.g.cs
@@ -138,7 +138,6 @@ partial void ProcessCorporaPermissionsListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs
index 9b4ff65..a63f81d 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.CorporaPermissionsPatch.g.cs
@@ -152,7 +152,6 @@ partial void ProcessCorporaPermissionsPatchResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs
index 45a8bc0..cabe22b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicGenerateContent.g.cs
@@ -137,7 +137,6 @@ partial void ProcessDynamicGenerateContentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs
index b8338c2..70ca308 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.DynamicStreamGenerateContent.g.cs
@@ -137,7 +137,6 @@ partial void ProcessDynamicStreamGenerateContentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs
index 443a519..a7de085 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresCreate.g.cs
@@ -131,7 +131,6 @@ partial void ProcessFileSearchStoresCreateResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDelete.g.cs
index c026d93..883ce69 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDelete.g.cs
@@ -131,7 +131,6 @@ partial void ProcessFileSearchStoresDeleteResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsDelete.g.cs
index 5cb8da5..1c744bd 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsDelete.g.cs
@@ -137,7 +137,6 @@ partial void ProcessFileSearchStoresDocumentsDeleteResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsGet.g.cs
index 82092da..ef6657a 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsGet.g.cs
@@ -128,7 +128,6 @@ partial void ProcessFileSearchStoresDocumentsGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsList.g.cs
index 53edb6a..d0dfe42 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresDocumentsList.g.cs
@@ -138,7 +138,6 @@ partial void ProcessFileSearchStoresDocumentsListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresGet.g.cs
index 680dbd7..4dbbf70 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresGet.g.cs
@@ -122,7 +122,6 @@ partial void ProcessFileSearchStoresGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs
index 385b9d3..b0e698b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresImportFile.g.cs
@@ -137,7 +137,6 @@ partial void ProcessFileSearchStoresImportFileResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresList.g.cs
index 31e93da..b54596e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresList.g.cs
@@ -132,7 +132,6 @@ partial void ProcessFileSearchStoresListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresOperationsGet.g.cs
index 95d2179..4ac27cd 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresOperationsGet.g.cs
@@ -128,7 +128,6 @@ partial void ProcessFileSearchStoresOperationsGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresUploadOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresUploadOperationsGet.g.cs
index 1c31092..b5477ce 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresUploadOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FileSearchStoresUploadOperationsGet.g.cs
@@ -128,7 +128,6 @@ partial void ProcessFileSearchStoresUploadOperationsGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesDelete.g.cs
index 873ad3e..2b3f1a3 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesDelete.g.cs
@@ -122,7 +122,6 @@ partial void ProcessFilesDeleteResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesGet.g.cs
index a9d7f19..8b99321 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesGet.g.cs
@@ -122,7 +122,6 @@ partial void ProcessFilesGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesList.g.cs
index a2bd89e..2ef1508 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesList.g.cs
@@ -132,7 +132,6 @@ partial void ProcessFilesListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesRegister.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesRegister.g.cs
index 1750ee9..59f33ee 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesRegister.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.FilesRegister.g.cs
@@ -131,7 +131,6 @@ partial void ProcessFilesRegisterResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesList.g.cs
index 177a288..b1ab78e 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesList.g.cs
@@ -132,7 +132,6 @@ partial void ProcessGeneratedFilesListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesOperationsGet.g.cs
index 40fc3dd..80af5dc 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.GeneratedFilesOperationsGet.g.cs
@@ -128,7 +128,6 @@ partial void ProcessGeneratedFilesOperationsGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUpload.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUpload.g.cs
index 5ae5c2b..ff7d8bb 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUpload.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUpload.g.cs
@@ -131,7 +131,6 @@ partial void ProcessMediaUploadResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs
index 2f3f213..0e1962d 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.MediaUploadToFileSearchStore.g.cs
@@ -137,7 +137,6 @@ partial void ProcessMediaUploadToFileSearchStoreResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsAsyncBatchEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsAsyncBatchEmbedContent.g.cs
index 2ee90b1..e7efcb2 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsAsyncBatchEmbedContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsAsyncBatchEmbedContent.g.cs
@@ -137,7 +137,6 @@ partial void ProcessModelsAsyncBatchEmbedContentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchEmbedContents.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchEmbedContents.g.cs
index 95a4c6c..ad8a4ad 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchEmbedContents.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchEmbedContents.g.cs
@@ -137,7 +137,6 @@ partial void ProcessModelsBatchEmbedContentsResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchGenerateContent.g.cs
index 996a8b3..780a878 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsBatchGenerateContent.g.cs
@@ -137,7 +137,6 @@ partial void ProcessModelsBatchGenerateContentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs
index e3d811e..8738b1b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsCountTokens.g.cs
@@ -137,7 +137,6 @@ partial void ProcessModelsCountTokensResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs
index e8076ee..d10c7ba 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsEmbedContent.g.cs
@@ -137,7 +137,6 @@ partial void ProcessModelsEmbedContentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs
index 25d5948..a2b2ae6 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGenerateContent.g.cs
@@ -137,7 +137,6 @@ partial void ProcessModelsGenerateContentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGet.g.cs
index 0dc041a..829a274 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsGet.g.cs
@@ -122,7 +122,6 @@ partial void ProcessModelsGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsList.g.cs
index 7bc3f5c..1ab1d43 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsList.g.cs
@@ -132,7 +132,6 @@ partial void ProcessModelsListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsGet.g.cs
index 5a87490..5b8eec9 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsGet.g.cs
@@ -128,7 +128,6 @@ partial void ProcessModelsOperationsGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsList.g.cs
index b14eaec..1e94f13 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsOperationsList.g.cs
@@ -152,7 +152,6 @@ partial void ProcessModelsOperationsListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs
index d63d162..57b5526 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.ModelsStreamGenerateContent.g.cs
@@ -137,7 +137,6 @@ partial void ProcessModelsStreamGenerateContentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsAsyncBatchEmbedContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsAsyncBatchEmbedContent.g.cs
index c278e5f..e1a7750 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsAsyncBatchEmbedContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsAsyncBatchEmbedContent.g.cs
@@ -137,7 +137,6 @@ partial void ProcessTunedModelsAsyncBatchEmbedContentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsBatchGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsBatchGenerateContent.g.cs
index 70d9d38..2be8316 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsBatchGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsBatchGenerateContent.g.cs
@@ -137,7 +137,6 @@ partial void ProcessTunedModelsBatchGenerateContentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs
index 156515b..31705bf 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsCreate.g.cs
@@ -140,7 +140,6 @@ partial void ProcessTunedModelsCreateResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsDelete.g.cs
index eee3b59..f9fd26f 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsDelete.g.cs
@@ -122,7 +122,6 @@ partial void ProcessTunedModelsDeleteResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs
index b6a15b9..4159a26 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGenerateContent.g.cs
@@ -137,7 +137,6 @@ partial void ProcessTunedModelsGenerateContentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGet.g.cs
index 33dc252..7d2634c 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsGet.g.cs
@@ -122,7 +122,6 @@ partial void ProcessTunedModelsGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsList.g.cs
index 46d35cb..976591f 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsList.g.cs
@@ -139,7 +139,6 @@ partial void ProcessTunedModelsListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsGet.g.cs
index 0dc1cd7..faf7d12 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsGet.g.cs
@@ -128,7 +128,6 @@ partial void ProcessTunedModelsOperationsGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsList.g.cs
index 75e89d3..71469f9 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsOperationsList.g.cs
@@ -152,7 +152,6 @@ partial void ProcessTunedModelsOperationsListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs
index dd2575f..4a8985a 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPatch.g.cs
@@ -146,7 +146,6 @@ partial void ProcessTunedModelsPatchResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs
index 02a3d4d..94573f8 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsCreate.g.cs
@@ -137,7 +137,6 @@ partial void ProcessTunedModelsPermissionsCreateResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsDelete.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsDelete.g.cs
index 5356b92..d7d111b 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsDelete.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsDelete.g.cs
@@ -128,7 +128,6 @@ partial void ProcessTunedModelsPermissionsDeleteResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsGet.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsGet.g.cs
index e041246..2aad1e0 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsGet.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsGet.g.cs
@@ -128,7 +128,6 @@ partial void ProcessTunedModelsPermissionsGetResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsList.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsList.g.cs
index 8fae67d..d7d5956 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsList.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsList.g.cs
@@ -138,7 +138,6 @@ partial void ProcessTunedModelsPermissionsListResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs
index c902c5d..552e6d7 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsPermissionsPatch.g.cs
@@ -152,7 +152,6 @@ partial void ProcessTunedModelsPermissionsPatchResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs
index ded8a42..1a71428 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsStreamGenerateContent.g.cs
@@ -137,7 +137,6 @@ partial void ProcessTunedModelsStreamGenerateContentResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsTransferOwnership.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsTransferOwnership.g.cs
index 3412513..0c939e0 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsTransferOwnership.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.GeminiClient.TunedModelsTransferOwnership.g.cs
@@ -137,7 +137,6 @@ partial void ProcessTunedModelsTransferOwnershipResponseContent(
try
{
__response.EnsureSuccessStatusCode();
-
using var __content = await __response.Content.ReadAsStreamAsync(
#if NET5_0_OR_GREATER
cancellationToken
diff --git a/src/libs/Google.Gemini/Generated/Google.Gemini.Polyfills.g.cs b/src/libs/Google.Gemini/Generated/Google.Gemini.Polyfills.g.cs
index 785db41..39a6993 100644
--- a/src/libs/Google.Gemini/Generated/Google.Gemini.Polyfills.g.cs
+++ b/src/libs/Google.Gemini/Generated/Google.Gemini.Polyfills.g.cs
@@ -1,5 +1,4 @@
-#if !NET6_0_OR_GREATER
#nullable enable
namespace Google.Gemini
@@ -9,6 +8,7 @@ namespace Google.Gemini
///
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