Skip to content

Commit

Permalink
Added StaticValues for ImageStatics.Quality
Browse files Browse the repository at this point in the history
  • Loading branch information
kayhantolga committed Dec 3, 2023
1 parent a92bcd2 commit 6043c68
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/// <br /><br />Check <see cref="StaticValues.ImageStatics.Quality"/> for possible values
/// </summary>
[JsonPropertyName("quality")]
public string? Quality { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
/// <br /><br />Check <see cref="StaticValues.ImageStatics.Size"/> for possible values
/// </summary>
[JsonPropertyName("size")]
public string? Size { get; set; }
Expand Down
6 changes: 6 additions & 0 deletions OpenAI.SDK/ObjectModels/StaticValueHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6043c68

Please sign in to comment.