@@ -107,33 +107,16 @@ class TranscriptionCreateParams < OpenAI::Internal::Type::BaseModel
107107 # # @return [Array<Symbol, OpenAI::Models::Audio::TranscriptionCreateParams::TimestampGranularity>]
108108 # attr_writer :timestamp_granularities
109109
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}]
137120
138121 # ID of the model to use. The options are `gpt-4o-transcribe`,
139122 # `gpt-4o-mini-transcribe`, and `whisper-1` (which is powered by our open source
@@ -146,9 +129,8 @@ module Model
146129 # 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).
147130 variant enum : -> { OpenAI ::Models ::AudioModel }
148131
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)]
152134 end
153135
154136 module TimestampGranularity
@@ -157,11 +139,8 @@ module TimestampGranularity
157139 WORD = :word
158140 SEGMENT = :segment
159141
160- finalize!
161-
162- # @!parse
163- # # @return [Array<Symbol>]
164- # def self.values; end
142+ # @!method self.values
143+ # @return [Array<Symbol>]
165144 end
166145 end
167146 end
0 commit comments