openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
OpenAI_2.0.0-beta.1

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

src/Custom/Images/GeneratedImageQuality.cs

31lines · modepreview

namespace OpenAI.Images;

// CUSTOM:
// - Renamed enum and its members.
// - Converted extensible enum into an enum.
// - Edited doc comment.
/// <summary>
/// A representation of the quality setting for image operations that controls the level of work that the model will
/// perform.
/// </summary>
/// <remarks>
/// Available qualities consist of:
/// <list type="bullet">
/// <item><see cref="Standard"/> - <c>standard</c> - The default setting that balances speed, detail, and consistecy. </item>
/// <item><see cref="High"/> - <c>hd</c> - Better consistency and finer details, but may be slower. </item>
/// </list>
/// </remarks>
[CodeGenModel("ImageGenerationOptionsQuality")]
public enum GeneratedImageQuality
{
    /// <summary>
    /// The <c>hd</c> image quality that provides finer details and greater consistency but may be slower.
    /// </summary>
    [CodeGenMember("Hd")]
    High,
    /// <summary>
    /// The <c>standard</c> image quality that provides a balanced mix of detailing, consistency, and speed.
    /// </summary>
    [CodeGenMember("Standard")]
    Standard,
}