From 6043c6882adaa96515bdd02316841e45b4cf3146 Mon Sep 17 00:00:00 2001 From: Tolga Kayhan Date: Sun, 3 Dec 2023 10:44:42 +0000 Subject: [PATCH] Added StaticValues for ImageStatics.Quality --- OpenAI.SDK/ObjectModels/RequestModels/ImageCreateRequest.cs | 1 + .../SharedModels/SharedImageRequestBaseModel.cs | 1 + OpenAI.SDK/ObjectModels/StaticValueHelper.cs | 6 ++++++ 3 files changed, 8 insertions(+) diff --git a/OpenAI.SDK/ObjectModels/RequestModels/ImageCreateRequest.cs b/OpenAI.SDK/ObjectModels/RequestModels/ImageCreateRequest.cs index 6eaabf7a..2fd7d6a0 100644 --- a/OpenAI.SDK/ObjectModels/RequestModels/ImageCreateRequest.cs +++ b/OpenAI.SDK/ObjectModels/RequestModels/ImageCreateRequest.cs @@ -27,6 +27,7 @@ public ImageCreateRequest(string prompt) /// The quality of the image that will be generated. Possible values are 'standard' or 'hd' (default is 'standard'). /// Hd creates images with finer details and greater consistency across the image. /// This param is only supported for dall-e-3 model. + ///

Check for possible values /// [JsonPropertyName("quality")] public string? Quality { get; set; } diff --git a/OpenAI.SDK/ObjectModels/SharedModels/SharedImageRequestBaseModel.cs b/OpenAI.SDK/ObjectModels/SharedModels/SharedImageRequestBaseModel.cs index 3ba145ce..8e74b512 100644 --- a/OpenAI.SDK/ObjectModels/SharedModels/SharedImageRequestBaseModel.cs +++ b/OpenAI.SDK/ObjectModels/SharedModels/SharedImageRequestBaseModel.cs @@ -15,6 +15,7 @@ public record SharedImageRequestBaseModel /// The size of the generated images. /// Must be one of 256x256, 512x512, or 1024x1024 for dall-e-2. /// Must be one of 1024x1024, 1792x1024, or 1024x1792 for dall-e-3 models. + ///

Check for possible values /// [JsonPropertyName("size")] public string? Size { get; set; } diff --git a/OpenAI.SDK/ObjectModels/StaticValueHelper.cs b/OpenAI.SDK/ObjectModels/StaticValueHelper.cs index b67d07ba..ae6d99ee 100644 --- a/OpenAI.SDK/ObjectModels/StaticValueHelper.cs +++ b/OpenAI.SDK/ObjectModels/StaticValueHelper.cs @@ -40,6 +40,12 @@ public static class Style public static string Vivid => "vivid"; public static string Natural => "natural"; } + + public static class Quality + { + public static string Standard => "standard"; + public static string Hd => "hd"; + } } public static class AudioStatics