@@ -107,33 +107,16 @@ class TranscriptionCreateParams < OpenAI::Internal::Type::BaseModel
107
107
# # @return [Array<Symbol, OpenAI::Models::Audio::TranscriptionCreateParams::TimestampGranularity>]
108
108
# attr_writer :timestamp_granularities
109
109
110
- # @!parse
111
- # # @param file [Pathname, StringIO]
112
- # # @param model [String, Symbol, OpenAI::Models::AudioModel]
113
- # # @param include [Array<Symbol, OpenAI::Models::Audio::TranscriptionInclude>]
114
- # # @param language [String]
115
- # # @param prompt [String]
116
- # # @param response_format [Symbol, OpenAI::Models::AudioResponseFormat]
117
- # # @param temperature [Float]
118
- # # @param timestamp_granularities [Array<Symbol, OpenAI::Models::Audio::TranscriptionCreateParams::TimestampGranularity>]
119
- # # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
120
- # #
121
- # def initialize(
122
- # file:,
123
- # model:,
124
- # include: nil,
125
- # language: nil,
126
- # prompt: nil,
127
- # response_format: nil,
128
- # temperature: nil,
129
- # timestamp_granularities: nil,
130
- # request_options: {},
131
- # **
132
- # )
133
- # super
134
- # end
135
-
136
- # def initialize: (Hash | OpenAI::Internal::Type::BaseModel) -> void
110
+ # @!method initialize(file:, model:, include: nil, language: nil, prompt: nil, response_format: nil, temperature: nil, timestamp_granularities: nil, request_options: {})
111
+ # @param file [Pathname, StringIO]
112
+ # @param model [String, Symbol, OpenAI::Models::AudioModel]
113
+ # @param include [Array<Symbol, OpenAI::Models::Audio::TranscriptionInclude>]
114
+ # @param language [String]
115
+ # @param prompt [String]
116
+ # @param response_format [Symbol, OpenAI::Models::AudioResponseFormat]
117
+ # @param temperature [Float]
118
+ # @param timestamp_granularities [Array<Symbol, OpenAI::Models::Audio::TranscriptionCreateParams::TimestampGranularity>]
119
+ # @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
137
120
138
121
# ID of the model to use. The options are `gpt-4o-transcribe`,
139
122
# `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source
@@ -146,9 +129,8 @@ module Model
146
129
# ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source Whisper V2 model).
147
130
variant enum : -> { OpenAI ::Models ::AudioModel }
148
131
149
- # @!parse
150
- # # @return [Array(String, Symbol, OpenAI::Models::AudioModel)]
151
- # def self.variants; end
132
+ # @!method self.variants
133
+ # @return [Array(String, Symbol, OpenAI::Models::AudioModel)]
152
134
end
153
135
154
136
module TimestampGranularity
@@ -157,11 +139,8 @@ module TimestampGranularity
157
139
WORD = :word
158
140
SEGMENT = :segment
159
141
160
- finalize!
161
-
162
- # @!parse
163
- # # @return [Array<Symbol>]
164
- # def self.values; end
142
+ # @!method self.values
143
+ # @return [Array<Symbol>]
165
144
end
166
145
end
167
146
end
0 commit comments