Skip to main content

gproxy_protocol/openai/common/enums/
content.rs

1strict_string_enum!(EmbeddingEncodingFormat {
2    Float => "float",
3    Base64 => "base64",
4});
5
6strict_string_enum!(ReasoningEffort {
7    None => "none",
8    Minimal => "minimal",
9    Low => "low",
10    Medium => "medium",
11    High => "high",
12    XHigh => "xhigh",
13    Max => "max",
14});
15
16strict_string_enum!(ReasoningSummary {
17    Auto => "auto",
18    Concise => "concise",
19    Detailed => "detailed",
20});
21
22extensible_string_enum!(ReasoningMode, ReasoningModeKnown {
23    Standard => "standard",
24    Pro => "pro",
25});
26
27strict_string_enum!(ServiceTier {
28    Auto => "auto",
29    Default => "default",
30    Fast => "fast",
31    Flex => "flex",
32    Scale => "scale",
33    Priority => "priority",
34    Ultrafast => "ultrafast",
35    OnDemand => "on_demand",
36});
37
38strict_string_enum!(TruncationStrategy {
39    Auto => "auto",
40    Disabled => "disabled",
41});
42
43strict_string_enum!(Verbosity {
44    Low => "low",
45    Medium => "medium",
46    High => "high",
47});
48
49strict_string_enum!(PromptCacheRetention {
50    InMemory => "in_memory",
51    TwentyFourHours => "24h",
52});
53
54strict_string_enum!(PromptCacheMode {
55    Implicit => "implicit",
56    Explicit => "explicit",
57});
58
59strict_string_enum!(PromptCacheBreakpointMode { Explicit => "explicit" });
60strict_string_enum!(PromptCacheTtl { ThirtyMinutes => "30m" });
61
62extensible_string_enum!(ResponsePersonality, ResponsePersonalityKnown {
63    Friendly => "friendly",
64    Pragmatic => "pragmatic",
65});
66
67extensible_string_enum!(ContextManagementType, ContextManagementTypeKnown {
68    Compaction => "compaction",
69});
70
71strict_string_enum!(SearchContextSize {
72    Low => "low",
73    Medium => "medium",
74    High => "high",
75});
76
77strict_string_enum!(ApproximateLocationType { Approximate => "approximate" });
78
79strict_string_enum!(TextOrAudioModality {
80    Text => "text",
81    Audio => "audio",
82});
83
84strict_string_enum!(InputAudioFormat {
85    Wav => "wav",
86    Mp3 => "mp3",
87});
88
89strict_string_enum!(AudioResponseFormat {
90    Wav => "wav",
91    Aac => "aac",
92    Mp3 => "mp3",
93    Flac => "flac",
94    Opus => "opus",
95    Pcm16 => "pcm16",
96});
97
98extensible_string_enum!(VoiceName, VoiceNameKnown {
99    Alloy => "alloy",
100    Ash => "ash",
101    Ballad => "ballad",
102    Coral => "coral",
103    Echo => "echo",
104    Fable => "fable",
105    Nova => "nova",
106    Onyx => "onyx",
107    Sage => "sage",
108    Shimmer => "shimmer",
109    Verse => "verse",
110    Marin => "marin",
111    Cedar => "cedar",
112});
113
114strict_string_enum!(DetailLevel {
115    Auto => "auto",
116    Low => "low",
117    High => "high",
118    Original => "original",
119});
120
121strict_string_enum!(ChatImageDetailLevel {
122    Auto => "auto",
123    Low => "low",
124    High => "high",
125});
126
127strict_string_enum!(InputFileDetailLevel {
128    Low => "low",
129    High => "high",
130});