set file correctly in request for real this time

This commit is contained in:
Christopher Moyer 2024-12-18 20:48:24 -05:00
parent 86fba439ef
commit 408a23008d

View file

@ -125,7 +125,7 @@ async fn transcribe_call(file_path: &Path) -> Result<CreateTranscriptionResponse
.language("en")
.response_format(AudioResponseFormat::Text)
.model("whisper-1")
.file(file_path)
.file(file_path.to_str().unwrap(),)
.build()?;
client.audio().transcribe(request).await