fix open ai api call

This commit is contained in:
Christopher Moyer 2024-12-20 09:28:06 -05:00
parent 408a23008d
commit 58fef04e2c

View file

@ -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()?;