File tree 3 files changed +20
-4
lines changed
3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -29,12 +29,20 @@ export namespace Audio {
29
29
export import TranscriptionVerbose = TranscriptionsAPI . TranscriptionVerbose ;
30
30
export import TranscriptionWord = TranscriptionsAPI . TranscriptionWord ;
31
31
export import TranscriptionCreateResponse = TranscriptionsAPI . TranscriptionCreateResponse ;
32
- export import TranscriptionCreateParams = TranscriptionsAPI . TranscriptionCreateParams ;
32
+ export type TranscriptionCreateParams <
33
+ ResponseFormat extends AudioAPI . AudioResponseFormat | undefined =
34
+ | AudioAPI . AudioResponseFormat
35
+ | undefined ,
36
+ > = TranscriptionsAPI . TranscriptionCreateParams < ResponseFormat > ;
33
37
export import Translations = TranslationsAPI . Translations ;
34
38
export import Translation = TranslationsAPI . Translation ;
35
39
export import TranslationVerbose = TranslationsAPI . TranslationVerbose ;
36
40
export import TranslationCreateResponse = TranslationsAPI . TranslationCreateResponse ;
37
- export import TranslationCreateParams = TranslationsAPI . TranslationCreateParams ;
41
+ export type TranslationCreateParams <
42
+ ResponseFormat extends AudioAPI . AudioResponseFormat | undefined =
43
+ | AudioAPI . AudioResponseFormat
44
+ | undefined ,
45
+ > = TranslationsAPI . TranslationCreateParams < ResponseFormat > ;
38
46
export import Speech = SpeechAPI . Speech ;
39
47
export import SpeechModel = SpeechAPI . SpeechModel ;
40
48
export import SpeechCreateParams = SpeechAPI . SpeechCreateParams ;
Original file line number Diff line number Diff line change @@ -210,5 +210,9 @@ export namespace Transcriptions {
210
210
export import TranscriptionVerbose = TranscriptionsAPI . TranscriptionVerbose ;
211
211
export import TranscriptionWord = TranscriptionsAPI . TranscriptionWord ;
212
212
export import TranscriptionCreateResponse = TranscriptionsAPI . TranscriptionCreateResponse ;
213
- export import TranscriptionCreateParams = TranscriptionsAPI . TranscriptionCreateParams ;
213
+ export type TranscriptionCreateParams <
214
+ ResponseFormat extends AudioAPI . AudioResponseFormat | undefined =
215
+ | AudioAPI . AudioResponseFormat
216
+ | undefined ,
217
+ > = TranscriptionsAPI . TranscriptionCreateParams < ResponseFormat > ;
214
218
}
Original file line number Diff line number Diff line change @@ -101,5 +101,9 @@ export namespace Translations {
101
101
export import Translation = TranslationsAPI . Translation ;
102
102
export import TranslationVerbose = TranslationsAPI . TranslationVerbose ;
103
103
export import TranslationCreateResponse = TranslationsAPI . TranslationCreateResponse ;
104
- export import TranslationCreateParams = TranslationsAPI . TranslationCreateParams ;
104
+ export type TranslationCreateParams <
105
+ ResponseFormat extends AudioAPI . AudioResponseFormat | undefined =
106
+ | AudioAPI . AudioResponseFormat
107
+ | undefined ,
108
+ > = TranslationsAPI . TranslationCreateParams < ResponseFormat > ;
105
109
}
You can’t perform that action at this time.
0 commit comments