Skip to content

Commit c2833b9

Browse files
author
github-actions[bot]
committed
feat: Updated OpenAPI spec
1 parent b7711b3 commit c2833b9

134 files changed

Lines changed: 868 additions & 2808 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/DeepInfra/Generated/DeepInfra.DeepInfraClient.AccountEmailValues.g.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ partial void ProcessAccountEmailValuesResponseContent(
101101
if (ReadResponseAsString)
102102
{
103103
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
104-
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerContext);
104+
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerOptions);
105105
}
106106
else
107107
{
108108
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
109109

110-
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerContext);
110+
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerOptions);
111111
}
112112
}
113113
catch (global::System.Exception __ex)
@@ -139,13 +139,13 @@ partial void ProcessAccountEmailValuesResponseContent(
139139
if (ReadResponseAsString)
140140
{
141141
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
142-
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
142+
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
143143
}
144144
else
145145
{
146146
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
147147

148-
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
148+
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
149149
}
150150
}
151151
catch (global::System.Exception __ex)
@@ -189,7 +189,7 @@ partial void ProcessAccountEmailValuesResponseContent(
189189
__response.EnsureSuccessStatusCode();
190190

191191
return
192-
global::DeepInfra.EmailsOut.FromJson(__content, JsonSerializerContext) ??
192+
global::DeepInfra.EmailsOut.FromJson(__content, JsonSerializerOptions) ??
193193
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
194194
}
195195
catch (global::System.Exception __ex)
@@ -212,15 +212,14 @@ partial void ProcessAccountEmailValuesResponseContent(
212212
try
213213
{
214214
__response.EnsureSuccessStatusCode();
215-
216215
using var __content = await __response.Content.ReadAsStreamAsync(
217216
#if NET5_0_OR_GREATER
218217
cancellationToken
219218
#endif
220219
).ConfigureAwait(false);
221220

222221
return
223-
await global::DeepInfra.EmailsOut.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
222+
await global::DeepInfra.EmailsOut.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
224223
throw new global::System.InvalidOperationException("Response deserialization failed.");
225224
}
226225
catch (global::System.Exception __ex)

src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.AccountGpuLimit.g.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ partial void ProcessAccountGpuLimitResponseContent(
101101
if (ReadResponseAsString)
102102
{
103103
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
104-
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerContext);
104+
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerOptions);
105105
}
106106
else
107107
{
108108
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
109109

110-
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerContext);
110+
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerOptions);
111111
}
112112
}
113113
catch (global::System.Exception __ex)
@@ -139,13 +139,13 @@ partial void ProcessAccountGpuLimitResponseContent(
139139
if (ReadResponseAsString)
140140
{
141141
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
142-
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
142+
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
143143
}
144144
else
145145
{
146146
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
147147

148-
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
148+
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
149149
}
150150
}
151151
catch (global::System.Exception __ex)
@@ -189,7 +189,7 @@ partial void ProcessAccountGpuLimitResponseContent(
189189
__response.EnsureSuccessStatusCode();
190190

191191
return
192-
global::DeepInfra.GpuLimitOut.FromJson(__content, JsonSerializerContext) ??
192+
global::DeepInfra.GpuLimitOut.FromJson(__content, JsonSerializerOptions) ??
193193
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
194194
}
195195
catch (global::System.Exception __ex)
@@ -212,15 +212,14 @@ partial void ProcessAccountGpuLimitResponseContent(
212212
try
213213
{
214214
__response.EnsureSuccessStatusCode();
215-
216215
using var __content = await __response.Content.ReadAsStreamAsync(
217216
#if NET5_0_OR_GREATER
218217
cancellationToken
219218
#endif
220219
).ConfigureAwait(false);
221220

222221
return
223-
await global::DeepInfra.GpuLimitOut.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
222+
await global::DeepInfra.GpuLimitOut.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
224223
throw new global::System.InvalidOperationException("Response deserialization failed.");
225224
}
226225
catch (global::System.Exception __ex)

src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.AccountRateLimit.g.cs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,13 @@ partial void ProcessAccountRateLimitResponseContent(
101101
if (ReadResponseAsString)
102102
{
103103
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
104-
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerContext);
104+
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerOptions);
105105
}
106106
else
107107
{
108108
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
109109

110-
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerContext);
110+
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerOptions);
111111
}
112112
}
113113
catch (global::System.Exception __ex)
@@ -139,13 +139,13 @@ partial void ProcessAccountRateLimitResponseContent(
139139
if (ReadResponseAsString)
140140
{
141141
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
142-
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
142+
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
143143
}
144144
else
145145
{
146146
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
147147

148-
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
148+
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
149149
}
150150
}
151151
catch (global::System.Exception __ex)
@@ -189,7 +189,7 @@ partial void ProcessAccountRateLimitResponseContent(
189189
__response.EnsureSuccessStatusCode();
190190

191191
return
192-
global::DeepInfra.RateLimitOut.FromJson(__content, JsonSerializerContext) ??
192+
global::DeepInfra.RateLimitOut.FromJson(__content, JsonSerializerOptions) ??
193193
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
194194
}
195195
catch (global::System.Exception __ex)
@@ -212,15 +212,14 @@ partial void ProcessAccountRateLimitResponseContent(
212212
try
213213
{
214214
__response.EnsureSuccessStatusCode();
215-
216215
using var __content = await __response.Content.ReadAsStreamAsync(
217216
#if NET5_0_OR_GREATER
218217
cancellationToken
219218
#endif
220219
).ConfigureAwait(false);
221220

222221
return
223-
await global::DeepInfra.RateLimitOut.FromJsonStreamAsync(__content, JsonSerializerContext).ConfigureAwait(false) ??
222+
await global::DeepInfra.RateLimitOut.FromJsonStreamAsync(__content, JsonSerializerOptions).ConfigureAwait(false) ??
224223
throw new global::System.InvalidOperationException("Response deserialization failed.");
225224
}
226225
catch (global::System.Exception __ex)

src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.AccountUpdateDetails.g.cs

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ partial void ProcessAccountUpdateDetailsResponseContent(
7878
__httpRequest.Headers.TryAddWithoutValidation("xi-api-key", xiApiKey.ToString());
7979
}
8080

81-
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
81+
var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
8282
var __httpRequestContent = new global::System.Net.Http.StringContent(
8383
content: __httpRequestContentBody,
8484
encoding: global::System.Text.Encoding.UTF8,
@@ -116,13 +116,13 @@ partial void ProcessAccountUpdateDetailsResponseContent(
116116
if (ReadResponseAsString)
117117
{
118118
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
119-
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerContext);
119+
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerOptions);
120120
}
121121
else
122122
{
123123
__content_404 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
124124

125-
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerContext);
125+
__value_404 = global::DeepInfra.DeepError.FromJson(__content_404, JsonSerializerOptions);
126126
}
127127
}
128128
catch (global::System.Exception __ex)
@@ -154,13 +154,13 @@ partial void ProcessAccountUpdateDetailsResponseContent(
154154
if (ReadResponseAsString)
155155
{
156156
__content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
157-
__value_409 = global::DeepInfra.DeepError.FromJson(__content_409, JsonSerializerContext);
157+
__value_409 = global::DeepInfra.DeepError.FromJson(__content_409, JsonSerializerOptions);
158158
}
159159
else
160160
{
161161
__content_409 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
162162

163-
__value_409 = global::DeepInfra.DeepError.FromJson(__content_409, JsonSerializerContext);
163+
__value_409 = global::DeepInfra.DeepError.FromJson(__content_409, JsonSerializerOptions);
164164
}
165165
}
166166
catch (global::System.Exception __ex)
@@ -192,13 +192,13 @@ partial void ProcessAccountUpdateDetailsResponseContent(
192192
if (ReadResponseAsString)
193193
{
194194
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
195-
__value_422 = global::DeepInfra.DeepError.FromJson(__content_422, JsonSerializerContext);
195+
__value_422 = global::DeepInfra.DeepError.FromJson(__content_422, JsonSerializerOptions);
196196
}
197197
else
198198
{
199199
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
200200

201-
__value_422 = global::DeepInfra.DeepError.FromJson(__content_422, JsonSerializerContext);
201+
__value_422 = global::DeepInfra.DeepError.FromJson(__content_422, JsonSerializerOptions);
202202
}
203203
}
204204
catch (global::System.Exception __ex)
@@ -263,7 +263,6 @@ partial void ProcessAccountUpdateDetailsResponseContent(
263263
try
264264
{
265265
__response.EnsureSuccessStatusCode();
266-
267266
var __content = await __response.Content.ReadAsStringAsync(
268267
#if NET5_0_OR_GREATER
269268
cancellationToken

src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.AddFunds.g.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ partial void ProcessAddFundsResponseContent(
7272
__httpRequest.Headers.Add(__authorization.Name, __authorization.Value);
7373
}
7474
}
75-
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
75+
var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
7676
var __httpRequestContent = new global::System.Net.Http.StringContent(
7777
content: __httpRequestContentBody,
7878
encoding: global::System.Text.Encoding.UTF8,
@@ -110,13 +110,13 @@ partial void ProcessAddFundsResponseContent(
110110
if (ReadResponseAsString)
111111
{
112112
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
113-
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
113+
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
114114
}
115115
else
116116
{
117117
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
118118

119-
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
119+
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
120120
}
121121
}
122122
catch (global::System.Exception __ex)
@@ -181,7 +181,6 @@ partial void ProcessAddFundsResponseContent(
181181
try
182182
{
183183
__response.EnsureSuccessStatusCode();
184-
185184
var __content = await __response.Content.ReadAsStringAsync(
186185
#if NET5_0_OR_GREATER
187186
cancellationToken

src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.AnthropicMessages.g.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ partial void ProcessAnthropicMessagesResponseContent(
105105
__httpRequest.Headers.TryAddWithoutValidation("x-deepinfra-source", xDeepinfraSource.ToString());
106106
}
107107

108-
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
108+
var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
109109
var __httpRequestContent = new global::System.Net.Http.StringContent(
110110
content: __httpRequestContentBody,
111111
encoding: global::System.Text.Encoding.UTF8,
@@ -146,13 +146,13 @@ partial void ProcessAnthropicMessagesResponseContent(
146146
if (ReadResponseAsString)
147147
{
148148
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
149-
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
149+
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
150150
}
151151
else
152152
{
153153
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
154154

155-
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
155+
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
156156
}
157157
}
158158
catch (global::System.Exception __ex)
@@ -217,7 +217,6 @@ partial void ProcessAnthropicMessagesResponseContent(
217217
try
218218
{
219219
__response.EnsureSuccessStatusCode();
220-
221220
var __content = await __response.Content.ReadAsStringAsync(
222221
#if NET5_0_OR_GREATER
223222
cancellationToken

src/libs/DeepInfra/Generated/DeepInfra.DeepInfraClient.AnthropicMessagesCountTokens.g.cs

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ partial void ProcessAnthropicMessagesCountTokensResponseContent(
7878
__httpRequest.Headers.TryAddWithoutValidation("x-api-key", xApiKey.ToString());
7979
}
8080

81-
var __httpRequestContentBody = request.ToJson(JsonSerializerContext);
81+
var __httpRequestContentBody = request.ToJson(JsonSerializerOptions);
8282
var __httpRequestContent = new global::System.Net.Http.StringContent(
8383
content: __httpRequestContentBody,
8484
encoding: global::System.Text.Encoding.UTF8,
@@ -116,13 +116,13 @@ partial void ProcessAnthropicMessagesCountTokensResponseContent(
116116
if (ReadResponseAsString)
117117
{
118118
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
119-
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
119+
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
120120
}
121121
else
122122
{
123123
__content_422 = await __response.Content.ReadAsStringAsync(cancellationToken).ConfigureAwait(false);
124124

125-
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerContext);
125+
__value_422 = global::DeepInfra.HTTPValidationError.FromJson(__content_422, JsonSerializerOptions);
126126
}
127127
}
128128
catch (global::System.Exception __ex)
@@ -187,7 +187,6 @@ partial void ProcessAnthropicMessagesCountTokensResponseContent(
187187
try
188188
{
189189
__response.EnsureSuccessStatusCode();
190-
191190
var __content = await __response.Content.ReadAsStringAsync(
192191
#if NET5_0_OR_GREATER
193192
cancellationToken

0 commit comments

Comments
 (0)