@@ -573,8 +573,7 @@ private constructor(
573
573
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the
574
574
* server responded with an unexpected value).
575
575
*/
576
- fun include (): Optional <List <TranscriptionInclude >> =
577
- Optional .ofNullable(include.value.getNullable(" include" ))
576
+ fun include (): Optional <List <TranscriptionInclude >> = include.value.getOptional(" include" )
578
577
579
578
/* *
580
579
* The language of the input audio. Supplying the input language in
@@ -584,8 +583,7 @@ private constructor(
584
583
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the
585
584
* server responded with an unexpected value).
586
585
*/
587
- fun language (): Optional <String > =
588
- Optional .ofNullable(language.value.getNullable(" language" ))
586
+ fun language (): Optional <String > = language.value.getOptional(" language" )
589
587
590
588
/* *
591
589
* An optional text to guide the model's style or continue a previous audio segment. The
@@ -595,7 +593,7 @@ private constructor(
595
593
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the
596
594
* server responded with an unexpected value).
597
595
*/
598
- fun prompt (): Optional <String > = Optional .ofNullable( prompt.value.getNullable (" prompt" ) )
596
+ fun prompt (): Optional <String > = prompt.value.getOptional (" prompt" )
599
597
600
598
/* *
601
599
* The format of the output, in one of these options: `json`, `text`, `srt`, `verbose_json`,
@@ -606,7 +604,7 @@ private constructor(
606
604
* server responded with an unexpected value).
607
605
*/
608
606
fun responseFormat (): Optional <AudioResponseFormat > =
609
- Optional .ofNullable( responseFormat.value.getNullable (" response_format" ) )
607
+ responseFormat.value.getOptional (" response_format" )
610
608
611
609
/* *
612
610
* The sampling temperature, between 0 and 1. Higher values like 0.8 will make the output
@@ -618,8 +616,7 @@ private constructor(
618
616
* @throws OpenAIInvalidDataException if the JSON field has an unexpected type (e.g. if the
619
617
* server responded with an unexpected value).
620
618
*/
621
- fun temperature (): Optional <Double > =
622
- Optional .ofNullable(temperature.value.getNullable(" temperature" ))
619
+ fun temperature (): Optional <Double > = temperature.value.getOptional(" temperature" )
623
620
624
621
/* *
625
622
* The timestamp granularities to populate for this transcription. `response_format` must be
@@ -631,7 +628,7 @@ private constructor(
631
628
* server responded with an unexpected value).
632
629
*/
633
630
fun timestampGranularities (): Optional <List <TimestampGranularity >> =
634
- Optional .ofNullable( timestampGranularities.value.getNullable (" timestamp_granularities" ) )
631
+ timestampGranularities.value.getOptional (" timestamp_granularities" )
635
632
636
633
/* *
637
634
* Returns the raw multipart value of [file].
0 commit comments