diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeechAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs
similarity index 95%
rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeechAsStream.g.cs
rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs
index 2a33f554..f19d70a5 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeechAsStream.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateSpeech.g.cs
@@ -5,14 +5,14 @@ namespace tryAGI.OpenAI
{
public partial class AudioClient
{
- partial void PrepareCreateSpeechAsStreamArguments(
+ partial void PrepareCreateSpeechArguments(
global::System.Net.Http.HttpClient httpClient,
global::tryAGI.OpenAI.CreateSpeechRequest request);
- partial void PrepareCreateSpeechAsStreamRequest(
+ partial void PrepareCreateSpeechRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
global::tryAGI.OpenAI.CreateSpeechRequest request);
- partial void ProcessCreateSpeechAsStreamResponse(
+ partial void ProcessCreateSpeechResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
@@ -23,7 +23,7 @@ partial void ProcessCreateSpeechAsStreamResponse(
///
/// The token to cancel the operation with
///
- public async global::System.Collections.Generic.IAsyncEnumerable CreateSpeechAsStreamAsync(
+ public async global::System.Collections.Generic.IAsyncEnumerable CreateSpeechAsync(
global::tryAGI.OpenAI.CreateSpeechRequest request,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
@@ -32,7 +32,7 @@ partial void ProcessCreateSpeechAsStreamResponse(
PrepareArguments(
client: HttpClient);
- PrepareCreateSpeechAsStreamArguments(
+ PrepareCreateSpeechArguments(
httpClient: HttpClient,
request: request);
@@ -73,7 +73,7 @@ partial void ProcessCreateSpeechAsStreamResponse(
PrepareRequest(
client: HttpClient,
request: __httpRequest);
- PrepareCreateSpeechAsStreamRequest(
+ PrepareCreateSpeechRequest(
httpClient: HttpClient,
httpRequestMessage: __httpRequest,
request: request);
@@ -86,7 +86,7 @@ partial void ProcessCreateSpeechAsStreamResponse(
ProcessResponse(
client: HttpClient,
response: __response);
- ProcessCreateSpeechAsStreamResponse(
+ ProcessCreateSpeechResponse(
httpClient: HttpClient,
httpResponseMessage: __response);
@@ -160,7 +160,7 @@ partial void ProcessCreateSpeechAsStreamResponse(
///
/// The token to cancel the operation with
///
- public async global::System.Collections.Generic.IAsyncEnumerable CreateSpeechAsStreamAsync(
+ public async global::System.Collections.Generic.IAsyncEnumerable CreateSpeechAsync(
global::tryAGI.OpenAI.AnyOf model,
string input,
global::tryAGI.OpenAI.VoiceIdsOrCustomVoice voice,
@@ -181,7 +181,7 @@ partial void ProcessCreateSpeechAsStreamResponse(
StreamFormat = streamFormat,
};
- var __enumerable = CreateSpeechAsStreamAsync(
+ var __enumerable = CreateSpeechAsync(
request: __request,
cancellationToken: cancellationToken);
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs
index d4902483..6ca67aed 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscription.g.cs
@@ -36,6 +36,23 @@ partial void ProcessCreateTranscriptionResponseContent(
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ request = new global::tryAGI.OpenAI.CreateTranscriptionRequest
+ {
+ File = request.File,
+ Filename = request.Filename,
+ Model = request.Model,
+ Language = request.Language,
+ Prompt = request.Prompt,
+ ResponseFormat = request.ResponseFormat,
+ Temperature = request.Temperature,
+ Include = request.Include,
+ TimestampGranularities = request.TimestampGranularities,
+ Stream = false,
+ ChunkingStrategy = request.ChunkingStrategy,
+ KnownSpeakerNames = request.KnownSpeakerNames,
+ KnownSpeakerReferences = request.KnownSpeakerReferences,
+ };
PrepareArguments(
client: HttpClient);
PrepareCreateTranscriptionArguments(
@@ -287,7 +304,6 @@ partial void ProcessCreateTranscriptionResponseContent(
/// This option is not available for `gpt-4o-transcribe-diarize`.
/// Default Value: [segment]
///
- ///
///
///
/// Optional list of speaker names that correspond to the audio samples provided in `known_speaker_references[]`. Each entry should be a short identifier (for example `customer` or `agent`). Up to 4 speakers are supported.
@@ -307,7 +323,6 @@ partial void ProcessCreateTranscriptionResponseContent(
double? temperature = default,
global::System.Collections.Generic.IList? include = default,
global::System.Collections.Generic.IList? timestampGranularities = default,
- bool? stream = default,
global::tryAGI.OpenAI.AnyOf? chunkingStrategy = default,
global::System.Collections.Generic.IList? knownSpeakerNames = default,
global::System.Collections.Generic.IList? knownSpeakerReferences = default,
@@ -324,7 +339,7 @@ partial void ProcessCreateTranscriptionResponseContent(
Temperature = temperature,
Include = include,
TimestampGranularities = timestampGranularities,
- Stream = stream,
+ Stream = false,
ChunkingStrategy = chunkingStrategy,
KnownSpeakerNames = knownSpeakerNames,
KnownSpeakerReferences = knownSpeakerReferences,
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs
index c4ad6322..60f717af 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.AudioClient.CreateTranscriptionAsStream.g.cs
@@ -31,6 +31,23 @@ partial void ProcessCreateTranscriptionAsStreamResponse(
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ request = new global::tryAGI.OpenAI.CreateTranscriptionRequest
+ {
+ File = request.File,
+ Filename = request.Filename,
+ Model = request.Model,
+ Language = request.Language,
+ Prompt = request.Prompt,
+ ResponseFormat = request.ResponseFormat,
+ Temperature = request.Temperature,
+ Include = request.Include,
+ TimestampGranularities = request.TimestampGranularities,
+ Stream = true,
+ ChunkingStrategy = request.ChunkingStrategy,
+ KnownSpeakerNames = request.KnownSpeakerNames,
+ KnownSpeakerReferences = request.KnownSpeakerReferences,
+ };
PrepareArguments(
client: HttpClient);
PrepareCreateTranscriptionAsStreamArguments(
@@ -250,7 +267,6 @@ partial void ProcessCreateTranscriptionAsStreamResponse(
/// This option is not available for `gpt-4o-transcribe-diarize`.
/// Default Value: [segment]
///
- ///
///
///
/// Optional list of speaker names that correspond to the audio samples provided in `known_speaker_references[]`. Each entry should be a short identifier (for example `customer` or `agent`). Up to 4 speakers are supported.
@@ -270,7 +286,6 @@ partial void ProcessCreateTranscriptionAsStreamResponse(
double? temperature = default,
global::System.Collections.Generic.IList? include = default,
global::System.Collections.Generic.IList? timestampGranularities = default,
- bool? stream = default,
global::tryAGI.OpenAI.AnyOf? chunkingStrategy = default,
global::System.Collections.Generic.IList? knownSpeakerNames = default,
global::System.Collections.Generic.IList? knownSpeakerReferences = default,
@@ -287,7 +302,7 @@ partial void ProcessCreateTranscriptionAsStreamResponse(
Temperature = temperature,
Include = include,
TimestampGranularities = timestampGranularities,
- Stream = stream,
+ Stream = true,
ChunkingStrategy = chunkingStrategy,
KnownSpeakerNames = knownSpeakerNames,
KnownSpeakerReferences = knownSpeakerReferences,
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeechAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeech.g.cs
similarity index 99%
rename from src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeechAsStream.g.cs
rename to src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeech.g.cs
index a3bd956d..b3fb11c4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeechAsStream.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateSpeech.g.cs
@@ -11,7 +11,7 @@ public partial interface IAudioClient
///
/// The token to cancel the operation with
///
- global::System.Collections.Generic.IAsyncEnumerable CreateSpeechAsStreamAsync(
+ global::System.Collections.Generic.IAsyncEnumerable CreateSpeechAsync(
global::tryAGI.OpenAI.CreateSpeechRequest request,
global::System.Threading.CancellationToken cancellationToken = default);
@@ -46,7 +46,7 @@ public partial interface IAudioClient
///
/// The token to cancel the operation with
///
- global::System.Collections.Generic.IAsyncEnumerable CreateSpeechAsStreamAsync(
+ global::System.Collections.Generic.IAsyncEnumerable CreateSpeechAsync(
global::tryAGI.OpenAI.AnyOf model,
string input,
global::tryAGI.OpenAI.VoiceIdsOrCustomVoice voice,
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscription.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscription.g.cs
index 2e0903a5..ca2470b2 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscription.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscription.g.cs
@@ -58,7 +58,6 @@ public partial interface IAudioClient
/// This option is not available for `gpt-4o-transcribe-diarize`.
/// Default Value: [segment]
///
- ///
///
///
/// Optional list of speaker names that correspond to the audio samples provided in `known_speaker_references[]`. Each entry should be a short identifier (for example `customer` or `agent`). Up to 4 speakers are supported.
@@ -78,7 +77,6 @@ public partial interface IAudioClient
double? temperature = default,
global::System.Collections.Generic.IList? include = default,
global::System.Collections.Generic.IList? timestampGranularities = default,
- bool? stream = default,
global::tryAGI.OpenAI.AnyOf? chunkingStrategy = default,
global::System.Collections.Generic.IList? knownSpeakerNames = default,
global::System.Collections.Generic.IList? knownSpeakerReferences = default,
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscriptionAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscriptionAsStream.g.cs
index 83d3d855..80064822 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscriptionAsStream.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IAudioClient.CreateTranscriptionAsStream.g.cs
@@ -58,7 +58,6 @@ public partial interface IAudioClient
/// This option is not available for `gpt-4o-transcribe-diarize`.
/// Default Value: [segment]
///
- ///
///
///
/// Optional list of speaker names that correspond to the audio samples provided in `known_speaker_references[]`. Each entry should be a short identifier (for example `customer` or `agent`). Up to 4 speakers are supported.
@@ -78,7 +77,6 @@ public partial interface IAudioClient
double? temperature = default,
global::System.Collections.Generic.IList? include = default,
global::System.Collections.Generic.IList? timestampGranularities = default,
- bool? stream = default,
global::tryAGI.OpenAI.AnyOf? chunkingStrategy = default,
global::System.Collections.Generic.IList? knownSpeakerNames = default,
global::System.Collections.Generic.IList? knownSpeakerReferences = default,
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImage.g.cs
index 587c757d..e1a5227c 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImage.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImage.g.cs
@@ -56,13 +56,6 @@ public partial interface IImagesClient
/// Default Value: 100
/// Example: 100
///
- ///
- /// Generate the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
- /// This parameter is only supported for the GPT image models.
- /// Default Value: false
- /// Example: false
- ///
///
///
/// The size of the generated images. Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or `auto` (default value) for the GPT image models, one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`, and one of `1024x1024`, `1792x1024`, or `1024x1792` for `dall-e-3`.
@@ -103,7 +96,6 @@ public partial interface IImagesClient
global::tryAGI.OpenAI.CreateImageRequestResponseFormat? responseFormat = default,
global::tryAGI.OpenAI.CreateImageRequestOutputFormat? outputFormat = default,
int? outputCompression = default,
- bool? stream = default,
int? partialImages = default,
global::tryAGI.OpenAI.CreateImageRequestSize? size = default,
global::tryAGI.OpenAI.CreateImageRequestModeration? moderation = default,
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageAsStream.g.cs
index 51b0e27c..edea7e4f 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageAsStream.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageAsStream.g.cs
@@ -56,13 +56,6 @@ public partial interface IImagesClient
/// Default Value: 100
/// Example: 100
///
- ///
- /// Generate the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
- /// This parameter is only supported for the GPT image models.
- /// Default Value: false
- /// Example: false
- ///
///
///
/// The size of the generated images. Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or `auto` (default value) for the GPT image models, one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`, and one of `1024x1024`, `1792x1024`, or `1024x1792` for `dall-e-3`.
@@ -103,7 +96,6 @@ public partial interface IImagesClient
global::tryAGI.OpenAI.CreateImageRequestResponseFormat? responseFormat = default,
global::tryAGI.OpenAI.CreateImageRequestOutputFormat? outputFormat = default,
int? outputCompression = default,
- bool? stream = default,
int? partialImages = default,
global::tryAGI.OpenAI.CreateImageRequestSize? size = default,
global::tryAGI.OpenAI.CreateImageRequestModeration? moderation = default,
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageEdit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageEdit.g.cs
index 924dcb9f..2da73c92 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageEdit.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageEdit.g.cs
@@ -92,12 +92,6 @@ public partial interface IImagesClient
/// Example: user-1234
///
///
- ///
- /// Edit the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
- /// Default Value: false
- /// Example: false
- ///
///
///
/// The quality of the image that will be generated for GPT image models. Defaults to `auto`.
@@ -120,7 +114,6 @@ public partial interface IImagesClient
int? outputCompression = default,
string? user = default,
global::tryAGI.OpenAI.InputFidelity? inputFidelity = default,
- bool? stream = default,
int? partialImages = default,
global::tryAGI.OpenAI.CreateImageEditRequestQuality? quality = default,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageEditAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageEditAsStream.g.cs
index 4bdc3a93..b12a2846 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageEditAsStream.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IImagesClient.CreateImageEditAsStream.g.cs
@@ -92,12 +92,6 @@ public partial interface IImagesClient
/// Example: user-1234
///
///
- ///
- /// Edit the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
- /// Default Value: false
- /// Example: false
- ///
///
///
/// The quality of the image that will be generated for GPT image models. Defaults to `auto`.
@@ -120,7 +114,6 @@ public partial interface IImagesClient
int? outputCompression = default,
string? user = default,
global::tryAGI.OpenAI.InputFidelity? inputFidelity = default,
- bool? stream = default,
int? partialImages = default,
global::tryAGI.OpenAI.CreateImageEditRequestQuality? quality = default,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.GetSkillContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.GetSkillContent.g.cs
index 3324f15e..f7a4ec26 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.GetSkillContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.GetSkillContent.g.cs
@@ -12,7 +12,7 @@ public partial interface ISkillsClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task GetSkillContentAsync(
+ global::System.Threading.Tasks.Task GetSkillContentAsync(
string skillId,
global::System.Threading.CancellationToken cancellationToken = default);
}
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.GetSkillVersionContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.GetSkillVersionContent.g.cs
index 00262bf6..0ec115bd 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.GetSkillVersionContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ISkillsClient.GetSkillVersionContent.g.cs
@@ -15,7 +15,7 @@ public partial interface ISkillsClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task GetSkillVersionContentAsync(
+ global::System.Threading.Tasks.Task GetSkillVersionContentAsync(
string skillId,
string version,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVideosClient.RetrieveVideoContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVideosClient.RetrieveVideoContent.g.cs
index db31e177..a73f5bd7 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVideosClient.RetrieveVideoContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.IVideosClient.RetrieveVideoContent.g.cs
@@ -14,7 +14,7 @@ public partial interface IVideosClient
///
/// The token to cancel the operation with
///
- global::System.Threading.Tasks.Task RetrieveVideoContentAsync(
+ global::System.Threading.Tasks.Task RetrieveVideoContentAsync(
string videoId,
global::tryAGI.OpenAI.VideoContentVariant? variant = default,
global::System.Threading.CancellationToken cancellationToken = default);
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs
index 6d73eb20..f0a4c9a8 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImage.g.cs
@@ -34,6 +34,24 @@ partial void ProcessCreateImageResponseContent(
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ request = new global::tryAGI.OpenAI.CreateImageRequest
+ {
+ Prompt = request.Prompt,
+ Model = request.Model,
+ N = request.N,
+ Quality = request.Quality,
+ ResponseFormat = request.ResponseFormat,
+ OutputFormat = request.OutputFormat,
+ OutputCompression = request.OutputCompression,
+ Stream = false,
+ PartialImages = request.PartialImages,
+ Size = request.Size,
+ Moderation = request.Moderation,
+ Background = request.Background,
+ Style = request.Style,
+ User = request.User,
+ };
PrepareArguments(
client: HttpClient);
PrepareCreateImageArguments(
@@ -207,13 +225,6 @@ partial void ProcessCreateImageResponseContent(
/// Default Value: 100
/// Example: 100
///
- ///
- /// Generate the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
- /// This parameter is only supported for the GPT image models.
- /// Default Value: false
- /// Example: false
- ///
///
///
/// The size of the generated images. Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or `auto` (default value) for the GPT image models, one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`, and one of `1024x1024`, `1792x1024`, or `1024x1792` for `dall-e-3`.
@@ -254,7 +265,6 @@ partial void ProcessCreateImageResponseContent(
global::tryAGI.OpenAI.CreateImageRequestResponseFormat? responseFormat = default,
global::tryAGI.OpenAI.CreateImageRequestOutputFormat? outputFormat = default,
int? outputCompression = default,
- bool? stream = default,
int? partialImages = default,
global::tryAGI.OpenAI.CreateImageRequestSize? size = default,
global::tryAGI.OpenAI.CreateImageRequestModeration? moderation = default,
@@ -272,7 +282,7 @@ partial void ProcessCreateImageResponseContent(
ResponseFormat = responseFormat,
OutputFormat = outputFormat,
OutputCompression = outputCompression,
- Stream = stream,
+ Stream = false,
PartialImages = partialImages,
Size = size,
Moderation = moderation,
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs
index 96d8881e..00f6e4ae 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageAsStream.g.cs
@@ -29,6 +29,24 @@ partial void ProcessCreateImageAsStreamResponse(
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ request = new global::tryAGI.OpenAI.CreateImageRequest
+ {
+ Prompt = request.Prompt,
+ Model = request.Model,
+ N = request.N,
+ Quality = request.Quality,
+ ResponseFormat = request.ResponseFormat,
+ OutputFormat = request.OutputFormat,
+ OutputCompression = request.OutputCompression,
+ Stream = true,
+ PartialImages = request.PartialImages,
+ Size = request.Size,
+ Moderation = request.Moderation,
+ Background = request.Background,
+ Style = request.Style,
+ User = request.User,
+ };
PrepareArguments(
client: HttpClient);
PrepareCreateImageAsStreamArguments(
@@ -170,13 +188,6 @@ partial void ProcessCreateImageAsStreamResponse(
/// Default Value: 100
/// Example: 100
///
- ///
- /// Generate the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
- /// This parameter is only supported for the GPT image models.
- /// Default Value: false
- /// Example: false
- ///
///
///
/// The size of the generated images. Must be one of `1024x1024`, `1536x1024` (landscape), `1024x1536` (portrait), or `auto` (default value) for the GPT image models, one of `256x256`, `512x512`, or `1024x1024` for `dall-e-2`, and one of `1024x1024`, `1792x1024`, or `1024x1792` for `dall-e-3`.
@@ -217,7 +228,6 @@ partial void ProcessCreateImageAsStreamResponse(
global::tryAGI.OpenAI.CreateImageRequestResponseFormat? responseFormat = default,
global::tryAGI.OpenAI.CreateImageRequestOutputFormat? outputFormat = default,
int? outputCompression = default,
- bool? stream = default,
int? partialImages = default,
global::tryAGI.OpenAI.CreateImageRequestSize? size = default,
global::tryAGI.OpenAI.CreateImageRequestModeration? moderation = default,
@@ -235,7 +245,7 @@ partial void ProcessCreateImageAsStreamResponse(
ResponseFormat = responseFormat,
OutputFormat = outputFormat,
OutputCompression = outputCompression,
- Stream = stream,
+ Stream = true,
PartialImages = partialImages,
Size = size,
Moderation = moderation,
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs
index b756b3df..3ecb9234 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEdit.g.cs
@@ -38,6 +38,26 @@ partial void ProcessCreateImageEditResponseContent(
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ request = new global::tryAGI.OpenAI.CreateImageEditRequest
+ {
+ Image = request.Image,
+ Prompt = request.Prompt,
+ Mask = request.Mask,
+ Maskname = request.Maskname,
+ Background = request.Background,
+ Model = request.Model,
+ N = request.N,
+ Size = request.Size,
+ ResponseFormat = request.ResponseFormat,
+ OutputFormat = request.OutputFormat,
+ OutputCompression = request.OutputCompression,
+ User = request.User,
+ InputFidelity = request.InputFidelity,
+ Stream = false,
+ PartialImages = request.PartialImages,
+ Quality = request.Quality,
+ };
PrepareArguments(
client: HttpClient);
PrepareCreateImageEditArguments(
@@ -342,12 +362,6 @@ partial void ProcessCreateImageEditResponseContent(
/// Example: user-1234
///
///
- ///
- /// Edit the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
- /// Default Value: false
- /// Example: false
- ///
///
///
/// The quality of the image that will be generated for GPT image models. Defaults to `auto`.
@@ -370,7 +384,6 @@ partial void ProcessCreateImageEditResponseContent(
int? outputCompression = default,
string? user = default,
global::tryAGI.OpenAI.InputFidelity? inputFidelity = default,
- bool? stream = default,
int? partialImages = default,
global::tryAGI.OpenAI.CreateImageEditRequestQuality? quality = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -390,7 +403,7 @@ partial void ProcessCreateImageEditResponseContent(
OutputCompression = outputCompression,
User = user,
InputFidelity = inputFidelity,
- Stream = stream,
+ Stream = false,
PartialImages = partialImages,
Quality = quality,
};
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs
index 9ddbb3ed..a819ccaa 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.ImagesClient.CreateImageEditAsStream.g.cs
@@ -33,6 +33,26 @@ partial void ProcessCreateImageEditAsStreamResponse(
{
request = request ?? throw new global::System.ArgumentNullException(nameof(request));
+
+ request = new global::tryAGI.OpenAI.CreateImageEditRequest
+ {
+ Image = request.Image,
+ Prompt = request.Prompt,
+ Mask = request.Mask,
+ Maskname = request.Maskname,
+ Background = request.Background,
+ Model = request.Model,
+ N = request.N,
+ Size = request.Size,
+ ResponseFormat = request.ResponseFormat,
+ OutputFormat = request.OutputFormat,
+ OutputCompression = request.OutputCompression,
+ User = request.User,
+ InputFidelity = request.InputFidelity,
+ Stream = true,
+ PartialImages = request.PartialImages,
+ Quality = request.Quality,
+ };
PrepareArguments(
client: HttpClient);
PrepareCreateImageEditAsStreamArguments(
@@ -305,12 +325,6 @@ partial void ProcessCreateImageEditAsStreamResponse(
/// Example: user-1234
///
///
- ///
- /// Edit the image in streaming mode. Defaults to `false`. See the
- /// [Image generation guide](/docs/guides/image-generation) for more information.
- /// Default Value: false
- /// Example: false
- ///
///
///
/// The quality of the image that will be generated for GPT image models. Defaults to `auto`.
@@ -333,7 +347,6 @@ partial void ProcessCreateImageEditAsStreamResponse(
int? outputCompression = default,
string? user = default,
global::tryAGI.OpenAI.InputFidelity? inputFidelity = default,
- bool? stream = default,
int? partialImages = default,
global::tryAGI.OpenAI.CreateImageEditRequestQuality? quality = default,
[global::System.Runtime.CompilerServices.EnumeratorCancellation] global::System.Threading.CancellationToken cancellationToken = default)
@@ -353,7 +366,7 @@ partial void ProcessCreateImageEditAsStreamResponse(
OutputCompression = outputCompression,
User = user,
InputFidelity = inputFidelity,
- Stream = stream,
+ Stream = true,
PartialImages = partialImages,
Quality = quality,
};
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs
index 2b1f3933..14f91051 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillContent.g.cs
@@ -19,7 +19,7 @@ partial void ProcessGetSkillContentResponse(
partial void ProcessGetSkillContentResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref byte[] content);
+ ref string content);
///
/// Download a skill zip bundle by its ID.
@@ -29,7 +29,7 @@ partial void ProcessGetSkillContentResponseContent(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task GetSkillContentAsync(
+ public async global::System.Threading.Tasks.Task GetSkillContentAsync(
string skillId,
global::System.Threading.CancellationToken cancellationToken = default)
{
@@ -89,12 +89,16 @@ partial void ProcessGetSkillContentResponseContent(
if (ReadResponseAsString)
{
- var __content = await __response.Content.ReadAsByteArrayAsync(
+ var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
ProcessGetSkillContentResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
@@ -109,10 +113,11 @@ partial void ProcessGetSkillContentResponseContent(
catch (global::System.Exception __ex)
{
throw new global::tryAGI.OpenAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
@@ -126,7 +131,7 @@ partial void ProcessGetSkillContentResponseContent(
{
__response.EnsureSuccessStatusCode();
- var __content = await __response.Content.ReadAsByteArrayAsync(
+ var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs
index 1fa33190..fab144ef 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.SkillsClient.GetSkillVersionContent.g.cs
@@ -21,7 +21,7 @@ partial void ProcessGetSkillVersionContentResponse(
partial void ProcessGetSkillVersionContentResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref byte[] content);
+ ref string content);
///
/// Download a skill version zip bundle.
@@ -34,7 +34,7 @@ partial void ProcessGetSkillVersionContentResponseContent(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task GetSkillVersionContentAsync(
+ public async global::System.Threading.Tasks.Task GetSkillVersionContentAsync(
string skillId,
string version,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -97,12 +97,16 @@ partial void ProcessGetSkillVersionContentResponseContent(
if (ReadResponseAsString)
{
- var __content = await __response.Content.ReadAsByteArrayAsync(
+ var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
ProcessGetSkillVersionContentResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
@@ -117,10 +121,11 @@ partial void ProcessGetSkillVersionContentResponseContent(
catch (global::System.Exception __ex)
{
throw new global::tryAGI.OpenAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
@@ -134,7 +139,7 @@ partial void ProcessGetSkillVersionContentResponseContent(
{
__response.EnsureSuccessStatusCode();
- var __content = await __response.Content.ReadAsByteArrayAsync(
+ var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
diff --git a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideoContent.g.cs b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideoContent.g.cs
index e8d60c58..02bc65d4 100644
--- a/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideoContent.g.cs
+++ b/src/libs/tryAGI.OpenAI/Generated/tryAGI.OpenAI.VideosClient.RetrieveVideoContent.g.cs
@@ -21,7 +21,7 @@ partial void ProcessRetrieveVideoContentResponse(
partial void ProcessRetrieveVideoContentResponseContent(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage,
- ref byte[] content);
+ ref string content);
///
/// Download the generated video bytes or a derived preview asset.
@@ -33,7 +33,7 @@ partial void ProcessRetrieveVideoContentResponseContent(
///
/// The token to cancel the operation with
///
- public async global::System.Threading.Tasks.Task RetrieveVideoContentAsync(
+ public async global::System.Threading.Tasks.Task RetrieveVideoContentAsync(
string videoId,
global::tryAGI.OpenAI.VideoContentVariant? variant = default,
global::System.Threading.CancellationToken cancellationToken = default)
@@ -99,12 +99,16 @@ partial void ProcessRetrieveVideoContentResponseContent(
if (ReadResponseAsString)
{
- var __content = await __response.Content.ReadAsByteArrayAsync(
+ var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif
).ConfigureAwait(false);
+ ProcessResponseContent(
+ client: HttpClient,
+ response: __response,
+ content: ref __content);
ProcessRetrieveVideoContentResponseContent(
httpClient: HttpClient,
httpResponseMessage: __response,
@@ -119,10 +123,11 @@ partial void ProcessRetrieveVideoContentResponseContent(
catch (global::System.Exception __ex)
{
throw new global::tryAGI.OpenAI.ApiException(
- message: __response.ReasonPhrase ?? string.Empty,
+ message: __content ?? __response.ReasonPhrase ?? string.Empty,
innerException: __ex,
statusCode: __response.StatusCode)
{
+ ResponseBody = __content,
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
__response.Headers,
h => h.Key,
@@ -136,7 +141,7 @@ partial void ProcessRetrieveVideoContentResponseContent(
{
__response.EnsureSuccessStatusCode();
- var __content = await __response.Content.ReadAsByteArrayAsync(
+ var __content = await __response.Content.ReadAsStringAsync(
#if NET5_0_OR_GREATER
cancellationToken
#endif