fix open ai api call
This commit is contained in:
parent
408a23008d
commit
58fef04e2c
1 changed files with 0 additions and 1 deletions
|
|
@ -123,7 +123,6 @@ async fn transcribe_call(file_path: &Path) -> Result<CreateTranscriptionResponse
|
|||
let request = CreateTranscriptionRequestArgs::default()
|
||||
.prompt("This is a public safety radio transmission. The speakers could be any of the following communicating between each other: dispatcher, law enforcement officer, fire fighter, or emergency medical services")
|
||||
.language("en")
|
||||
.response_format(AudioResponseFormat::Text)
|
||||
.model("whisper-1")
|
||||
.file(file_path.to_str().unwrap(),)
|
||||
.build()?;
|
||||
|
|
|
|||
Loading…
Reference in a new issue