File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ func TestAudioSpeechNewWithOptionalParams(t *testing.T) {
3030 Input : "input" ,
3131 Model : openai .SpeechModelTTS1 ,
3232 Voice : openai.AudioSpeechNewParamsVoiceUnion {
33- OfString : openai .String ("string " ),
33+ OfAudioSpeechNewsVoiceString2 : openai .String ("alloy " ),
3434 },
3535 Instructions : openai .String ("instructions" ),
3636 ResponseFormat : openai .AudioSpeechNewParamsResponseFormatMP3 ,
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ func TestChatCompletionNewWithOptionalParams(t *testing.T) {
3939 Audio : openai.ChatCompletionAudioParam {
4040 Format : openai .ChatCompletionAudioParamFormatWAV ,
4141 Voice : openai.ChatCompletionAudioParamVoiceUnion {
42- OfString : openai .String ("string " ),
42+ OfChatCompletionAudioVoiceString2 : openai .String ("alloy " ),
4343 },
4444 },
4545 FrequencyPenalty : openai .Float (- 2 ),
Original file line number Diff line number Diff line change @@ -69,14 +69,14 @@ func TestCallAcceptWithOptionalParams(t *testing.T) {
6969 },
7070 Speed : openai .Float (0.25 ),
7171 Voice : realtime.RealtimeAudioConfigOutputVoiceUnionParam {
72- OfString : openai .String ("string " ),
72+ OfRealtimeAudioConfigOutputVoiceString2 : openai .String ("alloy " ),
7373 },
7474 },
7575 },
7676 Include : []string {"item.input_audio_transcription.logprobs" },
7777 Instructions : openai .String ("instructions" ),
7878 MaxOutputTokens : realtime.RealtimeSessionCreateRequestMaxOutputTokensUnionParam {
79- OfInt : openai . Int ( 0 ),
79+ OfInf : constant . ValueOf [constant. Inf ]( ),
8080 },
8181 Model : realtime .RealtimeSessionCreateRequestModelGPTRealtime ,
8282 OutputModalities : []string {"text" },
Original file line number Diff line number Diff line change @@ -71,14 +71,14 @@ func TestClientSecretNewWithOptionalParams(t *testing.T) {
7171 },
7272 Speed : openai .Float (0.25 ),
7373 Voice : realtime.RealtimeAudioConfigOutputVoiceUnionParam {
74- OfString : openai .String ("string " ),
74+ OfRealtimeAudioConfigOutputVoiceString2 : openai .String ("alloy " ),
7575 },
7676 },
7777 },
7878 Include : []string {"item.input_audio_transcription.logprobs" },
7979 Instructions : openai .String ("instructions" ),
8080 MaxOutputTokens : realtime.RealtimeSessionCreateRequestMaxOutputTokensUnionParam {
81- OfInt : openai . Int ( 0 ),
81+ OfInf : constant . ValueOf [constant. Inf ]( ),
8282 },
8383 Model : realtime .RealtimeSessionCreateRequestModelGPTRealtime ,
8484 OutputModalities : []string {"text" },
You can’t perform that action at this time.
0 commit comments