openai/openai-dotnet
Publicmirrored from https://github.com/openai/openai-dotnetAvailable
src/Custom/Images/GeneratedImageFormat.cs
20lines · modecode
| 1 | namespace OpenAI.Images; |
| 2 | |
| 3 | // CUSTOM: Renamed. |
| 4 | /// <summary> The format in which the generated images are returned by the service. </summary> |
| 5 | [CodeGenType("CreateImageRequestResponseFormat")] |
| 6 | public readonly partial struct GeneratedImageFormat |
| 7 | { |
| 8 | // CUSTOM: Renamed. |
| 9 | /// <summary> Returned as bytes in a base64-encoded string. </summary> |
| 10 | [CodeGenMember("B64Json")] |
| 11 | public static GeneratedImageFormat Bytes { get; } = new GeneratedImageFormat(B64JsonValue); |
| 12 | |
| 13 | // CUSTOM: Renamed. |
| 14 | /// <summary> |
| 15 | /// Returned as a URI pointing to a temporary internet location from where the image can be downlaoded. This URI is |
| 16 | /// only valid for 60 minutes after the image is generated. |
| 17 | /// </summary> |
| 18 | [CodeGenMember("Url")] |
| 19 | public static GeneratedImageFormat Uri { get; } = new GeneratedImageFormat(UrlValue); |
| 20 | } |