From 03a799662b000e0cee5af2ade83d53d7097eaaf4 Mon Sep 17 00:00:00 2001 From: HavenDV Date: Wed, 25 Sep 2024 02:53:20 +0400 Subject: [PATCH] test: Fixed. --- .../Examples/Examples.Audio.VerboseTranscription.cs | 2 +- src/tests/OpenAI.IntegrationTests/Tests.Audio.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tests/OpenAI.IntegrationTests/Examples/Examples.Audio.VerboseTranscription.cs b/src/tests/OpenAI.IntegrationTests/Examples/Examples.Audio.VerboseTranscription.cs index 8828f328..57ac1ed2 100644 --- a/src/tests/OpenAI.IntegrationTests/Examples/Examples.Audio.VerboseTranscription.cs +++ b/src/tests/OpenAI.IntegrationTests/Examples/Examples.Audio.VerboseTranscription.cs @@ -13,7 +13,7 @@ public async Task VerboseTranscription() file: H.Resources.audio_houseplant_care_mp3.AsBytes(), filename: H.Resources.audio_houseplant_care_mp3.FileName, model: CreateTranscriptionRequestModel.Whisper1, - responseFormat: CreateTranscriptionRequestResponseFormat.VerboseJson, + responseFormat: AudioResponseFormat.VerboseJson, timestampGranularities: [ CreateTranscriptionRequestTimestampGranularitie.Word, CreateTranscriptionRequestTimestampGranularitie.Segment diff --git a/src/tests/OpenAI.IntegrationTests/Tests.Audio.cs b/src/tests/OpenAI.IntegrationTests/Tests.Audio.cs index b784bcd4..55f12037 100755 --- a/src/tests/OpenAI.IntegrationTests/Tests.Audio.cs +++ b/src/tests/OpenAI.IntegrationTests/Tests.Audio.cs @@ -29,7 +29,7 @@ public async Task CreateSpeech_Url() filename: "mp3.mp3", model: CreateTranslationRequestModel.Whisper1, prompt: null, - responseFormat: "json", + responseFormat: AudioResponseFormat.Json, temperature: 0.0); response2.Should().NotBeNull(); response2.Object.Should().BeOfType(); @@ -43,7 +43,7 @@ public async Task CreateSpeech_Url() model: CreateTranscriptionRequestModel.Whisper1, language: "en", prompt: null, - responseFormat: CreateTranscriptionRequestResponseFormat.Json, + responseFormat: AudioResponseFormat.Json, temperature: 0.0); response3.Should().NotBeNull(); response3.Object.Should().BeOfType();