Skip to content

Commit b041ad1

Browse files
chore: add type annotations for enum and union member listing methods (#55)
1 parent 9f416f0 commit b041ad1

File tree

388 files changed

+3669
-620
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

388 files changed

+3669
-620
lines changed

lib/openai/models/audio/speech_create_params.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,12 @@ module Voice
111111
SHIMMER = :shimmer
112112

113113
finalize!
114+
115+
class << self
116+
# @!parse
117+
# # @return [Array<Symbol>]
118+
# def values; end
119+
end
114120
end
115121

116122
# The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`,
@@ -126,6 +132,12 @@ module ResponseFormat
126132
PCM = :pcm
127133

128134
finalize!
135+
136+
class << self
137+
# @!parse
138+
# # @return [Array<Symbol>]
139+
# def values; end
140+
end
129141
end
130142
end
131143
end

lib/openai/models/audio/speech_model.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ module SpeechModel
1111
GPT_4O_MINI_TTS = :"gpt-4o-mini-tts"
1212

1313
finalize!
14+
15+
class << self
16+
# @!parse
17+
# # @return [Array<Symbol>]
18+
# def values; end
19+
end
1420
end
1521
end
1622
end

lib/openai/models/audio/transcription_create_params.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ module TimestampGranularity
156156
SEGMENT = :segment
157157

158158
finalize!
159+
160+
class << self
161+
# @!parse
162+
# # @return [Array<Symbol>]
163+
# def values; end
164+
end
159165
end
160166
end
161167
end

lib/openai/models/audio/transcription_include.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ module TranscriptionInclude
99
LOGPROBS = :logprobs
1010

1111
finalize!
12+
13+
class << self
14+
# @!parse
15+
# # @return [Array<Symbol>]
16+
# def values; end
17+
end
1218
end
1319
end
1420
end

lib/openai/models/audio/translation_create_params.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,12 @@ module ResponseFormat
101101
VTT = :vtt
102102

103103
finalize!
104+
105+
class << self
106+
# @!parse
107+
# # @return [Array<Symbol>]
108+
# def values; end
109+
end
104110
end
105111
end
106112
end

lib/openai/models/audio_model.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ module AudioModel
1010
GPT_4O_MINI_TRANSCRIBE = :"gpt-4o-mini-transcribe"
1111

1212
finalize!
13+
14+
class << self
15+
# @!parse
16+
# # @return [Array<Symbol>]
17+
# def values; end
18+
end
1319
end
1420
end
1521
end

lib/openai/models/audio_response_format.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ module AudioResponseFormat
1515
VTT = :vtt
1616

1717
finalize!
18+
19+
class << self
20+
# @!parse
21+
# # @return [Array<Symbol>]
22+
# def values; end
23+
end
1824
end
1925
end
2026
end

lib/openai/models/batch.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,12 @@ module Status
238238
CANCELLED = :cancelled
239239

240240
finalize!
241+
242+
class << self
243+
# @!parse
244+
# # @return [Array<Symbol>]
245+
# def values; end
246+
end
241247
end
242248

243249
class Errors < OpenAI::BaseModel

lib/openai/models/batch_create_params.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,12 @@ module CompletionWindow
6767
NUMBER_24H = :"24h"
6868

6969
finalize!
70+
71+
class << self
72+
# @!parse
73+
# # @return [Array<Symbol>]
74+
# def values; end
75+
end
7076
end
7177

7278
# The endpoint to be used for all requests in the batch. Currently
@@ -82,6 +88,12 @@ module Endpoint
8288
V1_COMPLETIONS = :"/v1/completions"
8389

8490
finalize!
91+
92+
class << self
93+
# @!parse
94+
# # @return [Array<Symbol>]
95+
# def values; end
96+
end
8597
end
8698
end
8799
end

lib/openai/models/beta/assistant_list_params.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,12 @@ module Order
7676
DESC = :desc
7777

7878
finalize!
79+
80+
class << self
81+
# @!parse
82+
# # @return [Array<Symbol>]
83+
# def values; end
84+
end
7985
end
8086
end
8187
end

0 commit comments

Comments
 (0)