diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.CanIframeStudioV1DemosScraperCanIframeGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.CanIframeStudioV1DemosScraperCanIframeGet.g.cs
index 0ef21ee..2ee5381 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.CanIframeStudioV1DemosScraperCanIframeGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.CanIframeStudioV1DemosScraperCanIframeGet.g.cs
@@ -102,8 +102,9 @@ partial void ProcessCanIframeStudioV1DemosScraperCanIframeGetResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -179,11 +180,25 @@ partial void ProcessCanIframeStudioV1DemosScraperCanIframeGetResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ClarotyProductLookupSolutionsClarotyProductLookupPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ClarotyProductLookupSolutionsClarotyProductLookupPost.g.cs
index e3036e6..9aa2831 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.ClarotyProductLookupSolutionsClarotyProductLookupPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.ClarotyProductLookupSolutionsClarotyProductLookupPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessClarotyProductLookupSolutionsClarotyProductLookupPostRespons
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ClarotySuggestVendorModelSolutionsClarotySuggestVendorModelPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ClarotySuggestVendorModelSolutionsClarotySuggestVendorModelPost.g.cs
index 10abf11..1de3210 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.ClarotySuggestVendorModelSolutionsClarotySuggestVendorModelPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.ClarotySuggestVendorModelSolutionsClarotySuggestVendorModelPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessClarotySuggestVendorModelSolutionsClarotySuggestVendorModelP
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs
index 8ec131c..7ffe822 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs
@@ -109,8 +109,9 @@ partial void ProcessCompareTextStudioV1DemosDocumentModifierCompareTextPostRespo
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -186,11 +187,25 @@ partial void ProcessCompareTextStudioV1DemosDocumentModifierCompareTextPostRespo
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs
index 74156f7..c46fe40 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs
@@ -107,8 +107,9 @@ partial void ProcessConvertDocumentFileStudioV1ChatFilesConvertPostResponseConte
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -184,11 +185,25 @@ partial void ProcessConvertDocumentFileStudioV1ChatFilesConvertPostResponseConte
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.CreateDemoStudioV1DemosPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.CreateDemoStudioV1DemosPost.g.cs
index 0bd390f..0847cca 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.CreateDemoStudioV1DemosPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.CreateDemoStudioV1DemosPost.g.cs
@@ -109,8 +109,9 @@ partial void ProcessCreateDemoStudioV1DemosPostResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -190,11 +191,25 @@ partial void ProcessCreateDemoStudioV1DemosPostResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.CreateMcpStorageStudioV1McpStoragePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.CreateMcpStorageStudioV1McpStoragePost.g.cs
index c3c15f4..a643c83 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.CreateMcpStorageStudioV1McpStoragePost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.CreateMcpStorageStudioV1McpStoragePost.g.cs
@@ -108,8 +108,9 @@ partial void ProcessCreateMcpStorageStudioV1McpStoragePostResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -189,11 +190,25 @@ partial void ProcessCreateMcpStorageStudioV1McpStoragePostResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs
index 617aef8..1b08dc4 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs
@@ -114,8 +114,9 @@ partial void ProcessCreateOrganizationSchemaStudioV1StructuredRagOrganizationsOr
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -191,11 +192,25 @@ partial void ProcessCreateOrganizationSchemaStudioV1StructuredRagOrganizationsOr
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteDemoStudioV1DemosDemoIdDelete.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteDemoStudioV1DemosDemoIdDelete.g.cs
index 899d0e3..07b4dd6 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteDemoStudioV1DemosDemoIdDelete.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteDemoStudioV1DemosDemoIdDelete.g.cs
@@ -100,8 +100,9 @@ partial void ProcessDeleteDemoStudioV1DemosDemoIdDeleteResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -177,11 +178,25 @@ partial void ProcessDeleteDemoStudioV1DemosDemoIdDeleteResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs
index aa91c2c..f5191c1 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs
@@ -99,8 +99,9 @@ partial void ProcessDeleteMcpStorageStudioV1McpStorageMcpIdDeleteResponseContent
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessDeleteMcpStorageStudioV1McpStorageMcpIdDeleteResponseContent
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasSchemaNameDelete.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasSchemaNameDelete.g.cs
index dbf71a0..22d7e3e 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasSchemaNameDelete.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasSchemaNameDelete.g.cs
@@ -105,8 +105,9 @@ partial void ProcessDeleteOrganizationSchemaStudioV1StructuredRagOrganizationsOr
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -182,11 +183,25 @@ partial void ProcessDeleteOrganizationSchemaStudioV1StructuredRagOrganizationsOr
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWebsiteConnectorStudioV1ConnectorsWebsiteConnectorIdDelete.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWebsiteConnectorStudioV1ConnectorsWebsiteConnectorIdDelete.g.cs
index 69e46b3..df16151 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWebsiteConnectorStudioV1ConnectorsWebsiteConnectorIdDelete.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWebsiteConnectorStudioV1ConnectorsWebsiteConnectorIdDelete.g.cs
@@ -99,8 +99,9 @@ partial void ProcessDeleteWebsiteConnectorStudioV1ConnectorsWebsiteConnectorIdDe
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessDeleteWebsiteConnectorStudioV1ConnectorsWebsiteConnectorIdDe
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDelete.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDelete.g.cs
index 4389130..ce941ed 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDelete.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.DeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDelete.g.cs
@@ -99,8 +99,9 @@ partial void ProcessDeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDelete
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessDeleteWorkspaceModelEndpointStudioV1SettingsModelsNameDelete
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs
index 11423ee..24483ed 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.DetectSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemaDetectionPost.g.cs
@@ -114,8 +114,9 @@ partial void ProcessDetectSchemaStudioV1StructuredRagOrganizationsOrganizationId
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -195,11 +196,25 @@ partial void ProcessDetectSchemaStudioV1StructuredRagOrganizationsOrganizationId
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs
index cbdb9a4..56d8771 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.DownloadModifiedDocumentStudioV1DemosDocumentModifierDownloadPost.g.cs
@@ -109,8 +109,9 @@ partial void ProcessDownloadModifiedDocumentStudioV1DemosDocumentModifierDownloa
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -186,11 +187,25 @@ partial void ProcessDownloadModifiedDocumentStudioV1DemosDocumentModifierDownloa
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs
index bd95db7..cbc9f68 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacAftersalesBatchPredictPrefixPreviewSolutionsPreviewFdAft
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs
index 8fdafb2..2c0356b 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassificationBatchPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacAftersalesBatchPredictSolutionsFdAftersalesPartsClassifi
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs
index c74036b..4ab6e31 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPreviewFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs
@@ -99,8 +99,9 @@ partial void ProcessFnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPrevie
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessFnacAftersalesBatchPredictStatusPrefixPreviewSolutionsPrevie
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs
index 655bafa..02cabdd 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsClassificationBatchBatchIdStatusGet.g.cs
@@ -99,8 +99,9 @@ partial void ProcessFnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsCl
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessFnacAftersalesBatchPredictStatusSolutionsFdAftersalesPartsCl
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs
index 3728187..6889a77 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacBatchClassificationsPrefixPreviewSolutionsPreviewFdBatch
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs
index bbd4ac3..6adb539 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdResultsPost.g.cs
@@ -99,8 +99,9 @@ partial void ProcessFnacBatchClassificationsResultsPrefixPreviewSolutionsPreview
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessFnacBatchClassificationsResultsPrefixPreviewSolutionsPreview
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs
index c193e3e..bf1312e 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsResultsSolutionsFdBatchesV1ClassificationsBatchIdResultsPost.g.cs
@@ -99,8 +99,9 @@ partial void ProcessFnacBatchClassificationsResultsSolutionsFdBatchesV1Classific
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessFnacBatchClassificationsResultsSolutionsFdBatchesV1Classific
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs
index 0e7eee2..b62a276 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsSolutionsFdBatchesV1ClassificationsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacBatchClassificationsSolutionsFdBatchesV1ClassificationsP
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs
index 6a9a941..b2a9b08 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewFdBatchesV1ClassificationsBatchIdStatusPost.g.cs
@@ -99,8 +99,9 @@ partial void ProcessFnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewF
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessFnacBatchClassificationsStatusPrefixPreviewSolutionsPreviewF
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs
index d5184d6..fd0ef3c 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchClassificationsStatusSolutionsFdBatchesV1ClassificationsBatchIdStatusPost.g.cs
@@ -99,8 +99,9 @@ partial void ProcessFnacBatchClassificationsStatusSolutionsFdBatchesV1Classifica
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessFnacBatchClassificationsStatusSolutionsFdBatchesV1Classifica
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs
index 59288d8..f3fd7b9 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacBatchDescriptionsPrefixPreviewSolutionsPreviewFdBatchesV
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs
index 354b15d..a0be739 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdResultsPost.g.cs
@@ -99,8 +99,9 @@ partial void ProcessFnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdB
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessFnacBatchDescriptionsResultsPrefixPreviewSolutionsPreviewFdB
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs
index c46c2f8..a5c7b93 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsResultsSolutionsFdBatchesV1DescriptionsBatchIdResultsPost.g.cs
@@ -99,8 +99,9 @@ partial void ProcessFnacBatchDescriptionsResultsSolutionsFdBatchesV1Descriptions
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessFnacBatchDescriptionsResultsSolutionsFdBatchesV1Descriptions
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs
index 2bea32c..041730d 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacBatchDescriptionsSolutionsFdBatchesV1DescriptionsPostRes
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs
index 44eae6c..313ddb5 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBatchesV1DescriptionsBatchIdStatusPost.g.cs
@@ -99,8 +99,9 @@ partial void ProcessFnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBa
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessFnacBatchDescriptionsStatusPrefixPreviewSolutionsPreviewFdBa
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs
index 04ec591..c370c58 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsBatchIdStatusPost.g.cs
@@ -99,8 +99,9 @@ partial void ProcessFnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsB
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessFnacBatchDescriptionsStatusSolutionsFdBatchesV1DescriptionsB
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs
index 11ee633..03e3432 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1ClassificationsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacV1ClassificationsPrefixPreviewSolutionsPreviewFnacV1Clas
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs
index 73940f3..2c4a7d0 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1ClassificationsSolutionsFnacV1ClassificationsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacV1ClassificationsSolutionsFnacV1ClassificationsPostRespo
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs
index 693fde9..8b49e96 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreviewFnacV1DeprecatedClassificationsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacV1DeprecatedClassificationsPrefixPreviewSolutionsPreview
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs
index 3e6d04f..4cbc117 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClassificationsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacV1DeprecatedClassificationsSolutionsFnacV1DeprecatedClas
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs
index 1613155..cd4ed15 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFnacV1DeprecatedDescriptionsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacV1DeprecatedDescriptionsPrefixPreviewSolutionsPreviewFna
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs
index c39b29d..16e123e 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescriptionsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacV1DeprecatedDescriptionsSolutionsFnacV1DeprecatedDescrip
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs
index efd1eb6..9b99d40 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1DescriptionsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacV1DescriptionsPrefixPreviewSolutionsPreviewFnacV1Descrip
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs
index 2cd8505..00addc7 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.FnacV1DescriptionsSolutionsFnacV1DescriptionsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessFnacV1DescriptionsSolutionsFnacV1DescriptionsPostResponseCon
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ForwardParagonWebhookStudioV1ConnectorsParagonWebhookPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ForwardParagonWebhookStudioV1ConnectorsParagonWebhookPost.g.cs
index c17dae0..2c2e306 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.ForwardParagonWebhookStudioV1ConnectorsParagonWebhookPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.ForwardParagonWebhookStudioV1ConnectorsParagonWebhookPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessForwardParagonWebhookStudioV1ConnectorsParagonWebhookPostRes
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GenerateOrgTokenStudioV1ConnectorsConnectedUsersEntityIdTokensPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GenerateOrgTokenStudioV1ConnectorsConnectedUsersEntityIdTokensPost.g.cs
index 165f7d5..15c3cf9 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GenerateOrgTokenStudioV1ConnectorsConnectedUsersEntityIdTokensPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GenerateOrgTokenStudioV1ConnectorsConnectedUsersEntityIdTokensPost.g.cs
@@ -99,8 +99,9 @@ partial void ProcessGenerateOrgTokenStudioV1ConnectorsConnectedUsersEntityIdToke
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessGenerateOrgTokenStudioV1ConnectorsConnectedUsersEntityIdToke
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs
index 4ebd1c6..4e7fa6c 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPost.g.cs
@@ -108,8 +108,9 @@ partial void ProcessGenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPostRe
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,11 +186,25 @@ partial void ProcessGenerateResponsePdfStudioV1DemosRfiGenerateResponsePdfPostRe
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs
index cdbc165..0c6ecbd 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGet.g.cs
@@ -99,8 +99,9 @@ partial void ProcessGetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetRespon
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessGetAssistantsByMcpStudioV1McpStorageMcpIdAssistantsGetRespon
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetAvailableModelsEndpointStudioV1SettingsModelsAvailableGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetAvailableModelsEndpointStudioV1SettingsModelsAvailableGet.g.cs
index fad80bd..663e043 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetAvailableModelsEndpointStudioV1SettingsModelsAvailableGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetAvailableModelsEndpointStudioV1SettingsModelsAvailableGet.g.cs
@@ -133,11 +133,25 @@ partial void ProcessGetAvailableModelsEndpointStudioV1SettingsModelsAvailableGet
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetConnectorConnectionStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceConnectionStatusGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetConnectorConnectionStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceConnectionStatusGet.g.cs
index 83535e0..85b70f3 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetConnectorConnectionStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceConnectionStatusGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetConnectorConnectionStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceConnectionStatusGet.g.cs
@@ -114,8 +114,9 @@ partial void ProcessGetConnectorConnectionStatusStudioV1ConnectorsConnectedUsers
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -195,11 +196,25 @@ partial void ProcessGetConnectorConnectionStatusStudioV1ConnectorsConnectedUsers
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceStatusGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceStatusGet.g.cs
index 1d8f23d..2415690 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceStatusGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceStatusGet.g.cs
@@ -114,8 +114,9 @@ partial void ProcessGetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdD
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -195,11 +196,25 @@ partial void ProcessGetDataSourceStatusStudioV1ConnectorsConnectedUsersEntityIdD
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetDemoStudioV1DemosDemoIdGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetDemoStudioV1DemosDemoIdGet.g.cs
index 108c37f..995f610 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetDemoStudioV1DemosDemoIdGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetDemoStudioV1DemosDemoIdGet.g.cs
@@ -100,8 +100,9 @@ partial void ProcessGetDemoStudioV1DemosDemoIdGetResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -181,11 +182,25 @@ partial void ProcessGetDemoStudioV1DemosDemoIdGetResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetFileUrlStudioV1DemosScraperFileUrlFileIdGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetFileUrlStudioV1DemosScraperFileUrlFileIdGet.g.cs
index 6aa95f8..48d2458 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetFileUrlStudioV1DemosScraperFileUrlFileIdGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetFileUrlStudioV1DemosScraperFileUrlFileIdGet.g.cs
@@ -108,8 +108,9 @@ partial void ProcessGetFileUrlStudioV1DemosScraperFileUrlFileIdGetResponseConten
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,11 +186,25 @@ partial void ProcessGetFileUrlStudioV1DemosScraperFileUrlFileIdGetResponseConten
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs
index b38d375..dd8d88a 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetMcpStorageStudioV1McpStorageMcpIdGet.g.cs
@@ -99,8 +99,9 @@ partial void ProcessGetMcpStorageStudioV1McpStorageMcpIdGetResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessGetMcpStorageStudioV1McpStorageMcpIdGetResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersEntityIdDataSourcesGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersEntityIdDataSourcesGet.g.cs
index 68f36bc..a293103 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersEntityIdDataSourcesGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersEntityIdDataSourcesGet.g.cs
@@ -99,8 +99,9 @@ partial void ProcessGetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersEntityI
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessGetOrgDataSourcesInfoStudioV1ConnectorsConnectedUsersEntityI
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetOrganizationSchemasStudioV1StructuredRagOrganizationsOrganizationIdSchemasGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetOrganizationSchemasStudioV1StructuredRagOrganizationsOrganizationIdSchemasGet.g.cs
index caba851..7a6988c 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetOrganizationSchemasStudioV1StructuredRagOrganizationsOrganizationIdSchemasGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetOrganizationSchemasStudioV1StructuredRagOrganizationsOrganizationIdSchemasGet.g.cs
@@ -99,8 +99,9 @@ partial void ProcessGetOrganizationSchemasStudioV1StructuredRagOrganizationsOrga
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessGetOrganizationSchemasStudioV1StructuredRagOrganizationsOrga
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs
index d17bcab..c2f69d5 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetOutputExplanationStudioV1ExecutionsExecutionIdExplanationsOutputGet.g.cs
@@ -112,8 +112,9 @@ partial void ProcessGetOutputExplanationStudioV1ExecutionsExecutionIdExplanation
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -189,11 +190,25 @@ partial void ProcessGetOutputExplanationStudioV1ExecutionsExecutionIdExplanation
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetParsedFileStudioV1DemosDocumentModifierGetParsedFileGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetParsedFileStudioV1DemosDocumentModifierGetParsedFileGet.g.cs
index a40017b..4073916 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetParsedFileStudioV1DemosDocumentModifierGetParsedFileGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetParsedFileStudioV1DemosDocumentModifierGetParsedFileGet.g.cs
@@ -103,8 +103,9 @@ partial void ProcessGetParsedFileStudioV1DemosDocumentModifierGetParsedFileGetRe
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessGetParsedFileStudioV1DemosDocumentModifierGetParsedFileGetRe
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs
index f574bd4..b497b21 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetStepExplanationsStudioV1ExecutionsExecutionIdExplanationsStepsGet.g.cs
@@ -112,8 +112,9 @@ partial void ProcessGetStepExplanationsStudioV1ExecutionsExecutionIdExplanations
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -189,11 +190,25 @@ partial void ProcessGetStepExplanationsStudioV1ExecutionsExecutionIdExplanations
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs
index 282f4c4..9439427 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStoreIdGet.g.cs
@@ -100,8 +100,9 @@ partial void ProcessGetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStore
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -177,11 +178,25 @@ partial void ProcessGetVectorStoreStudioV1DemosRegulationsVectorStoreVectorStore
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorByIdStudioV1ConnectorsWebsiteConnectorIdGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorByIdStudioV1ConnectorsWebsiteConnectorIdGet.g.cs
index 5e78fc2..e975aba 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorByIdStudioV1ConnectorsWebsiteConnectorIdGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorByIdStudioV1ConnectorsWebsiteConnectorIdGet.g.cs
@@ -99,8 +99,9 @@ partial void ProcessGetWebsiteConnectorByIdStudioV1ConnectorsWebsiteConnectorIdG
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessGetWebsiteConnectorByIdStudioV1ConnectorsWebsiteConnectorIdG
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorStudioV1ConnectorsWebsiteGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorStudioV1ConnectorsWebsiteGet.g.cs
index 8905bc1..618bc0d 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorStudioV1ConnectorsWebsiteGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetWebsiteConnectorStudioV1ConnectorsWebsiteGet.g.cs
@@ -133,11 +133,25 @@ partial void ProcessGetWebsiteConnectorStudioV1ConnectorsWebsiteGetResponseConte
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelSecretEndpointStudioV1SettingsModelsNameSecretsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelSecretEndpointStudioV1SettingsModelsNameSecretsGet.g.cs
index 0a65895..29290d9 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelSecretEndpointStudioV1SettingsModelsNameSecretsGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelSecretEndpointStudioV1SettingsModelsNameSecretsGet.g.cs
@@ -99,8 +99,9 @@ partial void ProcessGetWorkspaceModelSecretEndpointStudioV1SettingsModelsNameSec
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessGetWorkspaceModelSecretEndpointStudioV1SettingsModelsNameSec
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelsByOrganizationEndpointStudioV1SettingsModelsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelsByOrganizationEndpointStudioV1SettingsModelsGet.g.cs
index 2e0b6d0..0e5f45d 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelsByOrganizationEndpointStudioV1SettingsModelsGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.GetWorkspaceModelsByOrganizationEndpointStudioV1SettingsModelsGet.g.cs
@@ -137,11 +137,25 @@ partial void ProcessGetWorkspaceModelsByOrganizationEndpointStudioV1SettingsMode
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs
index 315eedd..6505eb1 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.JambaExecuteStudioV1DemosDocumentModifierJambaExecutePost.g.cs
@@ -109,8 +109,9 @@ partial void ProcessJambaExecuteStudioV1DemosDocumentModifierJambaExecutePostRes
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -186,11 +187,25 @@ partial void ProcessJambaExecuteStudioV1DemosDocumentModifierJambaExecutePostRes
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs
index 17ac142..08b34e3 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirshDocumentUploadProcessPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessKirshDocumentUploadProcessPrefixPreviewSolutionsPreviewKirsh
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs
index 800391a..7e2fe47 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshDocumentUploadProcessSolutionsKirshDocumentUploadProcessPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessKirshDocumentUploadProcessSolutionsKirshDocumentUploadProces
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs
index e81ad95..3df2e0a 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAssistantPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessKirshEmailAssistantPrefixPreviewSolutionsPreviewKirshEmailAs
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs
index cffa42c..04e9d95 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshEmailAssistantSolutionsKirshEmailAssistantPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessKirshEmailAssistantSolutionsKirshEmailAssistantPostResponseC
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs
index 2bae76a..5e8fe64 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantCompliancePost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessKirshGrantCompliancePrefixPreviewSolutionsPreviewKirshGrantC
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs
index 04447b1..4a7469e 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantComplianceSolutionsKirshGrantCompliancePost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessKirshGrantComplianceSolutionsKirshGrantCompliancePostRespons
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs
index 6e9f88f..da91335 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMetadataPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessKirshGrantMetadataPrefixPreviewSolutionsPreviewKirshGrantMet
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs
index 9d66cb0..b1b667c 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.KirshGrantMetadataSolutionsKirshGrantMetadataPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessKirshGrantMetadataSolutionsKirshGrantMetadataPostResponseCon
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ListDemosStudioV1DemosGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ListDemosStudioV1DemosGet.g.cs
index 4363907..a41368a 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.ListDemosStudioV1DemosGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.ListDemosStudioV1DemosGet.g.cs
@@ -138,11 +138,25 @@ partial void ProcessListDemosStudioV1DemosGetResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ListMcpStorageStudioV1McpStorageGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ListMcpStorageStudioV1McpStorageGet.g.cs
index 6832c5e..940be6f 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.ListMcpStorageStudioV1McpStorageGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.ListMcpStorageStudioV1McpStorageGet.g.cs
@@ -102,8 +102,9 @@ partial void ProcessListMcpStorageStudioV1McpStorageGetResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -183,11 +184,25 @@ partial void ProcessListMcpStorageStudioV1McpStorageGetResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs
index 9214675..42b4bc0 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.McpToolDiscoveryStudioV1McpDiscoverPost.g.cs
@@ -108,8 +108,9 @@ partial void ProcessMcpToolDiscoveryStudioV1McpDiscoverPostResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -189,11 +190,25 @@ partial void ProcessMcpToolDiscoveryStudioV1McpDiscoverPostResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs
index 2ef1f37..2f8a25d 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.ParsePdfStudioV1DemosDocumentModifierParsePdfPost.g.cs
@@ -114,8 +114,9 @@ partial void ProcessParsePdfStudioV1DemosDocumentModifierParsePdfPostResponseCon
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -191,11 +192,25 @@ partial void ProcessParsePdfStudioV1DemosDocumentModifierParsePdfPostResponseCon
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs
index b5d0577..d1e8b91 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.PostWebsiteConnectorStudioV1ConnectorsWebsitePost.g.cs
@@ -108,8 +108,9 @@ partial void ProcessPostWebsiteConnectorStudioV1ConnectorsWebsitePostResponseCon
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,11 +186,25 @@ partial void ProcessPostWebsiteConnectorStudioV1ConnectorsWebsitePostResponseCon
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs
index 2b29ad8..9e75666 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.ProcessRfiDocumentStudioV1DemosRfiProcessRfiPost.g.cs
@@ -127,8 +127,9 @@ partial void ProcessProcessRfiDocumentStudioV1DemosRfiProcessRfiPostResponseCont
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -208,11 +209,25 @@ partial void ProcessProcessRfiDocumentStudioV1DemosRfiProcessRfiPostResponseCont
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs
index 240822e..78a9d97 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.RunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPost.g.cs
@@ -108,8 +108,9 @@ partial void ProcessRunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPostR
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,11 +186,25 @@ partial void ProcessRunSyncStudioV1ConnectorsConnectedUsersDataSourcesSyncsPostR
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.RunWorkflowStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceWorkflowsWorkflowNameRunPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.RunWorkflowStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceWorkflowsWorkflowNameRunPost.g.cs
index c501a7d..80938b3 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.RunWorkflowStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceWorkflowsWorkflowNameRunPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.RunWorkflowStudioV1ConnectorsConnectedUsersEntityIdDataSourcesDataSourceWorkflowsWorkflowNameRunPost.g.cs
@@ -111,8 +111,9 @@ partial void ProcessRunWorkflowStudioV1ConnectorsConnectedUsersEntityIdDataSourc
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -188,11 +189,25 @@ partial void ProcessRunWorkflowStudioV1ConnectorsConnectedUsersEntityIdDataSourc
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.SyncWebsiteStudioV1ConnectorsWebsiteConnectorIdSyncPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.SyncWebsiteStudioV1ConnectorsWebsiteConnectorIdSyncPost.g.cs
index bd3fcfc..529ec84 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.SyncWebsiteStudioV1ConnectorsWebsiteConnectorIdSyncPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.SyncWebsiteStudioV1ConnectorsWebsiteConnectorIdSyncPost.g.cs
@@ -99,8 +99,9 @@ partial void ProcessSyncWebsiteStudioV1ConnectorsWebsiteConnectorIdSyncPostRespo
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessSyncWebsiteStudioV1ConnectorsWebsiteConnectorIdSyncPostRespo
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs
index 38fec49..4b5a959 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvragPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessTlvConvragPrefixPreviewSolutionsPreviewTlvMunicipalityConvra
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs
index e51c0d3..39a7828 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.TlvConvragSolutionsTlvMunicipalityConvragPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessTlvConvragSolutionsTlvMunicipalityConvragPostResponseContent
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.UpdateDemoStudioV1DemosDemoIdPut.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.UpdateDemoStudioV1DemosDemoIdPut.g.cs
index a959554..de5c421 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.UpdateDemoStudioV1DemosDemoIdPut.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.UpdateDemoStudioV1DemosDemoIdPut.g.cs
@@ -115,8 +115,9 @@ partial void ProcessUpdateDemoStudioV1DemosDemoIdPutResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -196,11 +197,25 @@ partial void ProcessUpdateDemoStudioV1DemosDemoIdPutResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs
index 0c6e34a..4c8baf6 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.UpdateMcpStorageStudioV1McpStorageMcpIdPatch.g.cs
@@ -114,8 +114,9 @@ partial void ProcessUpdateMcpStorageStudioV1McpStorageMcpIdPatchResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -195,11 +196,25 @@ partial void ProcessUpdateMcpStorageStudioV1McpStorageMcpIdPatchResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs
index 7566937..675faaa 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.UpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatch.g.cs
@@ -114,8 +114,9 @@ partial void ProcessUpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatchR
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -195,11 +196,25 @@ partial void ProcessUpdateWorkspaceModelEndpointStudioV1SettingsModelsNamePatchR
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs
index bf4bb06..2109817 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.UploadCheckComplianceStudioV1DemosRegulationsUploadCheckCompliancePost.g.cs
@@ -128,8 +128,9 @@ partial void ProcessUploadCheckComplianceStudioV1DemosRegulationsUploadCheckComp
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -205,11 +206,25 @@ partial void ProcessUploadCheckComplianceStudioV1DemosRegulationsUploadCheckComp
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateAssistant.g.cs
index e83e9ae..ada67fd 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateAssistant.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateAssistant.g.cs
@@ -108,8 +108,9 @@ partial void ProcessV1CreateAssistantResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -189,11 +190,25 @@ partial void ProcessV1CreateAssistantResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1CreatePlan.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1CreatePlan.g.cs
index 061b704..c902684 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1CreatePlan.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1CreatePlan.g.cs
@@ -114,8 +114,9 @@ partial void ProcessV1CreatePlanResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -195,11 +196,25 @@ partial void ProcessV1CreatePlanResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateRoute.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateRoute.g.cs
index bc47ca2..4c92ae2 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateRoute.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1CreateRoute.g.cs
@@ -114,8 +114,9 @@ partial void ProcessV1CreateRouteResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -195,11 +196,25 @@ partial void ProcessV1CreateRouteResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteAssistant.g.cs
index 604dc71..f186270 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteAssistant.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteAssistant.g.cs
@@ -99,8 +99,9 @@ partial void ProcessV1DeleteAssistantResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessV1DeleteAssistantResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteRoute.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteRoute.g.cs
index 1bf8e82..597623c 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteRoute.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1DeleteRoute.g.cs
@@ -105,8 +105,9 @@ partial void ProcessV1DeleteRouteResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -182,11 +183,25 @@ partial void ProcessV1DeleteRouteResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1GenerateAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1GenerateAssistant.g.cs
index 560bd82..c3973bc 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1GenerateAssistant.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1GenerateAssistant.g.cs
@@ -108,8 +108,9 @@ partial void ProcessV1GenerateAssistantResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -189,11 +190,25 @@ partial void ProcessV1GenerateAssistantResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetAssistant.g.cs
index 45d331d..e44cd9b 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetAssistant.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetAssistant.g.cs
@@ -99,8 +99,9 @@ partial void ProcessV1GetAssistantResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessV1GetAssistantResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetMaestroRun.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetMaestroRun.g.cs
index ecf754a..01723f3 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetMaestroRun.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetMaestroRun.g.cs
@@ -99,8 +99,9 @@ partial void ProcessV1GetMaestroRunResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessV1GetMaestroRunResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetPlan.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetPlan.g.cs
index 0855198..30f4e99 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetPlan.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetPlan.g.cs
@@ -105,8 +105,9 @@ partial void ProcessV1GetPlanResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -186,11 +187,25 @@ partial void ProcessV1GetPlanResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetRoute.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetRoute.g.cs
index 790aedf..ae626f5 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1GetRoute.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1GetRoute.g.cs
@@ -105,8 +105,9 @@ partial void ProcessV1GetRouteResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -186,11 +187,25 @@ partial void ProcessV1GetRouteResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListAssistants.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListAssistants.g.cs
index eaf5ef9..0d9f0f3 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListAssistants.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListAssistants.g.cs
@@ -102,8 +102,9 @@ partial void ProcessV1ListAssistantsResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -183,11 +184,25 @@ partial void ProcessV1ListAssistantsResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListModelsInfo.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListModelsInfo.g.cs
index 4585f96..66caa0e 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListModelsInfo.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListModelsInfo.g.cs
@@ -137,11 +137,25 @@ partial void ProcessV1ListModelsInfoResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListPlans.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListPlans.g.cs
index 3f77d2e..91f7f65 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListPlans.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListPlans.g.cs
@@ -99,8 +99,9 @@ partial void ProcessV1ListPlansResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessV1ListPlansResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListRoutes.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListRoutes.g.cs
index a3d4a5e..c4047de 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ListRoutes.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ListRoutes.g.cs
@@ -108,8 +108,9 @@ partial void ProcessV1ListRoutesResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -189,11 +190,25 @@ partial void ProcessV1ListRoutesResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1MaestroRun.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1MaestroRun.g.cs
index 3bf5e48..d2d62ff 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1MaestroRun.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1MaestroRun.g.cs
@@ -108,8 +108,9 @@ partial void ProcessV1MaestroRunResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -189,11 +190,25 @@ partial void ProcessV1MaestroRunResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyAssistant.g.cs
index cbf4df2..1b5f397 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyAssistant.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyAssistant.g.cs
@@ -114,8 +114,9 @@ partial void ProcessV1ModifyAssistantResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -195,11 +196,25 @@ partial void ProcessV1ModifyAssistantResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyPlan.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyPlan.g.cs
index 2e2961f..7606553 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyPlan.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyPlan.g.cs
@@ -120,8 +120,9 @@ partial void ProcessV1ModifyPlanResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -201,11 +202,25 @@ partial void ProcessV1ModifyPlanResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyRoute.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyRoute.g.cs
index d2a8ac1..71a4df9 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyRoute.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ModifyRoute.g.cs
@@ -120,8 +120,9 @@ partial void ProcessV1ModifyRouteResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -201,11 +202,25 @@ partial void ProcessV1ModifyRouteResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1RunAssistant.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1RunAssistant.g.cs
index f188f21..556a999 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1RunAssistant.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1RunAssistant.g.cs
@@ -114,8 +114,9 @@ partial void ProcessV1RunAssistantResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -195,11 +196,25 @@ partial void ProcessV1RunAssistantResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationRequirements.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationRequirements.g.cs
index ae0c6e9..e5f4c75 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationRequirements.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationRequirements.g.cs
@@ -108,8 +108,9 @@ partial void ProcessV1StudioApiGenerationRequirementsResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -189,11 +190,25 @@ partial void ProcessV1StudioApiGenerationRequirementsResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationThreadName.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationThreadName.g.cs
index 82eddff..c8480b4 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationThreadName.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1StudioApiGenerationThreadName.g.cs
@@ -108,8 +108,9 @@ partial void ProcessV1StudioApiGenerationThreadNameResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -189,11 +190,25 @@ partial void ProcessV1StudioApiGenerationThreadNameResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.V1ValidatePlan.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.V1ValidatePlan.g.cs
index ad88ff7..7dcf7df 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.V1ValidatePlan.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.V1ValidatePlan.g.cs
@@ -114,8 +114,9 @@ partial void ProcessV1ValidatePlanResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -195,11 +196,25 @@ partial void ProcessV1ValidatePlanResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs
index 493f355..3145cad 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaActionItemsPreviewSolutionsPreviewVidaaActionItemsPostR
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs
index adaaa63..9cc30e6 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaActionItemsSolutionsVidaaActionItemsPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaActionItemsSolutionsVidaaActionItemsPostResponseContent
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs
index eb1b3dc..119aa60 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGet.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaFeedItemsPreviewSolutionsPreviewVidaaFeedItemsGetRespon
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs
index fe59938..a3fdaf2 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaFeedItemsSolutionsVidaaFeedItemsGet.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaFeedItemsSolutionsVidaaFeedItemsGetResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs
index 3a40f5e..c98ea73 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaMessagesPreviewSolutionsPreviewVidaaApiMessagesPostResp
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs
index ad13e7f..291e4fa 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaMessagesSolutionsVidaaApiMessagesPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaMessagesSolutionsVidaaApiMessagesPostResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs
index 9822394..865f050 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStatsGet.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaSchedulerStatsPreviewSolutionsPreviewVidaaSchedulerStat
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs
index 1ba827d..4cf5d76 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSchedulerStatsSolutionsVidaaSchedulerStatsGet.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaSchedulerStatsSolutionsVidaaSchedulerStatsGetResponseCo
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs
index 32488c7..2ee7289 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesPreviewSolutionsPreviewVidaaSourcesGet.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaSourcesPreviewSolutionsPreviewVidaaSourcesGetResponseCo
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesSolutionsVidaaSourcesGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesSolutionsVidaaSourcesGet.g.cs
index a51a544..8ea6c25 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesSolutionsVidaaSourcesGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSourcesSolutionsVidaaSourcesGet.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaSourcesSolutionsVidaaSourcesGetResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs
index 0ea6ac8..4f71078 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribePreviewSolutionsPreviewVidaaSubscribePost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaSubscribePreviewSolutionsPreviewVidaaSubscribePostRespo
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs
index 68ba7d8..8d56f75 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscribeSolutionsVidaaSubscribePost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaSubscribeSolutionsVidaaSubscribePostResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs
index 2299996..2330d33 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsGet.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaSubscriptionsPreviewSolutionsPreviewVidaaSubscriptionsG
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs
index ddbbcbc..42e9ea4 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSubscriptionsSolutionsVidaaSubscriptionsGet.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaSubscriptionsSolutionsVidaaSubscriptionsGetResponseCont
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs
index 9ed5acc..a4bc300 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizePreviewSolutionsPreviewVidaaSummarizePost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaSummarizePreviewSolutionsPreviewVidaaSummarizePostRespo
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs
index 4a7c990..a1f4f37 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaSummarizeSolutionsVidaaSummarizePost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaSummarizeSolutionsVidaaSummarizePostResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs
index 89e143e..7dfc42f 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaTriggerPollPreviewSolutionsPreviewVidaaTriggerPollPostR
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs
index 4a91e32..531ef38 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaTriggerPollSolutionsVidaaTriggerPollPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaTriggerPollSolutionsVidaaTriggerPollPostResponseContent
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs
index 4a14cee..9f4ffd7 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaUnsubscribePreviewSolutionsPreviewVidaaUnsubscribePostR
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs
index c2d7851..79ee1c3 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.VidaaUnsubscribeSolutionsVidaaUnsubscribePost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessVidaaUnsubscribeSolutionsVidaaUnsubscribePostResponseContent
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs
index 734e928..ec59bbb 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessWppFeedbackPrefixPreviewSolutionsPreviewWppFeedbackPostRespo
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackSolutionsWppFeedbackPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackSolutionsWppFeedbackPost.g.cs
index fca84eb..d9aeb5d 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackSolutionsWppFeedbackPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.WppFeedbackSolutionsWppFeedbackPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessWppFeedbackSolutionsWppFeedbackPostResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs
index a09ed43..e95f00d 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.WppQueryPrefixPreviewSolutionsPreviewWppQueryPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessWppQueryPrefixPreviewSolutionsPreviewWppQueryPostResponseCon
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Ai21Client.WppQuerySolutionsWppQueryPost.g.cs b/src/libs/AI21/Generated/AI21.Ai21Client.WppQuerySolutionsWppQueryPost.g.cs
index 120a13b..1514e9f 100644
--- a/src/libs/AI21/Generated/AI21.Ai21Client.WppQuerySolutionsWppQueryPost.g.cs
+++ b/src/libs/AI21/Generated/AI21.Ai21Client.WppQuerySolutionsWppQueryPost.g.cs
@@ -133,11 +133,25 @@ partial void ProcessWppQuerySolutionsWppQueryPostResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.Exceptions.g.cs b/src/libs/AI21/Generated/AI21.Exceptions.g.cs
index 0f54804..c7e2755 100644
--- a/src/libs/AI21/Generated/AI21.Exceptions.g.cs
+++ b/src/libs/AI21/Generated/AI21.Exceptions.g.cs
@@ -13,7 +13,9 @@ public partial class ApiException : global::System.Exception
///
public global::System.Net.HttpStatusCode StatusCode { get; }
///
- /// The response body.
+ /// The response body as a string, or null if the body could not be read.
+ /// This is always populated for error responses regardless of the ReadResponseAsString setting.
+ /// For success-path failures (e.g. deserialization errors), the client attempts a best-effort read.
///
public string? ResponseBody { get; set; }
///
diff --git a/src/libs/AI21/Generated/AI21.IAi21Client.g.cs b/src/libs/AI21/Generated/AI21.IAi21Client.g.cs
index 2ef75ed..8ca6623 100644
--- a/src/libs/AI21/Generated/AI21.IAi21Client.g.cs
+++ b/src/libs/AI21/Generated/AI21.IAi21Client.g.cs
@@ -28,6 +28,9 @@ public partial interface IAi21Client : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/AI21/Generated/AI21.IJambaCompleteClient.g.cs b/src/libs/AI21/Generated/AI21.IJambaCompleteClient.g.cs
index 0fc7440..73d1a55 100644
--- a/src/libs/AI21/Generated/AI21.IJambaCompleteClient.g.cs
+++ b/src/libs/AI21/Generated/AI21.IJambaCompleteClient.g.cs
@@ -27,6 +27,9 @@ public partial interface IJambaCompleteClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/AI21/Generated/AI21.ILibraryManagementClient.g.cs b/src/libs/AI21/Generated/AI21.ILibraryManagementClient.g.cs
index ab3d974..12d429b 100644
--- a/src/libs/AI21/Generated/AI21.ILibraryManagementClient.g.cs
+++ b/src/libs/AI21/Generated/AI21.ILibraryManagementClient.g.cs
@@ -27,6 +27,9 @@ public partial interface ILibraryManagementClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/AI21/Generated/AI21.IRagEngineClient.g.cs b/src/libs/AI21/Generated/AI21.IRagEngineClient.g.cs
index 6d8c887..bcec7a4 100644
--- a/src/libs/AI21/Generated/AI21.IRagEngineClient.g.cs
+++ b/src/libs/AI21/Generated/AI21.IRagEngineClient.g.cs
@@ -27,6 +27,9 @@ public partial interface IRagEngineClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/AI21/Generated/AI21.ISecretsClient.g.cs b/src/libs/AI21/Generated/AI21.ISecretsClient.g.cs
index 6dbdf4a..c907e63 100644
--- a/src/libs/AI21/Generated/AI21.ISecretsClient.g.cs
+++ b/src/libs/AI21/Generated/AI21.ISecretsClient.g.cs
@@ -27,6 +27,9 @@ public partial interface ISecretsClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.g.cs b/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.g.cs
index 18aa63e..8ea6546 100644
--- a/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.g.cs
+++ b/src/libs/AI21/Generated/AI21.IWebsiteConnectorClient.g.cs
@@ -27,6 +27,9 @@ public partial interface IWebsiteConnectorClient : global::System.IDisposable
///
/// Gets or sets a value indicating whether the response content should be read as a string.
/// True by default in debug builds, false otherwise.
+ /// When false, successful responses are deserialized directly from the response stream for better performance.
+ /// Error responses are always read as strings regardless of this setting,
+ /// ensuring is populated.
///
public bool ReadResponseAsString { get; set; }
diff --git a/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs b/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs
index d4e74d4..8e0653e 100644
--- a/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs
+++ b/src/libs/AI21/Generated/AI21.JambaCompleteClient.V1ChatComplete.g.cs
@@ -113,8 +113,9 @@ partial void ProcessV1ChatCompleteResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -194,11 +195,25 @@ partial void ProcessV1ChatCompleteResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryDelete.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryDelete.g.cs
index 30192c7..e85607a 100644
--- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryDelete.g.cs
+++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryDelete.g.cs
@@ -102,8 +102,9 @@ partial void ProcessV1LibraryDeleteResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -179,11 +180,25 @@ partial void ProcessV1LibraryDeleteResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement.g.cs
index 03b59b8..bd88360 100644
--- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement.g.cs
+++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement.g.cs
@@ -143,8 +143,9 @@ partial void ProcessV1LibraryManagementResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -224,11 +225,25 @@ partial void ProcessV1LibraryManagementResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement2.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement2.g.cs
index b48c90c..b2ce51f 100644
--- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement2.g.cs
+++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement2.g.cs
@@ -107,8 +107,9 @@ partial void ProcessV1LibraryManagement2ResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -188,11 +189,25 @@ partial void ProcessV1LibraryManagement2ResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement3.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement3.g.cs
index 8d96ba2..77e2577 100644
--- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement3.g.cs
+++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryManagement3.g.cs
@@ -122,8 +122,9 @@ partial void ProcessV1LibraryManagement3ResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -199,11 +200,25 @@ partial void ProcessV1LibraryManagement3ResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryUpload.g.cs b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryUpload.g.cs
index 67b85fa..acfd45e 100644
--- a/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryUpload.g.cs
+++ b/src/libs/AI21/Generated/AI21.LibraryManagementClient.V1LibraryUpload.g.cs
@@ -175,8 +175,9 @@ partial void ProcessV1LibraryUploadResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -252,11 +253,25 @@ partial void ProcessV1LibraryUploadResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement.g.cs b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement.g.cs
index c315def..d75ff69 100644
--- a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement.g.cs
+++ b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement.g.cs
@@ -99,8 +99,9 @@ partial void ProcessV1LibraryManagementResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessV1LibraryManagementResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement2.g.cs b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement2.g.cs
index 40a010c..075cdd2 100644
--- a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement2.g.cs
+++ b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement2.g.cs
@@ -99,8 +99,9 @@ partial void ProcessV1LibraryManagement2ResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -176,11 +177,25 @@ partial void ProcessV1LibraryManagement2ResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement3.g.cs b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement3.g.cs
index 790d7bf..0409852 100644
--- a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement3.g.cs
+++ b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibraryManagement3.g.cs
@@ -100,8 +100,9 @@ partial void ProcessV1LibraryManagement3ResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -177,11 +178,25 @@ partial void ProcessV1LibraryManagement3ResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibrarySearch.g.cs b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibrarySearch.g.cs
index 5761e71..6550253 100644
--- a/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibrarySearch.g.cs
+++ b/src/libs/AI21/Generated/AI21.RagEngineClient.V1LibrarySearch.g.cs
@@ -108,8 +108,9 @@ partial void ProcessV1LibrarySearchResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,11 +186,25 @@ partial void ProcessV1LibrarySearchResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage.g.cs b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage.g.cs
index ac2fd36..6dba079 100644
--- a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage.g.cs
+++ b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage.g.cs
@@ -133,11 +133,25 @@ partial void ProcessV1SecretStorageResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage2.g.cs b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage2.g.cs
index 873f261..aa69e61 100644
--- a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage2.g.cs
+++ b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage2.g.cs
@@ -108,8 +108,9 @@ partial void ProcessV1SecretStorage2ResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,11 +186,25 @@ partial void ProcessV1SecretStorage2ResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage3.g.cs b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage3.g.cs
index ce86800..0f432e0 100644
--- a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage3.g.cs
+++ b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage3.g.cs
@@ -102,8 +102,9 @@ partial void ProcessV1SecretStorage3ResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -179,11 +180,25 @@ partial void ProcessV1SecretStorage3ResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage4.g.cs b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage4.g.cs
index 213a778..d931027 100644
--- a/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage4.g.cs
+++ b/src/libs/AI21/Generated/AI21.SecretsClient.V1SecretStorage4.g.cs
@@ -114,8 +114,9 @@ partial void ProcessV1SecretStorage4ResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -191,11 +192,25 @@ partial void ProcessV1SecretStorage4ResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs
index cb34071..5ac6be6 100644
--- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs
+++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorCreateConfig.g.cs
@@ -108,8 +108,9 @@ partial void ProcessV1WebsiteConnectorCreateConfigResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,11 +186,25 @@ partial void ProcessV1WebsiteConnectorCreateConfigResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetConfig.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetConfig.g.cs
index 287639f..8e32574 100644
--- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetConfig.g.cs
+++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetConfig.g.cs
@@ -102,8 +102,9 @@ partial void ProcessV1WebsiteConnectorGetConfigResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -179,11 +180,25 @@ partial void ProcessV1WebsiteConnectorGetConfigResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetUrlStatus.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetUrlStatus.g.cs
index ce4ecc8..22688ea 100644
--- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetUrlStatus.g.cs
+++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetUrlStatus.g.cs
@@ -102,8 +102,9 @@ partial void ProcessV1WebsiteConnectorGetUrlStatusResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -179,11 +180,25 @@ partial void ProcessV1WebsiteConnectorGetUrlStatusResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetWebsiteStatus.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetWebsiteStatus.g.cs
index c03453a..b4ba7a2 100644
--- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetWebsiteStatus.g.cs
+++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorGetWebsiteStatus.g.cs
@@ -102,8 +102,9 @@ partial void ProcessV1WebsiteConnectorGetWebsiteStatusResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -179,11 +180,25 @@ partial void ProcessV1WebsiteConnectorGetWebsiteStatusResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs
index 6eb82ac..301ec40 100644
--- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs
+++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestUrl.g.cs
@@ -108,8 +108,9 @@ partial void ProcessV1WebsiteConnectorIngestUrlResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,11 +186,25 @@ partial void ProcessV1WebsiteConnectorIngestUrlResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs
index 4d5aa5f..448e3f2 100644
--- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs
+++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorIngestWebsite.g.cs
@@ -108,8 +108,9 @@ partial void ProcessV1WebsiteConnectorIngestWebsiteResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,11 +186,25 @@ partial void ProcessV1WebsiteConnectorIngestWebsiteResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
diff --git a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs
index 196bf9c..a9537f1 100644
--- a/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs
+++ b/src/libs/AI21/Generated/AI21.WebsiteConnectorClient.V1WebsiteConnectorRetryIngestWebsite.g.cs
@@ -108,8 +108,9 @@ partial void ProcessV1WebsiteConnectorRetryIngestWebsiteResponseContent(
}
else
{
- var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
- __value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
+ __content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
+
+ __value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
}
}
catch (global::System.Exception __ex)
@@ -185,11 +186,25 @@ partial void ProcessV1WebsiteConnectorRetryIngestWebsiteResponseContent(
}
catch (global::System.Exception __ex)
{
+ string? __content = null;
+ try
+ {
+ __content = await __response.Content.ReadAsStringAsync(
+#if NET5_0_OR_GREATER
+ cancellationToken
+#endif
+ ).ConfigureAwait(false);
+ }
+ catch (global::System.Exception)
+ {
+ }
+
throw new global::AI21.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,