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 @@ -164,9 +164,9 @@ public static class AutoSDKConditionalRequests
{
send = send ?? throw new global::System.ArgumentNullException(nameof(send));
requestOptions = CloneRequestOptions(requestOptions);
if (!string.IsNullOrWhiteSpace(entityTag))
if (entityTag is { } nonEmptyEntityTag && !string.IsNullOrWhiteSpace(nonEmptyEntityTag))
{
requestOptions.Headers["If-None-Match"] = entityTag!;
requestOptions.Headers["If-None-Match"] = nonEmptyEntityTag;
}

try
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ partial void ProcessGenerateFluxDevResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -214,7 +214,7 @@ partial void ProcessGenerateFluxDevResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
Expand Down Expand Up @@ -255,7 +255,7 @@ partial void ProcessGenerateFluxDevResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -303,7 +303,7 @@ partial void ProcessGenerateFluxDevResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand All @@ -325,7 +325,7 @@ partial void ProcessGenerateFluxDevResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ partial void ProcessGenerateFluxDevFastResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev-fast\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -214,7 +214,7 @@ partial void ProcessGenerateFluxDevFastResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev-fast\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
Expand Down Expand Up @@ -255,7 +255,7 @@ partial void ProcessGenerateFluxDevFastResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev-fast\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -303,7 +303,7 @@ partial void ProcessGenerateFluxDevFastResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev-fast\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand All @@ -325,7 +325,7 @@ partial void ProcessGenerateFluxDevFastResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev-fast\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ partial void ProcessGenerateFluxDevUltraResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev-ultra\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -214,7 +214,7 @@ partial void ProcessGenerateFluxDevUltraResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev-ultra\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
Expand Down Expand Up @@ -255,7 +255,7 @@ partial void ProcessGenerateFluxDevUltraResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev-ultra\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -303,7 +303,7 @@ partial void ProcessGenerateFluxDevUltraResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev-ultra\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand All @@ -325,7 +325,7 @@ partial void ProcessGenerateFluxDevUltraResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-dev-ultra\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ partial void ProcessGenerateFluxSchnellResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-schnell\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -214,7 +214,7 @@ partial void ProcessGenerateFluxSchnellResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-schnell\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: null,
exception: __exception,
clientOptions: Options,
Expand Down Expand Up @@ -255,7 +255,7 @@ partial void ProcessGenerateFluxSchnellResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-schnell\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down Expand Up @@ -303,7 +303,7 @@ partial void ProcessGenerateFluxSchnellResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-schnell\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand All @@ -325,7 +325,7 @@ partial void ProcessGenerateFluxSchnellResponseContent(
pathTemplate: "\"/wavespeed-ai/flux-schnell\"",
httpMethod: "POST",
baseUri: BaseUri,
request: __httpRequest!,
request: __httpRequest ?? throw new global::System.InvalidOperationException("The HTTP request was not created before invoking a request hook."),
response: __response,
exception: null,
clientOptions: Options,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::WaveSpeedAI.ApiResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::WaveSpeedAI.ApiResponse?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::WaveSpeedAI.ApiResponse).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Api!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickApi(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand All @@ -88,7 +88,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::WaveSpeedAI.PredictionListResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::WaveSpeedAI.PredictionListResponseVariant2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::WaveSpeedAI.PredictionListResponseVariant2).Name}");
var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PredictionListResponseVariant2!, typeInfo);
var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickPredictionListResponseVariant2(), typeInfo);
if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::WaveSpeedAI.ApiResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::WaveSpeedAI.ApiResponse?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::WaveSpeedAI.ApiResponse).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Api!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickApi(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand All @@ -88,7 +88,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::WaveSpeedAI.TaskResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::WaveSpeedAI.TaskResponseVariant2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::WaveSpeedAI.TaskResponseVariant2).Name}");
var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.TaskResponseVariant2!, typeInfo);
var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickTaskResponseVariant2(), typeInfo);
if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::WaveSpeedAI.ApiResponse), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::WaveSpeedAI.ApiResponse?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::WaveSpeedAI.ApiResponse).Name}");
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.Api!, typeInfo);
var __element0 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickApi(), typeInfo);
if (__element0.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand All @@ -88,7 +88,7 @@ public override void Write(
{
var typeInfo = typeInfoResolver.GetTypeInfo(typeof(global::WaveSpeedAI.UploadResponseVariant2), options) as global::System.Text.Json.Serialization.Metadata.JsonTypeInfo<global::WaveSpeedAI.UploadResponseVariant2?> ??
throw new global::System.InvalidOperationException($"Cannot get type info for {typeof(global::WaveSpeedAI.UploadResponseVariant2).Name}");
var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.UploadResponseVariant2!, typeInfo);
var __element1 = global::System.Text.Json.JsonSerializer.SerializeToElement(value.PickUploadResponseVariant2(), typeInfo);
if (__element1.ValueKind != global::System.Text.Json.JsonValueKind.Object)
{
throw new global::System.Text.Json.JsonException("AllOf values must serialize as JSON objects.");
Expand Down
Loading
Loading