set file correctly in request for real this time
This commit is contained in:
parent
86fba439ef
commit
408a23008d
1 changed files with 1 additions and 1 deletions
|
|
@ -125,7 +125,7 @@ async fn transcribe_call(file_path: &Path) -> Result<CreateTranscriptionResponse
|
||||||
.language("en")
|
.language("en")
|
||||||
.response_format(AudioResponseFormat::Text)
|
.response_format(AudioResponseFormat::Text)
|
||||||
.model("whisper-1")
|
.model("whisper-1")
|
||||||
.file(file_path)
|
.file(file_path.to_str().unwrap(),)
|
||||||
.build()?;
|
.build()?;
|
||||||
|
|
||||||
client.audio().transcribe(request).await
|
client.audio().transcribe(request).await
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue