Skip to content

Commit 45f3ee3

Browse files
authored
Merge pull request #268 from tryAGI/bot/update-openapi_202603180252
feat:@coderabbitai
2 parents c457e9b + 1ab1fed commit 45f3ee3

157 files changed

Lines changed: 2550 additions & 337 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/libs/AI21/Generated/AI21.Ai21Client.CanIframeStudioV1DemosScraperCanIframeGet.g.cs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,9 @@ partial void ProcessCanIframeStudioV1DemosScraperCanIframeGetResponseContent(
102102
}
103103
else
104104
{
105-
var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
106-
__value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
105+
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
106+
107+
__value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
107108
}
108109
}
109110
catch (global::System.Exception __ex)
@@ -179,11 +180,25 @@ partial void ProcessCanIframeStudioV1DemosScraperCanIframeGetResponseContent(
179180
}
180181
catch (global::System.Exception __ex)
181182
{
183+
string? __content = null;
184+
try
185+
{
186+
__content = await __response.Content.ReadAsStringAsync(
187+
#if NET5_0_OR_GREATER
188+
cancellationToken
189+
#endif
190+
).ConfigureAwait(false);
191+
}
192+
catch (global::System.Exception)
193+
{
194+
}
195+
182196
throw new global::AI21.ApiException(
183-
message: __response.ReasonPhrase ?? string.Empty,
197+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
184198
innerException: __ex,
185199
statusCode: __response.StatusCode)
186200
{
201+
ResponseBody = __content,
187202
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
188203
__response.Headers,
189204
h => h.Key,

src/libs/AI21/Generated/AI21.Ai21Client.ClarotyProductLookupSolutionsClarotyProductLookupPost.g.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,25 @@ partial void ProcessClarotyProductLookupSolutionsClarotyProductLookupPostRespons
133133
}
134134
catch (global::System.Exception __ex)
135135
{
136+
string? __content = null;
137+
try
138+
{
139+
__content = await __response.Content.ReadAsStringAsync(
140+
#if NET5_0_OR_GREATER
141+
cancellationToken
142+
#endif
143+
).ConfigureAwait(false);
144+
}
145+
catch (global::System.Exception)
146+
{
147+
}
148+
136149
throw new global::AI21.ApiException(
137-
message: __response.ReasonPhrase ?? string.Empty,
150+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
138151
innerException: __ex,
139152
statusCode: __response.StatusCode)
140153
{
154+
ResponseBody = __content,
141155
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
142156
__response.Headers,
143157
h => h.Key,

src/libs/AI21/Generated/AI21.Ai21Client.ClarotySuggestVendorModelSolutionsClarotySuggestVendorModelPost.g.cs

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,11 +133,25 @@ partial void ProcessClarotySuggestVendorModelSolutionsClarotySuggestVendorModelP
133133
}
134134
catch (global::System.Exception __ex)
135135
{
136+
string? __content = null;
137+
try
138+
{
139+
__content = await __response.Content.ReadAsStringAsync(
140+
#if NET5_0_OR_GREATER
141+
cancellationToken
142+
#endif
143+
).ConfigureAwait(false);
144+
}
145+
catch (global::System.Exception)
146+
{
147+
}
148+
136149
throw new global::AI21.ApiException(
137-
message: __response.ReasonPhrase ?? string.Empty,
150+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
138151
innerException: __ex,
139152
statusCode: __response.StatusCode)
140153
{
154+
ResponseBody = __content,
141155
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
142156
__response.Headers,
143157
h => h.Key,

src/libs/AI21/Generated/AI21.Ai21Client.CompareTextStudioV1DemosDocumentModifierCompareTextPost.g.cs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ partial void ProcessCompareTextStudioV1DemosDocumentModifierCompareTextPostRespo
109109
}
110110
else
111111
{
112-
var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
113-
__value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
112+
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
113+
114+
__value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
114115
}
115116
}
116117
catch (global::System.Exception __ex)
@@ -186,11 +187,25 @@ partial void ProcessCompareTextStudioV1DemosDocumentModifierCompareTextPostRespo
186187
}
187188
catch (global::System.Exception __ex)
188189
{
190+
string? __content = null;
191+
try
192+
{
193+
__content = await __response.Content.ReadAsStringAsync(
194+
#if NET5_0_OR_GREATER
195+
cancellationToken
196+
#endif
197+
).ConfigureAwait(false);
198+
}
199+
catch (global::System.Exception)
200+
{
201+
}
202+
189203
throw new global::AI21.ApiException(
190-
message: __response.ReasonPhrase ?? string.Empty,
204+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
191205
innerException: __ex,
192206
statusCode: __response.StatusCode)
193207
{
208+
ResponseBody = __content,
194209
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
195210
__response.Headers,
196211
h => h.Key,

src/libs/AI21/Generated/AI21.Ai21Client.ConvertDocumentFileStudioV1ChatFilesConvertPost.g.cs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ partial void ProcessConvertDocumentFileStudioV1ChatFilesConvertPostResponseConte
107107
}
108108
else
109109
{
110-
var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
111-
__value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
110+
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
111+
112+
__value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
112113
}
113114
}
114115
catch (global::System.Exception __ex)
@@ -184,11 +185,25 @@ partial void ProcessConvertDocumentFileStudioV1ChatFilesConvertPostResponseConte
184185
}
185186
catch (global::System.Exception __ex)
186187
{
188+
string? __content = null;
189+
try
190+
{
191+
__content = await __response.Content.ReadAsStringAsync(
192+
#if NET5_0_OR_GREATER
193+
cancellationToken
194+
#endif
195+
).ConfigureAwait(false);
196+
}
197+
catch (global::System.Exception)
198+
{
199+
}
200+
187201
throw new global::AI21.ApiException(
188-
message: __response.ReasonPhrase ?? string.Empty,
202+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
189203
innerException: __ex,
190204
statusCode: __response.StatusCode)
191205
{
206+
ResponseBody = __content,
192207
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
193208
__response.Headers,
194209
h => h.Key,

src/libs/AI21/Generated/AI21.Ai21Client.CreateDemoStudioV1DemosPost.g.cs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,9 @@ partial void ProcessCreateDemoStudioV1DemosPostResponseContent(
109109
}
110110
else
111111
{
112-
var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
113-
__value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
112+
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
113+
114+
__value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
114115
}
115116
}
116117
catch (global::System.Exception __ex)
@@ -190,11 +191,25 @@ partial void ProcessCreateDemoStudioV1DemosPostResponseContent(
190191
}
191192
catch (global::System.Exception __ex)
192193
{
194+
string? __content = null;
195+
try
196+
{
197+
__content = await __response.Content.ReadAsStringAsync(
198+
#if NET5_0_OR_GREATER
199+
cancellationToken
200+
#endif
201+
).ConfigureAwait(false);
202+
}
203+
catch (global::System.Exception)
204+
{
205+
}
206+
193207
throw new global::AI21.ApiException(
194-
message: __response.ReasonPhrase ?? string.Empty,
208+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
195209
innerException: __ex,
196210
statusCode: __response.StatusCode)
197211
{
212+
ResponseBody = __content,
198213
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
199214
__response.Headers,
200215
h => h.Key,

src/libs/AI21/Generated/AI21.Ai21Client.CreateMcpStorageStudioV1McpStoragePost.g.cs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,9 @@ partial void ProcessCreateMcpStorageStudioV1McpStoragePostResponseContent(
108108
}
109109
else
110110
{
111-
var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
112-
__value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
111+
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
112+
113+
__value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
113114
}
114115
}
115116
catch (global::System.Exception __ex)
@@ -189,11 +190,25 @@ partial void ProcessCreateMcpStorageStudioV1McpStoragePostResponseContent(
189190
}
190191
catch (global::System.Exception __ex)
191192
{
193+
string? __content = null;
194+
try
195+
{
196+
__content = await __response.Content.ReadAsStringAsync(
197+
#if NET5_0_OR_GREATER
198+
cancellationToken
199+
#endif
200+
).ConfigureAwait(false);
201+
}
202+
catch (global::System.Exception)
203+
{
204+
}
205+
192206
throw new global::AI21.ApiException(
193-
message: __response.ReasonPhrase ?? string.Empty,
207+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
194208
innerException: __ex,
195209
statusCode: __response.StatusCode)
196210
{
211+
ResponseBody = __content,
197212
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
198213
__response.Headers,
199214
h => h.Key,

src/libs/AI21/Generated/AI21.Ai21Client.CreateOrganizationSchemaStudioV1StructuredRagOrganizationsOrganizationIdSchemasPost.g.cs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,9 @@ partial void ProcessCreateOrganizationSchemaStudioV1StructuredRagOrganizationsOr
114114
}
115115
else
116116
{
117-
var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
118-
__value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
117+
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
118+
119+
__value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
119120
}
120121
}
121122
catch (global::System.Exception __ex)
@@ -191,11 +192,25 @@ partial void ProcessCreateOrganizationSchemaStudioV1StructuredRagOrganizationsOr
191192
}
192193
catch (global::System.Exception __ex)
193194
{
195+
string? __content = null;
196+
try
197+
{
198+
__content = await __response.Content.ReadAsStringAsync(
199+
#if NET5_0_OR_GREATER
200+
cancellationToken
201+
#endif
202+
).ConfigureAwait(false);
203+
}
204+
catch (global::System.Exception)
205+
{
206+
}
207+
194208
throw new global::AI21.ApiException(
195-
message: __response.ReasonPhrase ?? string.Empty,
209+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
196210
innerException: __ex,
197211
statusCode: __response.StatusCode)
198212
{
213+
ResponseBody = __content,
199214
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
200215
__response.Headers,
201216
h => h.Key,

src/libs/AI21/Generated/AI21.Ai21Client.DeleteDemoStudioV1DemosDemoIdDelete.g.cs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,9 @@ partial void ProcessDeleteDemoStudioV1DemosDemoIdDeleteResponseContent(
100100
}
101101
else
102102
{
103-
var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
104-
__value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
103+
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
104+
105+
__value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
105106
}
106107
}
107108
catch (global::System.Exception __ex)
@@ -177,11 +178,25 @@ partial void ProcessDeleteDemoStudioV1DemosDemoIdDeleteResponseContent(
177178
}
178179
catch (global::System.Exception __ex)
179180
{
181+
string? __content = null;
182+
try
183+
{
184+
__content = await __response.Content.ReadAsStringAsync(
185+
#if NET5_0_OR_GREATER
186+
cancellationToken
187+
#endif
188+
).ConfigureAwait(false);
189+
}
190+
catch (global::System.Exception)
191+
{
192+
}
193+
180194
throw new global::AI21.ApiException(
181-
message: __response.ReasonPhrase ?? string.Empty,
195+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
182196
innerException: __ex,
183197
statusCode: __response.StatusCode)
184198
{
199+
ResponseBody = __content,
185200
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
186201
__response.Headers,
187202
h => h.Key,

src/libs/AI21/Generated/AI21.Ai21Client.DeleteMcpStorageStudioV1McpStorageMcpIdDelete.g.cs

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,9 @@ partial void ProcessDeleteMcpStorageStudioV1McpStorageMcpIdDeleteResponseContent
9999
}
100100
else
101101
{
102-
var __contentStream_422 = await __response.Content.ReadAsStreamAsync(cancellationToken).ConfigureAwait(false);
103-
__value_422 = await global::AI21.HTTPValidationError.FromJsonStreamAsync(__contentStream_422, JsonSerializerContext).ConfigureAwait(false);
102+
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
103+
104+
__value_422 = global::AI21.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
104105
}
105106
}
106107
catch (global::System.Exception __ex)
@@ -180,11 +181,25 @@ partial void ProcessDeleteMcpStorageStudioV1McpStorageMcpIdDeleteResponseContent
180181
}
181182
catch (global::System.Exception __ex)
182183
{
184+
string? __content = null;
185+
try
186+
{
187+
__content = await __response.Content.ReadAsStringAsync(
188+
#if NET5_0_OR_GREATER
189+
cancellationToken
190+
#endif
191+
).ConfigureAwait(false);
192+
}
193+
catch (global::System.Exception)
194+
{
195+
}
196+
183197
throw new global::AI21.ApiException(
184-
message: __response.ReasonPhrase ?? string.Empty,
198+
message: __content ?? __response.ReasonPhrase ?? string.Empty,
185199
innerException: __ex,
186200
statusCode: __response.StatusCode)
187201
{
202+
ResponseBody = __content,
188203
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
189204
__response.Headers,
190205
h => h.Key,

0 commit comments

Comments
 (0)