Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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,
Expand Down
Loading