Skip to content

Commit bf84473

Browse files
chore: show truncated parameter docs in yard
1 parent 9e1a0f1 commit bf84473

File tree

574 files changed

+13164
-3670
lines changed

Some content is hidden

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

574 files changed

+13164
-3670
lines changed

lib/openai/models/audio/speech_create_params.rb

+20-6
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,26 @@ class SpeechCreateParams < OpenAI::Internal::Type::BaseModel
5252
optional :speed, Float
5353

5454
# @!method initialize(input:, model:, voice:, instructions: nil, response_format: nil, speed: nil, request_options: {})
55-
# @param input [String]
56-
# @param model [String, Symbol, OpenAI::Models::Audio::SpeechModel]
57-
# @param voice [String, Symbol, OpenAI::Models::Audio::SpeechCreateParams::Voice]
58-
# @param instructions [String]
59-
# @param response_format [Symbol, OpenAI::Models::Audio::SpeechCreateParams::ResponseFormat]
60-
# @param speed [Float]
55+
# Some parameter documentations has been truncated, see
56+
# {OpenAI::Models::Audio::SpeechCreateParams} for more details.
57+
#
58+
# @param input [String] The text to generate audio for. The maximum length is 4096 characters.
59+
#
60+
# @param model [String, Symbol, OpenAI::Models::Audio::SpeechModel] One of the available [TTS models](https://platform.openai.com/docs/models#tts):
61+
# ...
62+
#
63+
# @param voice [String, Symbol, OpenAI::Models::Audio::SpeechCreateParams::Voice] The voice to use when generating the audio. Supported voices are `alloy`, `ash`,
64+
# ...
65+
#
66+
# @param instructions [String] Control the voice of your generated audio with additional instructions. Does not
67+
# ...
68+
#
69+
# @param response_format [Symbol, OpenAI::Models::Audio::SpeechCreateParams::ResponseFormat] The format to audio in. Supported formats are `mp3`, `opus`, `aac`, `flac`, `wav
70+
# ...
71+
#
72+
# @param speed [Float] The speed of the generated audio. Select a value from `0.25` to `4.0`. `1.0` is
73+
# ...
74+
#
6175
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
6276

6377
# One of the available [TTS models](https://platform.openai.com/docs/models#tts):

lib/openai/models/audio/transcription.rb

+12-5
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,16 @@ class Transcription < OpenAI::Internal::Type::BaseModel
1919
optional :logprobs, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Models::Audio::Transcription::Logprob] }
2020

2121
# @!method initialize(text:, logprobs: nil)
22+
# Some parameter documentations has been truncated, see
23+
# {OpenAI::Models::Audio::Transcription} for more details.
24+
#
2225
# Represents a transcription response returned by model, based on the provided
2326
# input.
2427
#
25-
# @param text [String]
26-
# @param logprobs [Array<OpenAI::Models::Audio::Transcription::Logprob>]
28+
# @param text [String] The transcribed text.
29+
#
30+
# @param logprobs [Array<OpenAI::Models::Audio::Transcription::Logprob>] The log probabilities of the tokens in the transcription. Only returned with the
31+
# ...
2732

2833
class Logprob < OpenAI::Internal::Type::BaseModel
2934
# @!attribute token
@@ -45,9 +50,11 @@ class Logprob < OpenAI::Internal::Type::BaseModel
4550
optional :logprob, Float
4651

4752
# @!method initialize(token: nil, bytes: nil, logprob: nil)
48-
# @param token [String]
49-
# @param bytes [Array<Float>]
50-
# @param logprob [Float]
53+
# @param token [String] The token in the transcription.
54+
#
55+
# @param bytes [Array<Float>] The bytes of the token.
56+
#
57+
# @param logprob [Float] The log probability of the token.
5158
end
5259
end
5360
end

lib/openai/models/audio/transcription_create_params.rb

+26-8
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,32 @@ class TranscriptionCreateParams < OpenAI::Internal::Type::BaseModel
8383
-> { OpenAI::Internal::Type::ArrayOf[enum: OpenAI::Models::Audio::TranscriptionCreateParams::TimestampGranularity] }
8484

8585
# @!method initialize(file:, model:, include: nil, language: nil, prompt: nil, response_format: nil, temperature: nil, timestamp_granularities: nil, request_options: {})
86-
# @param file [Pathname, StringIO]
87-
# @param model [String, Symbol, OpenAI::Models::AudioModel]
88-
# @param include [Array<Symbol, OpenAI::Models::Audio::TranscriptionInclude>]
89-
# @param language [String]
90-
# @param prompt [String]
91-
# @param response_format [Symbol, OpenAI::Models::AudioResponseFormat]
92-
# @param temperature [Float]
93-
# @param timestamp_granularities [Array<Symbol, OpenAI::Models::Audio::TranscriptionCreateParams::TimestampGranularity>]
86+
# Some parameter documentations has been truncated, see
87+
# {OpenAI::Models::Audio::TranscriptionCreateParams} for more details.
88+
#
89+
# @param file [Pathname, StringIO] The audio file object (not file name) to transcribe, in one of these formats: fl
90+
# ...
91+
#
92+
# @param model [String, Symbol, OpenAI::Models::AudioModel] ID of the model to use. The options are `gpt-4o-transcribe`, `gpt-4o-mini-transc
93+
# ...
94+
#
95+
# @param include [Array<Symbol, OpenAI::Models::Audio::TranscriptionInclude>] Additional information to include in the transcription response. ...
96+
#
97+
# @param language [String] The language of the input audio. Supplying the input language in [ISO-639-1](htt
98+
# ...
99+
#
100+
# @param prompt [String] An optional text to guide the model's style or continue a previous audio segment
101+
# ...
102+
#
103+
# @param response_format [Symbol, OpenAI::Models::AudioResponseFormat] The format of the output, in one of these options: `json`, `text`, `srt`, `verbo
104+
# ...
105+
#
106+
# @param temperature [Float] The sampling temperature, between 0 and 1. Higher values like 0.8 will make the
107+
# ...
108+
#
109+
# @param timestamp_granularities [Array<Symbol, OpenAI::Models::Audio::TranscriptionCreateParams::TimestampGranularity>] The timestamp granularities to populate for this transcription. `response_format
110+
# ...
111+
#
94112
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
95113

96114
# ID of the model to use. The options are `gpt-4o-transcribe`,

lib/openai/models/audio/transcription_segment.rb

+25-10
Original file line numberDiff line numberDiff line change
@@ -68,16 +68,31 @@ class TranscriptionSegment < OpenAI::Internal::Type::BaseModel
6868
required :tokens, OpenAI::Internal::Type::ArrayOf[Integer]
6969

7070
# @!method initialize(id:, avg_logprob:, compression_ratio:, end_:, no_speech_prob:, seek:, start:, temperature:, text:, tokens:)
71-
# @param id [Integer]
72-
# @param avg_logprob [Float]
73-
# @param compression_ratio [Float]
74-
# @param end_ [Float]
75-
# @param no_speech_prob [Float]
76-
# @param seek [Integer]
77-
# @param start [Float]
78-
# @param temperature [Float]
79-
# @param text [String]
80-
# @param tokens [Array<Integer>]
71+
# Some parameter documentations has been truncated, see
72+
# {OpenAI::Models::Audio::TranscriptionSegment} for more details.
73+
#
74+
# @param id [Integer] Unique identifier of the segment.
75+
#
76+
# @param avg_logprob [Float] Average logprob of the segment. If the value is lower than -1, consider the logp
77+
# ...
78+
#
79+
# @param compression_ratio [Float] Compression ratio of the segment. If the value is greater than 2.4, consider the
80+
# ...
81+
#
82+
# @param end_ [Float] End time of the segment in seconds.
83+
#
84+
# @param no_speech_prob [Float] Probability of no speech in the segment. If the value is higher than 1.0 and the
85+
# ...
86+
#
87+
# @param seek [Integer] Seek offset of the segment.
88+
#
89+
# @param start [Float] Start time of the segment in seconds.
90+
#
91+
# @param temperature [Float] Temperature parameter used for generating the segment.
92+
#
93+
# @param text [String] Text content of the segment.
94+
#
95+
# @param tokens [Array<Integer>] Array of token IDs for the text content.
8196
end
8297
end
8398
end

lib/openai/models/audio/transcription_text_delta_event.rb

+17-6
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,20 @@ class TranscriptionTextDeltaEvent < OpenAI::Internal::Type::BaseModel
2626
-> { OpenAI::Internal::Type::ArrayOf[OpenAI::Models::Audio::TranscriptionTextDeltaEvent::Logprob] }
2727

2828
# @!method initialize(delta:, logprobs: nil, type: :"transcript.text.delta")
29+
# Some parameter documentations has been truncated, see
30+
# {OpenAI::Models::Audio::TranscriptionTextDeltaEvent} for more details.
31+
#
2932
# Emitted when there is an additional text delta. This is also the first event
3033
# emitted when the transcription starts. Only emitted when you
3134
# [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
3235
# with the `Stream` parameter set to `true`.
3336
#
34-
# @param delta [String]
35-
# @param logprobs [Array<OpenAI::Models::Audio::TranscriptionTextDeltaEvent::Logprob>]
36-
# @param type [Symbol, :"transcript.text.delta"]
37+
# @param delta [String] The text delta that was additionally transcribed. ...
38+
#
39+
# @param logprobs [Array<OpenAI::Models::Audio::TranscriptionTextDeltaEvent::Logprob>] The log probabilities of the delta. Only included if you [create a transcription
40+
# ...
41+
#
42+
# @param type [Symbol, :"transcript.text.delta"] The type of the event. Always `transcript.text.delta`. ...
3743

3844
class Logprob < OpenAI::Internal::Type::BaseModel
3945
# @!attribute token
@@ -55,9 +61,14 @@ class Logprob < OpenAI::Internal::Type::BaseModel
5561
optional :logprob, Float
5662

5763
# @!method initialize(token: nil, bytes: nil, logprob: nil)
58-
# @param token [String]
59-
# @param bytes [Array<Object>]
60-
# @param logprob [Float]
64+
# Some parameter documentations has been truncated, see
65+
# {OpenAI::Models::Audio::TranscriptionTextDeltaEvent::Logprob} for more details.
66+
#
67+
# @param token [String] The token that was used to generate the log probability. ...
68+
#
69+
# @param bytes [Array<Object>] The bytes that were used to generate the log probability. ...
70+
#
71+
# @param logprob [Float] The log probability of the token. ...
6172
end
6273
end
6374
end

lib/openai/models/audio/transcription_text_done_event.rb

+17-6
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,20 @@ class TranscriptionTextDoneEvent < OpenAI::Internal::Type::BaseModel
2727
-> { OpenAI::Internal::Type::ArrayOf[OpenAI::Models::Audio::TranscriptionTextDoneEvent::Logprob] }
2828

2929
# @!method initialize(text:, logprobs: nil, type: :"transcript.text.done")
30+
# Some parameter documentations has been truncated, see
31+
# {OpenAI::Models::Audio::TranscriptionTextDoneEvent} for more details.
32+
#
3033
# Emitted when the transcription is complete. Contains the complete transcription
3134
# text. Only emitted when you
3235
# [create a transcription](https://platform.openai.com/docs/api-reference/audio/create-transcription)
3336
# with the `Stream` parameter set to `true`.
3437
#
35-
# @param text [String]
36-
# @param logprobs [Array<OpenAI::Models::Audio::TranscriptionTextDoneEvent::Logprob>]
37-
# @param type [Symbol, :"transcript.text.done"]
38+
# @param text [String] The text that was transcribed. ...
39+
#
40+
# @param logprobs [Array<OpenAI::Models::Audio::TranscriptionTextDoneEvent::Logprob>] The log probabilities of the individual tokens in the transcription. Only includ
41+
# ...
42+
#
43+
# @param type [Symbol, :"transcript.text.done"] The type of the event. Always `transcript.text.done`. ...
3844

3945
class Logprob < OpenAI::Internal::Type::BaseModel
4046
# @!attribute token
@@ -56,9 +62,14 @@ class Logprob < OpenAI::Internal::Type::BaseModel
5662
optional :logprob, Float
5763

5864
# @!method initialize(token: nil, bytes: nil, logprob: nil)
59-
# @param token [String]
60-
# @param bytes [Array<Object>]
61-
# @param logprob [Float]
65+
# Some parameter documentations has been truncated, see
66+
# {OpenAI::Models::Audio::TranscriptionTextDoneEvent::Logprob} for more details.
67+
#
68+
# @param token [String] The token that was used to generate the log probability. ...
69+
#
70+
# @param bytes [Array<Object>] The bytes that were used to generate the log probability. ...
71+
#
72+
# @param logprob [Float] The log probability of the token. ...
6273
end
6374
end
6475
end

lib/openai/models/audio/transcription_verbose.rb

+9-5
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,15 @@ class TranscriptionVerbose < OpenAI::Internal::Type::BaseModel
3838
# Represents a verbose json transcription response returned by model, based on the
3939
# provided input.
4040
#
41-
# @param duration [Float]
42-
# @param language [String]
43-
# @param text [String]
44-
# @param segments [Array<OpenAI::Models::Audio::TranscriptionSegment>]
45-
# @param words [Array<OpenAI::Models::Audio::TranscriptionWord>]
41+
# @param duration [Float] The duration of the input audio.
42+
#
43+
# @param language [String] The language of the input audio.
44+
#
45+
# @param text [String] The transcribed text.
46+
#
47+
# @param segments [Array<OpenAI::Models::Audio::TranscriptionSegment>] Segments of the transcribed text and their corresponding details.
48+
#
49+
# @param words [Array<OpenAI::Models::Audio::TranscriptionWord>] Extracted words and their corresponding timestamps.
4650
end
4751
end
4852
end

lib/openai/models/audio/transcription_word.rb

+5-3
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ class TranscriptionWord < OpenAI::Internal::Type::BaseModel
2323
required :word, String
2424

2525
# @!method initialize(end_:, start:, word:)
26-
# @param end_ [Float]
27-
# @param start [Float]
28-
# @param word [String]
26+
# @param end_ [Float] End time of the word in seconds.
27+
#
28+
# @param start [Float] Start time of the word in seconds.
29+
#
30+
# @param word [String] The text content of the word.
2931
end
3032
end
3133
end

lib/openai/models/audio/translation_create_params.rb

+18-5
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,24 @@ class TranslationCreateParams < OpenAI::Internal::Type::BaseModel
4949
optional :temperature, Float
5050

5151
# @!method initialize(file:, model:, prompt: nil, response_format: nil, temperature: nil, request_options: {})
52-
# @param file [Pathname, StringIO]
53-
# @param model [String, Symbol, OpenAI::Models::AudioModel]
54-
# @param prompt [String]
55-
# @param response_format [Symbol, OpenAI::Models::Audio::TranslationCreateParams::ResponseFormat]
56-
# @param temperature [Float]
52+
# Some parameter documentations has been truncated, see
53+
# {OpenAI::Models::Audio::TranslationCreateParams} for more details.
54+
#
55+
# @param file [Pathname, StringIO] The audio file object (not file name) translate, in one of these formats: flac,
56+
# ...
57+
#
58+
# @param model [String, Symbol, OpenAI::Models::AudioModel] ID of the model to use. Only `whisper-1` (which is powered by our open source Wh
59+
# ...
60+
#
61+
# @param prompt [String] An optional text to guide the model's style or continue a previous audio segment
62+
# ...
63+
#
64+
# @param response_format [Symbol, OpenAI::Models::Audio::TranslationCreateParams::ResponseFormat] The format of the output, in one of these options: `json`, `text`, `srt`, `verbo
65+
# ...
66+
#
67+
# @param temperature [Float] The sampling temperature, between 0 and 1. Higher values like 0.8 will make the
68+
# ...
69+
#
5770
# @param request_options [OpenAI::RequestOptions, Hash{Symbol=>Object}]
5871

5972
# ID of the model to use. Only `whisper-1` (which is powered by our open source

lib/openai/models/audio/translation_verbose.rb

+7-4
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ class TranslationVerbose < OpenAI::Internal::Type::BaseModel
2929
optional :segments, -> { OpenAI::Internal::Type::ArrayOf[OpenAI::Models::Audio::TranscriptionSegment] }
3030

3131
# @!method initialize(duration:, language:, text:, segments: nil)
32-
# @param duration [Float]
33-
# @param language [String]
34-
# @param text [String]
35-
# @param segments [Array<OpenAI::Models::Audio::TranscriptionSegment>]
32+
# @param duration [Float] The duration of the input audio.
33+
#
34+
# @param language [String] The language of the output translation (always `english`).
35+
#
36+
# @param text [String] The translated text.
37+
#
38+
# @param segments [Array<OpenAI::Models::Audio::TranscriptionSegment>] Segments of the translated text and their corresponding details.
3639
end
3740
end
3841
end

lib/openai/models/auto_file_chunking_strategy_param.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class AutoFileChunkingStrategyParam < OpenAI::Internal::Type::BaseModel
1313
# The default strategy. This strategy currently uses a `max_chunk_size_tokens` of
1414
# `800` and `chunk_overlap_tokens` of `400`.
1515
#
16-
# @param type [Symbol, :auto]
16+
# @param type [Symbol, :auto] Always `auto`.
1717
end
1818
end
1919
end

0 commit comments

Comments
 (0)