Skip to content

Commit

Permalink
test: Fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
HavenDV committed Sep 24, 2024
1 parent aef0f29 commit 03a7996
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/tests/OpenAI.IntegrationTests/Tests.Audio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<CreateTranslationResponseJson>();
Expand All @@ -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<CreateTranscriptionResponseJson>();
Expand Down

0 comments on commit 03a7996

Please sign in to comment.