This repository was archived by the owner on Feb 12, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +28
-16
lines changed
ManagedCode.OpenAI/ImageGenerator/Enums Expand file tree Collapse file tree 3 files changed +28
-16
lines changed Original file line number Diff line number Diff line change 1
1
using System . ComponentModel ;
2
+ using System . Runtime . Serialization ;
3
+ using System . Text . Json . Serialization ;
4
+ using ManagedCode . OpenAI . Chats . Enums ;
2
5
3
6
namespace ManagedCode . OpenAI . ImageGenerator . Enums ;
4
7
8
+ [ JsonConverter ( typeof ( JsonStringEnumMemberConverter ) ) ]
5
9
public enum ImageFormat
6
10
{
11
+ [ EnumMember ( Value = "url" ) ]
7
12
[ Description ( "url" ) ]
8
13
Url ,
9
14
15
+ [ EnumMember ( Value = "b64_json" ) ]
10
16
[ Description ( "b64_json" ) ]
11
17
Base64Json ,
12
18
}
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ using System . ComponentModel ;
2
+ using System . Runtime . Serialization ;
3
+ using System . Text . Json . Serialization ;
4
+ using ManagedCode . OpenAI . Chats . Enums ;
5
+
6
+ namespace ManagedCode . OpenAI . ImageGenerator . Enums ;
7
+
8
+ [ JsonConverter ( typeof ( JsonStringEnumMemberConverter ) ) ]
9
+ public enum ImageResolution
10
+ {
11
+ [ EnumMember ( Value = "256x256" ) ]
12
+ [ Description ( "256x256" ) ]
13
+ Small ,
14
+
15
+ [ EnumMember ( Value = "512x512" ) ]
16
+ [ Description ( "512x512" ) ]
17
+ Medium ,
18
+
19
+ [ EnumMember ( Value = "1024x1024" ) ]
20
+ [ Description ( "1024x1024" ) ]
21
+ Large
22
+ }
You can’t perform that action at this time.
0 commit comments