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
4 changes: 2 additions & 2 deletions src/libs/Rime/Generated/Rime.AutoSDKHttpResponse.g.cs
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
20 changes: 10 additions & 10 deletions src/libs/Rime/Generated/Rime.TextToSpeechClient.CreateTts.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ partial void ProcessCreateTtsResponseContent(
pathTemplate: "\"/v1/rime-tts\"",
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 @@ -226,7 +226,7 @@ partial void ProcessCreateTtsResponseContent(
pathTemplate: "\"/v1/rime-tts\"",
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 @@ -267,7 +267,7 @@ partial void ProcessCreateTtsResponseContent(
pathTemplate: "\"/v1/rime-tts\"",
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 @@ -315,7 +315,7 @@ partial void ProcessCreateTtsResponseContent(
pathTemplate: "\"/v1/rime-tts\"",
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 @@ -337,7 +337,7 @@ partial void ProcessCreateTtsResponseContent(
pathTemplate: "\"/v1/rime-tts\"",
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 @@ -633,7 +633,7 @@ partial void ProcessCreateTtsResponseContent(
pathTemplate: "\"/v1/rime-tts\"",
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 @@ -667,7 +667,7 @@ partial void ProcessCreateTtsResponseContent(
pathTemplate: "\"/v1/rime-tts\"",
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 @@ -708,7 +708,7 @@ partial void ProcessCreateTtsResponseContent(
pathTemplate: "\"/v1/rime-tts\"",
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 @@ -756,7 +756,7 @@ partial void ProcessCreateTtsResponseContent(
pathTemplate: "\"/v1/rime-tts\"",
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 @@ -778,7 +778,7 @@ partial void ProcessCreateTtsResponseContent(
pathTemplate: "\"/v1/rime-tts\"",
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
10 changes: 5 additions & 5 deletions src/libs/Rime/Generated/Rime.VoicesClient.ListVoiceDetails.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ partial void ProcessListVoiceDetailsResponseContent(
pathTemplate: "\"/data/voices/voice_details.json\"",
httpMethod: "GET",
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 @@ -198,7 +198,7 @@ partial void ProcessListVoiceDetailsResponseContent(
pathTemplate: "\"/data/voices/voice_details.json\"",
httpMethod: "GET",
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 @@ -239,7 +239,7 @@ partial void ProcessListVoiceDetailsResponseContent(
pathTemplate: "\"/data/voices/voice_details.json\"",
httpMethod: "GET",
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 @@ -287,7 +287,7 @@ partial void ProcessListVoiceDetailsResponseContent(
pathTemplate: "\"/data/voices/voice_details.json\"",
httpMethod: "GET",
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 @@ -309,7 +309,7 @@ partial void ProcessListVoiceDetailsResponseContent(
pathTemplate: "\"/data/voices/voice_details.json\"",
httpMethod: "GET",
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
10 changes: 5 additions & 5 deletions src/libs/Rime/Generated/Rime.VoicesClient.ListVoices.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ partial void ProcessListVoicesResponseContent(
pathTemplate: "\"/data/voices/all-v2.json\"",
httpMethod: "GET",
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 @@ -196,7 +196,7 @@ partial void ProcessListVoicesResponseContent(
pathTemplate: "\"/data/voices/all-v2.json\"",
httpMethod: "GET",
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 @@ -237,7 +237,7 @@ partial void ProcessListVoicesResponseContent(
pathTemplate: "\"/data/voices/all-v2.json\"",
httpMethod: "GET",
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 @@ -285,7 +285,7 @@ partial void ProcessListVoicesResponseContent(
pathTemplate: "\"/data/voices/all-v2.json\"",
httpMethod: "GET",
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 @@ -307,7 +307,7 @@ partial void ProcessListVoicesResponseContent(
pathTemplate: "\"/data/voices/all-v2.json\"",
httpMethod: "GET",
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
Loading