From cb9e95ec2b6fa22d3af157a6f5da61dafa3269e0 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Wed, 7 Oct 2026 09:46:48 +0000 Subject: [PATCH] feat: Updated OpenAPI spec --- ...lestAI.Electron.JsonSerializerContext.g.cs | 18 ++++- .../SmallestAI.ElectronClient.Complete.g.cs | 18 +++++ .../SmallestAI.IElectronClient.Complete.g.cs | 6 ++ ...mpletionsPostParametersXExpireContent.g.cs | 53 ++++++++++++++ ...sPostParametersXExpireContentNullable.g.cs | 60 ++++++++++++++++ .../SmallestAI.JsonSerializerContext.g.cs | 5 ++ ...SmallestAI.JsonSerializerContextTypes.g.cs | 70 ++++++++++--------- ...mpletionsPostParametersXExpireContent.g.cs | 45 ++++++++++++ src/libs/SmallestAI/openapi.yaml | 24 ++++++- 9 files changed, 262 insertions(+), 37 deletions(-) create mode 100644 src/libs/SmallestAI/Generated/SmallestAI.JsonConverters.WavesV1ChatCompletionsPostParametersXExpireContent.g.cs create mode 100644 src/libs/SmallestAI/Generated/SmallestAI.JsonConverters.WavesV1ChatCompletionsPostParametersXExpireContentNullable.g.cs create mode 100644 src/libs/SmallestAI/Generated/SmallestAI.Models.WavesV1ChatCompletionsPostParametersXExpireContent.g.cs diff --git a/src/libs/SmallestAI/Generated/SmallestAI.Electron.JsonSerializerContext.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.Electron.JsonSerializerContext.g.cs index 1b85315..1b9d515 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.Electron.JsonSerializerContext.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.Electron.JsonSerializerContext.g.cs @@ -19,6 +19,7 @@ namespace SmallestAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.Dictionary))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent), TypeInfoPropertyName = "WavesV1ChatCompletionsPostParametersXExpireContent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.ElectronToolCallType), TypeInfoPropertyName = "ElectronToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.ElectronToolCallFunction))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.ElectronToolCall))] @@ -51,6 +52,7 @@ namespace SmallestAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(int?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(bool?))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(double?))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent?), TypeInfoPropertyName = "NullableWavesV1ChatCompletionsPostParametersXExpireContent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.ElectronToolCallType?), TypeInfoPropertyName = "NullableElectronToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.ChatCompletionRequestToolChoice0?), TypeInfoPropertyName = "NullableChatCompletionRequestToolChoice02")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.ChatCompletionRequestToolChoiceOneOf1Type?), TypeInfoPropertyName = "NullableChatCompletionRequestToolChoiceOneOf1Type2")] @@ -135,7 +137,11 @@ private sealed class LazyEnumJsonConverterFactory : global::System.Text.Json.Ser public override bool CanConvert(global::System.Type typeToConvert) { return - typeToConvert == typeof(global::SmallestAI.ElectronToolCallType) + typeToConvert == typeof(global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent) + + || typeToConvert == typeof(global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent?) + + || typeToConvert == typeof(global::SmallestAI.ElectronToolCallType) || typeToConvert == typeof(global::SmallestAI.ElectronToolCallType?) @@ -164,6 +170,16 @@ public override bool CanConvert(global::System.Type typeToConvert) global::System.Type typeToConvert, global::System.Text.Json.JsonSerializerOptions options) { + if (typeToConvert == typeof(global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent)) + { + return new global::SmallestAI.JsonConverters.WavesV1ChatCompletionsPostParametersXExpireContentJsonConverter(); + } + + if (typeToConvert == typeof(global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent?)) + { + return new global::SmallestAI.JsonConverters.WavesV1ChatCompletionsPostParametersXExpireContentNullableJsonConverter(); + } + if (typeToConvert == typeof(global::SmallestAI.ElectronToolCallType)) { return new global::SmallestAI.JsonConverters.ElectronToolCallTypeJsonConverter(); diff --git a/src/libs/SmallestAI/Generated/SmallestAI.ElectronClient.Complete.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.ElectronClient.Complete.g.cs index a6eaa63..8ba2960 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.ElectronClient.Complete.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.ElectronClient.Complete.g.cs @@ -27,10 +27,12 @@ public partial class ElectronClient }; partial void PrepareCompleteArguments( global::System.Net.Http.HttpClient httpClient, + ref global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent? xExpireContent, global::SmallestAI.ChatCompletionRequest request); partial void PrepareCompleteRequest( global::System.Net.Http.HttpClient httpClient, global::System.Net.Http.HttpRequestMessage httpRequestMessage, + global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent? xExpireContent, global::SmallestAI.ChatCompletionRequest request); partial void ProcessCompleteResponse( global::System.Net.Http.HttpClient httpClient, @@ -119,6 +121,7 @@ partial void ProcessCompleteResponseContent( /// - **`n > 1` and `prompt_logprobs` are rejected.** Use multiple requests if you need parallel completions.
/// - **Auth header is `Authorization: Bearer $SMALLEST_API_KEY`** — get the key from the [Smallest AI Console](https://app.smallest.ai/dashboard/api-keys). /// + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -126,12 +129,14 @@ partial void ProcessCompleteResponseContent( public async global::System.Threading.Tasks.Task CompleteAsync( global::SmallestAI.ChatCompletionRequest request, + global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent? xExpireContent = default, global::SmallestAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { var __response = await CompleteAsResponseAsync( request: request, + xExpireContent: xExpireContent, requestOptions: requestOptions, cancellationToken: cancellationToken ).ConfigureAwait(false); @@ -216,6 +221,7 @@ partial void ProcessCompleteResponseContent( /// - **`n > 1` and `prompt_logprobs` are rejected.** Use multiple requests if you need parallel completions.
/// - **Auth header is `Authorization: Bearer $SMALLEST_API_KEY`** — get the key from the [Smallest AI Console](https://app.smallest.ai/dashboard/api-keys). /// + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -223,6 +229,7 @@ partial void ProcessCompleteResponseContent( public async global::System.Threading.Tasks.Task> CompleteAsResponseAsync( global::SmallestAI.ChatCompletionRequest request, + global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent? xExpireContent = default, global::SmallestAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default) { @@ -232,6 +239,7 @@ partial void ProcessCompleteResponseContent( client: HttpClient); PrepareCompleteArguments( httpClient: HttpClient, + xExpireContent: ref xExpireContent, request: request); @@ -289,6 +297,12 @@ partial void ProcessCompleteResponseContent( __httpRequest.Headers.Add(__authorization.Name, __authorization.Value); } } + + if (xExpireContent != default) + { + __httpRequest.Headers.TryAddWithoutValidation("x-expire-content", xExpireContent?.ToValueString() ?? string.Empty); + } + var __httpRequestContentBody = request.ToJson(JsonSerializerContext); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, @@ -306,6 +320,7 @@ partial void ProcessCompleteResponseContent( PrepareCompleteRequest( httpClient: HttpClient, httpRequestMessage: __httpRequest, + xExpireContent: xExpireContent, request: request); return __httpRequest; @@ -881,6 +896,7 @@ partial void ProcessCompleteResponseContent( /// - **`n > 1` and `prompt_logprobs` are rejected.** Use multiple requests if you need parallel completions.
/// - **Auth header is `Authorization: Bearer $SMALLEST_API_KEY`** — get the key from the [Smallest AI Console](https://app.smallest.ai/dashboard/api-keys). /// + /// /// /// Model ID. Currently only `"electron"`. /// @@ -942,6 +958,7 @@ partial void ProcessCompleteResponseContent( public async global::System.Threading.Tasks.Task CompleteAsync( string model, global::System.Collections.Generic.IList messages, + global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent? xExpireContent = default, double? temperature = default, double? topP = default, int? maxTokens = default, @@ -984,6 +1001,7 @@ partial void ProcessCompleteResponseContent( }; return await CompleteAsync( + xExpireContent: xExpireContent, request: __request, requestOptions: requestOptions, cancellationToken: cancellationToken).ConfigureAwait(false); diff --git a/src/libs/SmallestAI/Generated/SmallestAI.IElectronClient.Complete.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.IElectronClient.Complete.g.cs index 13d77e4..266f6e2 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.IElectronClient.Complete.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.IElectronClient.Complete.g.cs @@ -82,6 +82,7 @@ public partial interface IElectronClient /// - **`n > 1` and `prompt_logprobs` are rejected.** Use multiple requests if you need parallel completions.
/// - **Auth header is `Authorization: Bearer $SMALLEST_API_KEY`** — get the key from the [Smallest AI Console](https://app.smallest.ai/dashboard/api-keys). /// + /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -89,6 +90,7 @@ public partial interface IElectronClient global::System.Threading.Tasks.Task CompleteAsync( global::SmallestAI.ChatCompletionRequest request, + global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent? xExpireContent = default, global::SmallestAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -169,6 +171,7 @@ public partial interface IElectronClient /// - **`n > 1` and `prompt_logprobs` are rejected.** Use multiple requests if you need parallel completions.
/// - **Auth header is `Authorization: Bearer $SMALLEST_API_KEY`** — get the key from the [Smallest AI Console](https://app.smallest.ai/dashboard/api-keys). ///
+ /// /// /// Per-request overrides such as headers, query parameters, timeout, retries, and response buffering. /// The token to cancel the operation with @@ -176,6 +179,7 @@ public partial interface IElectronClient global::System.Threading.Tasks.Task> CompleteAsResponseAsync( global::SmallestAI.ChatCompletionRequest request, + global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent? xExpireContent = default, global::SmallestAI.AutoSDKRequestOptions? requestOptions = default, global::System.Threading.CancellationToken cancellationToken = default); /// @@ -256,6 +260,7 @@ public partial interface IElectronClient /// - **`n > 1` and `prompt_logprobs` are rejected.** Use multiple requests if you need parallel completions.
/// - **Auth header is `Authorization: Bearer $SMALLEST_API_KEY`** — get the key from the [Smallest AI Console](https://app.smallest.ai/dashboard/api-keys). ///
+ /// /// /// Model ID. Currently only `"electron"`. /// @@ -317,6 +322,7 @@ public partial interface IElectronClient global::System.Threading.Tasks.Task CompleteAsync( string model, global::System.Collections.Generic.IList messages, + global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent? xExpireContent = default, double? temperature = default, double? topP = default, int? maxTokens = default, diff --git a/src/libs/SmallestAI/Generated/SmallestAI.JsonConverters.WavesV1ChatCompletionsPostParametersXExpireContent.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.JsonConverters.WavesV1ChatCompletionsPostParametersXExpireContent.g.cs new file mode 100644 index 0000000..494603b --- /dev/null +++ b/src/libs/SmallestAI/Generated/SmallestAI.JsonConverters.WavesV1ChatCompletionsPostParametersXExpireContent.g.cs @@ -0,0 +1,53 @@ +#nullable enable + +namespace SmallestAI.JsonConverters +{ + /// + public sealed class WavesV1ChatCompletionsPostParametersXExpireContentJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContentExtensions.ToEnum(stringValue) ?? default; + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + writer.WriteStringValue(global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContentExtensions.ToValueString(value)); + } + } +} diff --git a/src/libs/SmallestAI/Generated/SmallestAI.JsonConverters.WavesV1ChatCompletionsPostParametersXExpireContentNullable.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.JsonConverters.WavesV1ChatCompletionsPostParametersXExpireContentNullable.g.cs new file mode 100644 index 0000000..89dc9cb --- /dev/null +++ b/src/libs/SmallestAI/Generated/SmallestAI.JsonConverters.WavesV1ChatCompletionsPostParametersXExpireContentNullable.g.cs @@ -0,0 +1,60 @@ +#nullable enable + +namespace SmallestAI.JsonConverters +{ + /// + public sealed class WavesV1ChatCompletionsPostParametersXExpireContentNullableJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent? Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + switch (reader.TokenType) + { + case global::System.Text.Json.JsonTokenType.String: + { + var stringValue = reader.GetString(); + if (stringValue != null) + { + return global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContentExtensions.ToEnum(stringValue); + } + + break; + } + case global::System.Text.Json.JsonTokenType.Number: + { + var numValue = reader.GetInt32(); + return (global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent)numValue; + } + case global::System.Text.Json.JsonTokenType.Null: + { + return default(global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent?); + } + default: + throw new global::System.ArgumentOutOfRangeException(nameof(reader)); + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent? value, + global::System.Text.Json.JsonSerializerOptions options) + { + writer = writer ?? throw new global::System.ArgumentNullException(nameof(writer)); + + if (value == null) + { + writer.WriteNullValue(); + } + else + { + writer.WriteStringValue(global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContentExtensions.ToValueString(value.Value)); + } + } + } +} diff --git a/src/libs/SmallestAI/Generated/SmallestAI.JsonSerializerContext.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.JsonSerializerContext.g.cs index df44ac1..9933689 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.JsonSerializerContext.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.JsonSerializerContext.g.cs @@ -127,6 +127,10 @@ namespace SmallestAI typeof(global::SmallestAI.JsonConverters.SttErrorResponseStatusNullableJsonConverter), + typeof(global::SmallestAI.JsonConverters.WavesV1ChatCompletionsPostParametersXExpireContentJsonConverter), + + typeof(global::SmallestAI.JsonConverters.WavesV1ChatCompletionsPostParametersXExpireContentNullableJsonConverter), + typeof(global::SmallestAI.JsonConverters.ElectronToolCallTypeJsonConverter), typeof(global::SmallestAI.JsonConverters.ElectronToolCallTypeNullableJsonConverter), @@ -249,6 +253,7 @@ namespace SmallestAI [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::System.Collections.Generic.IList))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.SttErrorResponseErrors), TypeInfoPropertyName = "SttErrorResponseErrors2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.SttErrorResponse))] + [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent), TypeInfoPropertyName = "WavesV1ChatCompletionsPostParametersXExpireContent2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.ElectronToolCallType), TypeInfoPropertyName = "ElectronToolCallType2")] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.ElectronToolCallFunction))] [global::System.Text.Json.Serialization.JsonSerializable(typeof(global::SmallestAI.ElectronToolCall))] diff --git a/src/libs/SmallestAI/Generated/SmallestAI.JsonSerializerContextTypes.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.JsonSerializerContextTypes.g.cs index 83b07c0..6fbe9be 100644 --- a/src/libs/SmallestAI/Generated/SmallestAI.JsonSerializerContextTypes.g.cs +++ b/src/libs/SmallestAI/Generated/SmallestAI.JsonSerializerContextTypes.g.cs @@ -373,135 +373,139 @@ public sealed partial class JsonSerializerContextTypes /// /// /// - public global::SmallestAI.ElectronToolCallType? Type85 { get; set; } + public global::SmallestAI.WavesV1ChatCompletionsPostParametersXExpireContent? Type85 { get; set; } /// /// /// - public global::SmallestAI.ElectronToolCallFunction? Type86 { get; set; } + public global::SmallestAI.ElectronToolCallType? Type86 { get; set; } /// /// /// - public global::SmallestAI.ElectronToolCall? Type87 { get; set; } + public global::SmallestAI.ElectronToolCallFunction? Type87 { get; set; } /// /// /// - public global::SmallestAI.ElectronMessage? Type88 { get; set; } + public global::SmallestAI.ElectronToolCall? Type88 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type89 { get; set; } + public global::SmallestAI.ElectronMessage? Type89 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletionRequestStreamOptions? Type90 { get; set; } + public global::System.Collections.Generic.IList? Type90 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletionRequestToolChoice0? Type91 { get; set; } + public global::SmallestAI.ChatCompletionRequestStreamOptions? Type91 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletionRequestToolChoiceOneOf1Type? Type92 { get; set; } + public global::SmallestAI.ChatCompletionRequestToolChoice0? Type92 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletionRequestToolChoiceOneOf1Function? Type93 { get; set; } + public global::SmallestAI.ChatCompletionRequestToolChoiceOneOf1Type? Type93 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletionRequestToolChoice1? Type94 { get; set; } + public global::SmallestAI.ChatCompletionRequestToolChoiceOneOf1Function? Type94 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletionRequestToolChoice? Type95 { get; set; } + public global::SmallestAI.ChatCompletionRequestToolChoice1? Type95 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletionRequestResponseFormatType? Type96 { get; set; } + public global::SmallestAI.ChatCompletionRequestToolChoice? Type96 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletionRequestResponseFormat? Type97 { get; set; } + public global::SmallestAI.ChatCompletionRequestResponseFormatType? Type97 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletionRequestStop? Type98 { get; set; } + public global::SmallestAI.ChatCompletionRequestResponseFormat? Type98 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletionRequest? Type99 { get; set; } + public global::SmallestAI.ChatCompletionRequestStop? Type99 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type100 { get; set; } + public global::SmallestAI.ChatCompletionRequest? Type100 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type101 { get; set; } + public global::System.Collections.Generic.IList? Type101 { get; set; } /// /// /// - public object? Type102 { get; set; } + public global::System.Collections.Generic.IList? Type102 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletionObject? Type103 { get; set; } + public object? Type103 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletionChoicesItemsFinishReason? Type104 { get; set; } + public global::SmallestAI.ChatCompletionObject? Type104 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletionChoicesItems? Type105 { get; set; } + public global::SmallestAI.ChatCompletionChoicesItemsFinishReason? Type105 { get; set; } /// /// /// - public global::SmallestAI.UsagePromptTokensDetails? Type106 { get; set; } + public global::SmallestAI.ChatCompletionChoicesItems? Type106 { get; set; } /// /// /// - public global::SmallestAI.Usage? Type107 { get; set; } + public global::SmallestAI.UsagePromptTokensDetails? Type107 { get; set; } /// /// /// - public global::SmallestAI.ChatCompletion? Type108 { get; set; } + public global::SmallestAI.Usage? Type108 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type109 { get; set; } + public global::SmallestAI.ChatCompletion? Type109 { get; set; } /// /// /// - public global::SmallestAI.ErrorErrorDetailsItems? Type110 { get; set; } + public global::System.Collections.Generic.IList? Type110 { get; set; } /// /// /// - public global::SmallestAI.ErrorError? Type111 { get; set; } + public global::SmallestAI.ErrorErrorDetailsItems? Type111 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type112 { get; set; } + public global::SmallestAI.ErrorError? Type112 { get; set; } /// /// /// - public global::SmallestAI.Error? Type113 { get; set; } + public global::System.Collections.Generic.IList? Type113 { get; set; } /// /// /// - public global::SmallestAI.TranscriptionUrlRequest? Type114 { get; set; } + public global::SmallestAI.Error? Type114 { get; set; } /// /// /// - public global::SmallestAI.CreateVoiceCloneRequest? Type115 { get; set; } + public global::SmallestAI.TranscriptionUrlRequest? Type115 { get; set; } /// /// /// - public byte[]? Type116 { get; set; } + public global::SmallestAI.CreateVoiceCloneRequest? Type116 { get; set; } /// /// /// - public global::System.Collections.Generic.IList? Type117 { get; set; } + public byte[]? Type117 { get; set; } + /// + /// + /// + public global::System.Collections.Generic.IList? Type118 { get; set; } /// /// diff --git a/src/libs/SmallestAI/Generated/SmallestAI.Models.WavesV1ChatCompletionsPostParametersXExpireContent.g.cs b/src/libs/SmallestAI/Generated/SmallestAI.Models.WavesV1ChatCompletionsPostParametersXExpireContent.g.cs new file mode 100644 index 0000000..bf48490 --- /dev/null +++ b/src/libs/SmallestAI/Generated/SmallestAI.Models.WavesV1ChatCompletionsPostParametersXExpireContent.g.cs @@ -0,0 +1,45 @@ + +#nullable enable + +namespace SmallestAI +{ + /// + /// + /// + public enum WavesV1ChatCompletionsPostParametersXExpireContent + { + /// + /// + /// + True, + } + + /// + /// Enum extensions to do fast conversions without the reflection. + /// + public static class WavesV1ChatCompletionsPostParametersXExpireContentExtensions + { + /// + /// Converts an enum to a string. + /// + public static string ToValueString(this WavesV1ChatCompletionsPostParametersXExpireContent value) + { + return value switch + { + WavesV1ChatCompletionsPostParametersXExpireContent.True => "true", + _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), + }; + } + /// + /// Converts an string to a enum. + /// + public static WavesV1ChatCompletionsPostParametersXExpireContent? ToEnum(string value) + { + return value switch + { + "true" => WavesV1ChatCompletionsPostParametersXExpireContent.True, + _ => null, + }; + } + } +} \ No newline at end of file diff --git a/src/libs/SmallestAI/openapi.yaml b/src/libs/SmallestAI/openapi.yaml index d9e5ef6..f67c614 100644 --- a/src/libs/SmallestAI/openapi.yaml +++ b/src/libs/SmallestAI/openapi.yaml @@ -112,7 +112,7 @@ { "name": "x-expire-content", "in": "header", - "description": "**Enterprise plans only.** Opt in if you want this request's content\ndeleted after 7 days. Omit it to retain content, which is the default.\n", + "description": "**Enterprise plans only.** Set to `true` to expire this request's\ncontent. The input text is deleted within 7 days; the usage record\n(credits, character count, model, latency) is kept. Omit the\nheader to keep content. On other plans the header is ignored and\nthe request is processed normally.\nSee [Zero Data Retention](/models/enterprise/zero-data-retention).\n", "required": false, "schema": { "$ref": "#/components/schemas/WavesV1TtsPostParametersXExpireContent" @@ -190,7 +190,7 @@ { "name": "x-expire-content", "in": "header", - "description": "**Enterprise plans only.** Opt in if you want this request's content\ndeleted after 7 days. Omit it to retain content, which is the default.\n", + "description": "**Enterprise plans only.** Set to `true` to expire this request's\ncontent. The input text is deleted within 7 days; the usage record\n(credits, character count, model, latency) is kept. Omit the\nheader to keep content. On other plans the header is ignored and\nthe request is processed normally.\nSee [Zero Data Retention](/models/enterprise/zero-data-retention).\n", "required": false, "schema": { "$ref": "#/components/schemas/WavesV1TtsLivePostParametersXExpireContent" @@ -837,7 +837,7 @@ { "name": "x-expire-content", "in": "header", - "description": "**Enterprise plans only.** Opt in if you want this request's content\ndeleted after 7 days. Omit it to retain content, which is the default.\n", + "description": "**Enterprise plans only.** Set to `true` to expire this request's\ncontent. The uploaded audio and the transcript are deleted within\n7 days; the usage record (duration, model, latency) is kept. Omit\nthe header to keep content. On other plans the header is ignored\nand the request is processed normally.\nSee [Zero Data Retention](/models/enterprise/zero-data-retention).\n", "required": false, "schema": { "$ref": "#/components/schemas/WavesV1SttPostParametersXExpireContent" @@ -946,6 +946,17 @@ "tags": [ "electron" ], + "parameters": [ + { + "name": "x-expire-content", + "in": "header", + "description": "**Enterprise plans only.** Set to `true` to expire this request's\ncontent. Prompts and completions are deleted within 7 days; the\nusage record (token counts, model, latency) is kept. Omit the\nheader to keep content. On other plans the header is ignored and\nthe request is processed normally.\nSee [Zero Data Retention](/models/enterprise/zero-data-retention).\n", + "required": false, + "schema": { + "$ref": "#/components/schemas/WavesV1ChatCompletionsPostParametersXExpireContent" + } + } + ], "responses": { "200": { "description": "Non-streaming: standard OpenAI `chat.completion` object.\n\nStreaming (`stream: true`): `text/event-stream` SSE — each\nevent is a `chat.completion.chunk` delta, terminated by\n`data: [DONE]`.\n", @@ -2300,6 +2311,13 @@ "description": "Error body returned by `POST /waves/v1/stt/`. The shape depends on where the request fails:\n\n- A request with no `Authorization` header returns `{ \"message\": \"Unauthorized: No tokens provided\" }`.\n- Other authentication errors, and plan, credit, and rate-limit errors, return `{ \"error\": \"\" }`.\n- Request validation and transcription errors return `{ \"status\": \"error\", \"message\": \"\" }`, with optional `errors`, `error_code`, `code`, `language`, `region`, and `request_id` fields.\n\nRead `error` first and fall back to `message`. Branch on the HTTP status and on `error_code` / `code` when present, not on the message text.\n", "title": "SttErrorResponse" }, + "WavesV1ChatCompletionsPostParametersXExpireContent": { + "type": "string", + "enum": [ + "true" + ], + "title": "WavesV1ChatCompletionsPostParametersXExpireContent" + }, "ElectronToolCallType": { "type": "string", "enum": [