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 @@ -148,7 +148,7 @@ partial void ProcessGenaiImageInpaintingGetresultResponseContent(
PrepareGenaiImageInpaintingGetresultRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
inferenceId: inferenceId);
inferenceId: inferenceId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ partial void ProcessGenaiText2audioGetresultResponseContent(
PrepareGenaiText2audioGetresultRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
inferenceId: inferenceId);
inferenceId: inferenceId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ partial void ProcessGenaiGenerateLogoGetresultResponseContent(
PrepareGenaiGenerateLogoGetresultRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
inferenceId: inferenceId);
inferenceId: inferenceId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ partial void ProcessGenaiText2imageGetresultResponseContent(
PrepareGenaiText2imageGetresultRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
inferenceId: inferenceId);
inferenceId: inferenceId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ partial void ProcessGenaiText2stickerGetresultResponseContent(
PrepareGenaiText2stickerGetresultRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
inferenceId: inferenceId);
inferenceId: inferenceId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ partial void ProcessGenaiText2videoGetresultResponseContent(
PrepareGenaiText2videoGetresultRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
inferenceId: inferenceId);
inferenceId: inferenceId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,34 @@ partial void ProcessImageCarsClassifierResponseContent(
{

var __contentImage = new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty<byte>());
__contentImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.Imagename is null
? "application/octet-stream"
: (global::System.IO.Path.GetExtension(request.Imagename) ?? string.Empty).ToLowerInvariant() switch
{
".aac" => "audio/aac",
".flac" => "audio/flac",
".gif" => "image/gif",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".json" => "application/json",
".m4a" => "audio/mp4",
".mp3" => "audio/mpeg",
".mp4" => "video/mp4",
".mpeg" => "audio/mpeg",
".mpga" => "audio/mpeg",
".oga" => "audio/ogg",
".ogg" => "audio/ogg",
".opus" => "audio/ogg",
".pdf" => "application/pdf",
".png" => "image/png",
".txt" => "text/plain",
".wav" => "audio/wav",
".weba" => "audio/webm",
".webm" => "video/webm",
".webp" => "image/webp",
_ => "application/octet-stream",
});
__httpRequestContent.Add(
content: __contentImage,
name: "\"image\"",
Expand All @@ -162,14 +190,14 @@ partial void ProcessImageCarsClassifierResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ImageUrl}"),
content: new global::System.Net.Http.StringContent(request.ImageUrl ?? string.Empty),
name: "\"image_url\"");
}
if (request.ImageId != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ImageId}"),
content: new global::System.Net.Http.StringContent(request.ImageId ?? string.Empty),
name: "\"image_id\"");
}
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,34 @@ partial void ProcessImageDescriberResponseContent(
{

var __contentImage = new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty<byte>());
__contentImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.Imagename is null
? "application/octet-stream"
: (global::System.IO.Path.GetExtension(request.Imagename) ?? string.Empty).ToLowerInvariant() switch
{
".aac" => "audio/aac",
".flac" => "audio/flac",
".gif" => "image/gif",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".json" => "application/json",
".m4a" => "audio/mp4",
".mp3" => "audio/mpeg",
".mp4" => "video/mp4",
".mpeg" => "audio/mpeg",
".mpga" => "audio/mpeg",
".oga" => "audio/ogg",
".ogg" => "audio/ogg",
".opus" => "audio/ogg",
".pdf" => "application/pdf",
".png" => "image/png",
".txt" => "text/plain",
".wav" => "audio/wav",
".weba" => "audio/webm",
".webm" => "video/webm",
".webp" => "image/webp",
_ => "application/octet-stream",
});
__httpRequestContent.Add(
content: __contentImage,
name: "\"image\"",
Expand All @@ -160,14 +188,14 @@ partial void ProcessImageDescriberResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ImageUrl}"),
content: new global::System.Net.Http.StringContent(request.ImageUrl ?? string.Empty),
name: "\"image_url\"");
}
if (request.ImageId != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ImageId}"),
content: new global::System.Net.Http.StringContent(request.ImageId ?? string.Empty),
name: "\"image_id\"");
}
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,34 @@ partial void ProcessImageExtractColorsResponseContent(
{

var __contentImage = new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty<byte>());
__contentImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.Imagename is null
? "application/octet-stream"
: (global::System.IO.Path.GetExtension(request.Imagename) ?? string.Empty).ToLowerInvariant() switch
{
".aac" => "audio/aac",
".flac" => "audio/flac",
".gif" => "image/gif",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".json" => "application/json",
".m4a" => "audio/mp4",
".mp3" => "audio/mpeg",
".mp4" => "video/mp4",
".mpeg" => "audio/mpeg",
".mpga" => "audio/mpeg",
".oga" => "audio/ogg",
".ogg" => "audio/ogg",
".opus" => "audio/ogg",
".pdf" => "application/pdf",
".png" => "image/png",
".txt" => "text/plain",
".wav" => "audio/wav",
".weba" => "audio/webm",
".webm" => "video/webm",
".webp" => "image/webp",
_ => "application/octet-stream",
});
__httpRequestContent.Add(
content: __contentImage,
name: "\"image\"",
Expand All @@ -162,14 +190,14 @@ partial void ProcessImageExtractColorsResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ImageUrl}"),
content: new global::System.Net.Http.StringContent(request.ImageUrl ?? string.Empty),
name: "\"image_url\"");
}
if (request.ImageId != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ImageId}"),
content: new global::System.Net.Http.StringContent(request.ImageId ?? string.Empty),
name: "\"image_id\"");
}
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,34 @@ partial void ProcessImageTaggingResponseContent(
{

var __contentImage = new global::System.Net.Http.ByteArrayContent(request.Image ?? global::System.Array.Empty<byte>());
__contentImage.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.Imagename is null
? "application/octet-stream"
: (global::System.IO.Path.GetExtension(request.Imagename) ?? string.Empty).ToLowerInvariant() switch
{
".aac" => "audio/aac",
".flac" => "audio/flac",
".gif" => "image/gif",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".json" => "application/json",
".m4a" => "audio/mp4",
".mp3" => "audio/mpeg",
".mp4" => "video/mp4",
".mpeg" => "audio/mpeg",
".mpga" => "audio/mpeg",
".oga" => "audio/ogg",
".ogg" => "audio/ogg",
".opus" => "audio/ogg",
".pdf" => "application/pdf",
".png" => "image/png",
".txt" => "text/plain",
".wav" => "audio/wav",
".weba" => "audio/webm",
".webm" => "video/webm",
".webp" => "image/webp",
_ => "application/octet-stream",
});
__httpRequestContent.Add(
content: __contentImage,
name: "\"image\"",
Expand All @@ -160,14 +188,14 @@ partial void ProcessImageTaggingResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ImageUrl}"),
content: new global::System.Net.Http.StringContent(request.ImageUrl ?? string.Empty),
name: "\"image_url\"");
}
if (request.ImageId != default)
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.ImageId}"),
content: new global::System.Net.Http.StringContent(request.ImageId ?? string.Empty),
name: "\"image_id\"");
}
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,34 @@ partial void ProcessImageDesignImportResponseContent(
{

var __contentFile = new global::System.Net.Http.ByteArrayContent(request.File ?? global::System.Array.Empty<byte>());
__contentFile.Headers.ContentType = new global::System.Net.Http.Headers.MediaTypeHeaderValue(
request.Filename is null
? "application/octet-stream"
: (global::System.IO.Path.GetExtension(request.Filename) ?? string.Empty).ToLowerInvariant() switch
{
".aac" => "audio/aac",
".flac" => "audio/flac",
".gif" => "image/gif",
".jpeg" => "image/jpeg",
".jpg" => "image/jpeg",
".json" => "application/json",
".m4a" => "audio/mp4",
".mp3" => "audio/mpeg",
".mp4" => "video/mp4",
".mpeg" => "audio/mpeg",
".mpga" => "audio/mpeg",
".oga" => "audio/ogg",
".ogg" => "audio/ogg",
".opus" => "audio/ogg",
".pdf" => "application/pdf",
".png" => "image/png",
".txt" => "text/plain",
".wav" => "audio/wav",
".weba" => "audio/webm",
".webm" => "video/webm",
".webp" => "image/webp",
_ => "application/octet-stream",
});
__httpRequestContent.Add(
content: __contentFile,
name: "\"file\"",
Expand All @@ -168,7 +196,7 @@ partial void ProcessImageDesignImportResponseContent(
{

__httpRequestContent.Add(
content: new global::System.Net.Http.StringContent($"{request.FileUrl}"),
content: new global::System.Net.Http.StringContent(request.FileUrl ?? string.Empty),
name: "\"file_url\"");
}
__httpRequest.Content = __httpRequestContent;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ partial void ProcessImageDesignImportGetresultResponseContent(
PrepareImageDesignImportGetresultRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
transactionId: transactionId);
transactionId: transactionId!);

return __httpRequest;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ partial void ProcessImageUltraUpscaleGetresultResponseContent(
PrepareImageUltraUpscaleGetresultRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
transactionId: transactionId);
transactionId: transactionId!);

return __httpRequest;
}
Expand Down
Loading